|
From: Jon O. <jon...@us...> - 2006-06-17 20:50:52
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6843/modules/mx_simpledoc/simpledoc/includes Modified Files: functions_cache.php functions_io.php functions_node.php functions_simpledoc.php functions_zip.php simpledoc_constants.php sugolib4.php Log Message: security Index: functions_node.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_node.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_node.php 23 Apr 2006 19:21:27 -0000 1.1 --- functions_node.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 1,3 **** --- 1,12 ---- <?php + /** + * + * @package mxBB Portal Module - mx_simpledoc + * @version $Id$ + * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ + // +--------------------------------------------------------------------+ // | DO NOT REMOVE THIS | *************** *** 12,15 **** --- 21,29 ---- // +--------------------------------------------------------------------+ + if( !defined('IN_PORTAL') ) + { + die("Hacking attempt"); + } + // Nodes management. // Dependencies: IoFile, IoDir *************** *** 23,27 **** var $currFolder; // current folder, the node exists inside it, for the root element it points to itself var $level; // level of immersion, 0 for the root dir ! // this properties are overwritten on object creation, using global variables, see Node::Node() var $root = 'content'; // path to root element, without slash at the end --- 37,41 ---- var $currFolder; // current folder, the node exists inside it, for the root element it points to itself var $level; // level of immersion, 0 for the root dir ! // this properties are overwritten on object creation, using global variables, see Node::Node() var $root = 'content'; // path to root element, without slash at the end *************** *** 31,35 **** function Node($id = '') { ! global $CONTENT, $SORT, $CHMOD_FILE, $CHMOD_DIR; $this->root = $CONTENT; --- 45,49 ---- function Node($id = '') { ! global $CONTENT, $SORT, $CHMOD_FILE, $CHMOD_DIR; $this->root = $CONTENT; *************** *** 54,58 **** } } ! // ------- // ACTIONS --- 68,72 ---- } } ! // ------- // ACTIONS *************** *** 198,202 **** } } ! // ---- // INFO --- 212,216 ---- } } ! // ---- // INFO *************** *** 230,234 **** // SORT // ---- ! // returns array of given folder nodes (full paths) function loadSort($folder) { --- 244,248 ---- // SORT // ---- ! // returns array of given folder nodes (full paths) function loadSort($folder) { Index: functions_simpledoc.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_simpledoc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_simpledoc.php 23 Apr 2006 19:21:27 -0000 1.1 --- functions_simpledoc.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 13,17 **** die( "Hacking attempt" ); } ! // =================================================== // public mx_simpledoc class --- 13,17 ---- die( "Hacking attempt" ); } ! // =================================================== // public mx_simpledoc class *************** *** 20,25 **** { var $modules = array(); ! var $module_name = ''; ! // =================================================== // load module --- 20,25 ---- { var $modules = array(); ! var $module_name = ''; ! // =================================================== // load module *************** *** 30,34 **** if ( !class_exists( 'mx_simpledoc_' . $module_name ) ) { ! global $phpbb_root_path, $phpEx; global $mx_root_path, $module_root_path, $is_block, $phpEx; --- 30,34 ---- if ( !class_exists( 'mx_simpledoc_' . $module_name ) ) { ! global $phpbb_root_path, $phpEx; global $mx_root_path, $module_root_path, $is_block, $phpEx; *************** *** 43,48 **** } } ! } ! // =================================================== // this will be replaced by the loaded module --- 43,48 ---- } } ! } ! // =================================================== // this will be replaced by the loaded module *************** *** 51,56 **** { return false; ! } ! } --- 51,56 ---- { return false; ! } ! } *************** *** 61,71 **** { var $modified = false; ! var $error = array(); ! var $page_title = ''; ! var $debug = true; var $debug_msg = array(); ! // =================================================== // Prepare data --- 61,71 ---- { var $modified = false; ! var $error = array(); ! var $page_title = ''; ! var $debug = true; var $debug_msg = array(); ! // =================================================== // Prepare data *************** *** 76,89 **** $this->debug('mx_simpledoc->init', basename( __FILE__ )); ! ! } // =================================================== // Clean up ! // =================================================== function _simpledoc() { $this->debug('mx_simpledoc->_simpledoc', basename( __FILE__ )); ! if ( $this->modified ) { --- 76,89 ---- $this->debug('mx_simpledoc->init', basename( __FILE__ )); ! ! } // =================================================== // Clean up ! // =================================================== function _simpledoc() { $this->debug('mx_simpledoc->_simpledoc', basename( __FILE__ )); ! if ( $this->modified ) { *************** *** 94,98 **** // =================================================== // Add debug message ! // =================================================== function debug($debug_msg, $file = '', $line_break = true) { --- 94,98 ---- // =================================================== // Add debug message ! // =================================================== function debug($debug_msg, $file = '', $line_break = true) { *************** *** 105,113 **** } } ! // =================================================== // Display debug message ! // =================================================== function display_debug() { --- 105,113 ---- } } ! // =================================================== // Display debug message ! // =================================================== function display_debug() { *************** *** 119,145 **** $debug_message .= $value; } ! return $debug_message; } } ! function modified( $true_false = false ) { $this->debug('mx_simpledoc->modified', basename( __FILE__ )); ! $this->modified = $true_false; ! } ! // ---------- // HELP FUNCS // ---------- ! function send_zip($dir, $filename, $new_dir = null) { global $module_root_path, $phpEx; ! include_once( $module_root_path . 'simpledoc/includes/functions_zip.' . $phpEx ); ! $files = IoDir::readFull($dir); ! $zip = new zip; foreach ($files as $file) { --- 119,145 ---- $debug_message .= $value; } ! return $debug_message; } } ! function modified( $true_false = false ) { $this->debug('mx_simpledoc->modified', basename( __FILE__ )); ! $this->modified = $true_false; ! } ! // ---------- // HELP FUNCS // ---------- ! function send_zip($dir, $filename, $new_dir = null) { global $module_root_path, $phpEx; ! include_once( $module_root_path . 'simpledoc/includes/functions_zip.' . $phpEx ); ! $files = IoDir::readFull($dir); ! $zip = new zip; foreach ($files as $file) { *************** *** 151,170 **** } } ! header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Pragma: no-cache"); header("Expires: 0"); ! echo $zip->get_file(); exit; } ! function send_zip_clear($dir, $filename, $new_dir = null) { global $module_root_path, $phpEx; ! include_once( $module_root_path . 'simpledoc/includes/functions_zip.' . $phpEx ); $files = IoDir::readFull($dir); ! $zip = new zip(); foreach ($files as $file) { --- 151,170 ---- } } ! header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Pragma: no-cache"); header("Expires: 0"); ! echo $zip->get_file(); exit; } ! function send_zip_clear($dir, $filename, $new_dir = null) { global $module_root_path, $phpEx; ! include_once( $module_root_path . 'simpledoc/includes/functions_zip.' . $phpEx ); $files = IoDir::readFull($dir); ! $zip = new zip(); foreach ($files as $file) { *************** *** 176,204 **** } } ! IoDir::delete($dir); ! header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Pragma: no-cache"); header("Expires: 0"); ! echo $zip->get_file(); exit; ! } ! function extract_zip($file, $to) { global $CHMOD_FILE, $CHMOD_DIR, $module_root_path; ! ! include_once( $module_root_path . 'simpledoc/includes/functions_zip.' . $phpEx ); ! $zip = new zip; $list = $zip->get_List($file); if (!count($list)) return; ! $root = $list[0]['filename']; $root = substr($root, 0, strpos($root, '/')); IoDir::create($to.'/'.$root, $CHMOD_DIR); ! $list2 = array(); foreach ($list as $v) { --- 176,204 ---- } } ! IoDir::delete($dir); ! header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Pragma: no-cache"); header("Expires: 0"); ! echo $zip->get_file(); exit; ! } ! function extract_zip($file, $to) { global $CHMOD_FILE, $CHMOD_DIR, $module_root_path; ! ! include_once( $module_root_path . 'simpledoc/includes/functions_zip.' . $phpEx ); ! $zip = new zip; $list = $zip->get_List($file); if (!count($list)) return; ! $root = $list[0]['filename']; $root = substr($root, 0, strpos($root, '/')); IoDir::create($to.'/'.$root, $CHMOD_DIR); ! $list2 = array(); foreach ($list as $v) { *************** *** 206,213 **** $list2[substr_count($v['filename'], '/')][] = $v; } ! $a = array_keys($list2); sort($a); ! foreach ($a as $level) { foreach ($list2[$level] as $v) { --- 206,213 ---- $list2[substr_count($v['filename'], '/')][] = $v; } ! $a = array_keys($list2); sort($a); ! foreach ($a as $level) { foreach ($list2[$level] as $v) { *************** *** 220,229 **** } } ! $er = error_reporting(E_ALL ^ E_NOTICE); $zip->extract($file, $to); error_reporting($er); } ! // // ??? publish/raw.php and publish/tree.php --- 220,229 ---- } } ! $er = error_reporting(E_ALL ^ E_NOTICE); $zip->extract($file, $to); error_reporting($er); } ! // // ??? publish/raw.php and publish/tree.php *************** *** 234,238 **** return substr($s, strrpos($s, '/')+1); } ! function get_readable_size($bytes) { $base = 1024; --- 234,238 ---- return substr($s, strrpos($s, '/')+1); } ! function get_readable_size($bytes) { $base = 1024; *************** *** 251,261 **** // // ??? publish/raw.php and publish/tree.php ! // function fetch_document($id) { global $CONTENT, $CONFIG, $module_root_path, $mx_root_path; ! $path = $CONTENT.'/'.$id; $html = IoFile::read($path); ! if (preg_match('#<h1>(.+)</h1>#i', $html, $matches)) { $title = $matches[1]; --- 251,261 ---- // // ??? publish/raw.php and publish/tree.php ! // function fetch_document($id) { global $CONTENT, $CONFIG, $module_root_path, $mx_root_path; ! $path = $CONTENT.'/'.$id; $html = IoFile::read($path); ! if (preg_match('#<h1>(.+)</h1>#i', $html, $matches)) { $title = $matches[1]; *************** *** 264,268 **** $title = substr($title, -5) == '.html' ? substr($title, 0, strlen($title)-5) : $title; } ! $Page = new sugolibTemplate($module_root_path.'simpledoc/shared/publish/document.tpl'); $Page->setArray(array( --- 264,268 ---- $title = substr($title, -5) == '.html' ? substr($title, 0, strlen($title)-5) : $title; } ! $Page = new sugolibTemplate($module_root_path.'simpledoc/shared/publish/document.tpl'); $Page->setArray(array( *************** *** 273,286 **** return $Page->fetch(); } ! // // ??? publish/tree.php ! // function fetch_document_tree($id) { global $CONTENT, $CONFIG, $module_root_path; ! $path = $CONTENT.'/'.$id; $html = IoFile::read($path); ! if (preg_match('#<h1>(.+)</h1>#i', $html, $matches)) { $title = $matches[1]; --- 273,286 ---- return $Page->fetch(); } ! // // ??? publish/tree.php ! // function fetch_document_tree($id) { global $CONTENT, $CONFIG, $module_root_path; ! $path = $CONTENT.'/'.$id; $html = IoFile::read($path); ! if (preg_match('#<h1>(.+)</h1>#i', $html, $matches)) { $title = $matches[1]; *************** *** 289,293 **** $title = substr($title, -5) == '.html' ? substr($title, 0, strlen($title)-5) : $title; } ! $Page = new sugolibTemplate($module_root_path.'simpledoc/shared/publish/document.tpl'); $Page->setArray(array( --- 289,293 ---- $title = substr($title, -5) == '.html' ? substr($title, 0, strlen($title)-5) : $title; } ! $Page = new sugolibTemplate($module_root_path.'simpledoc/shared/publish/document.tpl'); $Page->setArray(array( *************** *** 299,306 **** return $Page->fetch(); } ! ! // // ??? publish/tre.php and tre-tre.php ! // function build_tree(&$tree, $root, $path = null) { if (!isset($path)) $path = $root; --- 299,306 ---- return $Page->fetch(); } ! ! // // ??? publish/tre.php and tre-tre.php ! // function build_tree(&$tree, $root, $path = null) { if (!isset($path)) $path = $root; *************** *** 334,338 **** } } ! // // Build the $tree html --- 334,338 ---- } } ! // // Build the $tree html *************** *** 358,362 **** function _build_tree_html($tree) { global $module_root_path, $PUBLISH; ! $ret = ''; foreach ($tree as $id => $v) { --- 358,362 ---- function _build_tree_html($tree) { global $module_root_path, $PUBLISH; ! $ret = ''; foreach ($tree as $id => $v) { *************** *** 371,377 **** } return $ret; ! } - // remove unsafe chars when saving config function config_safe($str) { --- 371,377 ---- } return $ret; ! } ! // remove unsafe chars when saving config function config_safe($str) { *************** *** 380,384 **** return $str; } ! function fix_path($s) { $s = str_replace('\\', '/', $s); --- 380,384 ---- return $str; } ! function fix_path($s) { $s = str_replace('\\', '/', $s); *************** *** 386,390 **** return $s; } ! // =================================================== // url rewrites --- 386,390 ---- return $s; } ! // =================================================== // url rewrites *************** *** 393,397 **** { global $mx_root_path, $module_root_path, $page_id, $phpEx; ! $mxurl = $mx_root_path . 'index.' . $phpEx; if ( is_numeric( $page_id ) ) --- 393,397 ---- { global $mx_root_path, $module_root_path, $page_id, $phpEx; ! $mxurl = $mx_root_path . 'index.' . $phpEx; if ( is_numeric( $page_id ) ) *************** *** 403,409 **** $mxurl .= ( $args == '' ? '' : '?' . $args ); } ! return $mxurl; ! } } --- 403,409 ---- $mxurl .= ( $args == '' ? '' : '?' . $args ); } ! return $mxurl; ! } } Index: functions_zip.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_zip.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_zip.php 23 Apr 2006 19:21:27 -0000 1.1 --- functions_zip.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 1,3 **** --- 1,16 ---- <?php + /** + * + * @package mxBB Portal Module - mx_simpledoc + * @version $Id$ + * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ + + if( !defined('IN_PORTAL') ) + { + die("Hacking attempt"); + } // Created by bouchon *************** *** 61,83 **** } ! function add_dir($name) ! { ! $name = str_replace("\\", "/", $name); ! $fr = "\x50\x4b\x03\x04\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00"; ! $fr .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) ); ! $fr .= pack("v", 0 ).$name.pack("V", 0).pack("V", 0).pack("V", 0); $this -> datasec[] = $fr; ! $new_offset = strlen(implode("", $this->datasec)); ! $cdrec = "\x50\x4b\x01\x02\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00"; ! $cdrec .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) ); ! $cdrec .= pack("v", 0 ).pack("v", 0 ).pack("v", 0 ).pack("v", 0 ); ! $ext = "\xff\xff\xff\xff"; ! $cdrec .= pack("V", 16 ).pack("V", $this -> old_offset ).$name; ! $this -> ctrl_dir[] = $cdrec; ! $this -> old_offset = $new_offset; $this -> dirs[] = $name; } --- 74,96 ---- } ! function add_dir($name) ! { ! $name = str_replace("\\", "/", $name); ! $fr = "\x50\x4b\x03\x04\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00"; ! $fr .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) ); ! $fr .= pack("v", 0 ).$name.pack("V", 0).pack("V", 0).pack("V", 0); $this -> datasec[] = $fr; ! $new_offset = strlen(implode("", $this->datasec)); ! $cdrec = "\x50\x4b\x01\x02\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00"; ! $cdrec .= pack("V",0).pack("V",0).pack("V",0).pack("v", strlen($name) ); ! $cdrec .= pack("v", 0 ).pack("v", 0 ).pack("v", 0 ).pack("v", 0 ); ! $ext = "\xff\xff\xff\xff"; ! $cdrec .= pack("V", 16 ).pack("V", $this -> old_offset ).$name; ! $this -> ctrl_dir[] = $cdrec; ! $this -> old_offset = $new_offset; $this -> dirs[] = $name; } *************** *** 132,136 **** $timearray['minutes'] = 0; $timearray['seconds'] = 0; } ! return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1); } --- 145,149 ---- $timearray['minutes'] = 0; $timearray['seconds'] = 0; } ! return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1); } *************** *** 158,162 **** if(in_array("-1",$index)||in_array($i,$index)) $stat[$header['filename']]=$this->ExtractFile($header, $to, $zip); ! } fclose($zip); --- 171,175 ---- if(in_array("-1",$index)||in_array($i,$index)) $stat[$header['filename']]=$this->ExtractFile($header, $to, $zip); ! } fclose($zip); Index: sugolib4.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/sugolib4.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sugolib4.php 23 Apr 2006 19:21:27 -0000 1.1 --- sugolib4.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 1,3 **** --- 1,16 ---- <?php + /** + * + * @package mxBB Portal Module - mx_simpledoc + * @version $Id$ + * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ + + if( !defined('IN_PORTAL') ) + { + die("Hacking attempt"); + } // +---------------------------------------------+ *************** *** 723,727 **** $c['comment'] = '#808080'; ! if (count($info)) { foreach ($info as $k => $v) { echo '<b>'; --- 736,740 ---- $c['comment'] = '#808080'; ! if (count($info)) { foreach ($info as $k => $v) { echo '<b>'; *************** *** 744,760 **** echo '<span style="font-family: monospaced; font-size: 11px; cursor: pointer;" onclick="showDetails('.count($trace).')">[show details]</span> '; echo '<span style="font-family: monospaced; font-size: 11px; cursor: pointer;" onclick="hideDetails('.count($trace).')">[hide details]</span>'; ! echo "\r\n"; echo "\r\n"; ! echo '<ul>'; $currentParam = -1; ! foreach ($trace as $k => $v) { ! $currentParam++; ! echo '<li style="list-style-type: square;">'; ! if (isset($v['class'])) { echo '<span onmouseover="this.style.color=\'#0000ff\'" onmouseout="this.style.color=\''.$c['keyword'].'\'" style="color: '.$c['keyword'].'; cursor: pointer;" onclick="showFile('.$k.')">'; --- 757,773 ---- echo '<span style="font-family: monospaced; font-size: 11px; cursor: pointer;" onclick="showDetails('.count($trace).')">[show details]</span> '; echo '<span style="font-family: monospaced; font-size: 11px; cursor: pointer;" onclick="hideDetails('.count($trace).')">[hide details]</span>'; ! echo "\r\n"; echo "\r\n"; ! echo '<ul>'; $currentParam = -1; ! foreach ($trace as $k => $v) { ! $currentParam++; ! echo '<li style="list-style-type: square;">'; ! if (isset($v['class'])) { echo '<span onmouseover="this.style.color=\'#0000ff\'" onmouseout="this.style.color=\''.$c['keyword'].'\'" style="color: '.$c['keyword'].'; cursor: pointer;" onclick="showFile('.$k.')">'; *************** *** 764,772 **** echo '<span onmouseover="this.style.color=\'#0000ff\'" onmouseout="this.style.color=\''.$c['keyword'].'\'" style="color: '.$c['keyword'].'; cursor: pointer;" onclick="showFile('.$k.')">'; } ! echo $v['function']; echo '</span>'; echo " ("; ! $sep = ''; $v['args'] = (array) @$v['args']; --- 777,785 ---- echo '<span onmouseover="this.style.color=\'#0000ff\'" onmouseout="this.style.color=\''.$c['keyword'].'\'" style="color: '.$c['keyword'].'; cursor: pointer;" onclick="showFile('.$k.')">'; } ! echo $v['function']; echo '</span>'; echo " ("; ! $sep = ''; $v['args'] = (array) @$v['args']; *************** *** 774,778 **** $currentParam++; ! echo $sep; $sep = ', '; --- 787,791 ---- $currentParam++; ! echo $sep; $sep = ', '; *************** *** 780,784 **** switch (true) { ! case is_bool($arg): $param = 'TRUE'; --- 793,797 ---- switch (true) { ! case is_bool($arg): $param = 'TRUE'; *************** *** 837,841 **** } ! echo ")"; echo "\r\n"; --- 850,854 ---- } ! echo ")"; echo "\r\n"; *************** *** 855,864 **** echo 'DIR: ' . fontStart('#007700') . dirname($v['file']) . fontEnd(); echo '</span>'; ! echo '</li>'; } ! echo '</ul>'; ! } else { echo '<b>File:</b> '; --- 868,877 ---- echo 'DIR: ' . fontStart('#007700') . dirname($v['file']) . fontEnd(); echo '</span>'; ! echo '</li>'; } ! echo '</ul>'; ! } else { echo '<b>File:</b> '; *************** *** 867,871 **** echo dirname($file); } ! ?> --- 880,884 ---- echo dirname($file); } ! ?> *************** *** 906,910 **** } function fetch() { ! if (!file_exists($this->file) || !is_file($this->file)) { return trigger_error("sugolibTemplate::fetch() failed, file does not exist '{$this->file}'", E_USER_ERROR); } --- 919,923 ---- } function fetch() { ! if (!file_exists($this->file) || !is_file($this->file)) { return trigger_error("sugolibTemplate::fetch() failed, file does not exist '{$this->file}'", E_USER_ERROR); } *************** *** 938,942 **** return $ret; } ! // // ??? publish/document.tpl // --- 951,955 ---- return $ret; } ! // // ??? publish/document.tpl // *************** *** 951,955 **** $s2 = str_pad($t % 60, 2, '0', STR_PAD_LEFT); return 'GMT'.$sign.$s1.':'.$s2; ! } } --- 964,968 ---- $s2 = str_pad($t % 60, 2, '0', STR_PAD_LEFT); return 'GMT'.$sign.$s1.':'.$s2; ! } } Index: functions_cache.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_cache.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_cache.php 23 Apr 2006 19:21:27 -0000 1.1 --- functions_cache.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 2,6 **** /** * ! * @package mxBB Portal Module - mx_kb * @version $Id$ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team --- 2,6 ---- /** * ! * @package mxBB Portal Module - mx_simpledoc * @version $Id$ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team *************** *** 8,12 **** * */ ! if ( !defined( 'IN_PORTAL' ) ) { --- 8,12 ---- * */ ! if ( !defined( 'IN_PORTAL' ) ) { Index: functions_io.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_io.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_io.php 23 Apr 2006 19:21:27 -0000 1.1 --- functions_io.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 1,3 **** --- 1,12 ---- <?php + /** + * + * @package mxBB Portal Module - mx_simpledoc + * @version $Id$ + * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ + // +--------------------------------------------------------------------+ // | DO NOT REMOVE THIS | *************** *** 9,12 **** --- 18,26 ---- // +--------------------------------------------------------------------+ + if( !defined('IN_PORTAL') ) + { + die("Hacking attempt"); + } + // File operations. // Author: Cezary Tomczak [www.gosu.pl] Index: simpledoc_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/simpledoc_constants.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** simpledoc_constants.php 23 Apr 2006 19:21:27 -0000 1.1 --- simpledoc_constants.php 17 Jun 2006 20:50:47 -0000 1.2 *************** *** 2,6 **** /** * ! * @package mxBB Portal Module - mx_kb * @version $Id$ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team --- 2,6 ---- /** * ! * @package mxBB Portal Module - mx_simpledoc * @version $Id$ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team *************** *** 9,12 **** --- 9,17 ---- */ + if( !defined('IN_PORTAL') ) + { + die("Hacking attempt"); + } + // ------------------------------------------------------------------------- // This file defines specific constants for the module *************** *** 26,31 **** // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- ! $mx_user->extend(MX_LANG_ALL, MX_IMAGES_NONE); ! $mx_page->add_copyright( 'mxBB SimpleDoc' ); } --- 31,36 ---- // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- ! $mx_user->extend(MX_LANG_ALL, MX_IMAGES_NONE); ! $mx_page->add_copyright( 'mxBB SimpleDoc' ); } |