|
From: Jon O. <jon...@us...> - 2006-09-17 14:39:27
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25469/modules/mx_simpledoc/simpledoc/modules Modified Files: simpledoc__node.php simpledoc__tab-view-content.php simpledoc__tab-view-publish.php Log Message: Ok, several annoying JS bugs and more are solved... Index: simpledoc__tab-view-publish.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__tab-view-publish.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc__tab-view-publish.php 2 May 2006 23:29:00 -0000 1.2 --- simpledoc__tab-view-publish.php 17 Sep 2006 14:39:24 -0000 1.3 *************** *** 134,139 **** ?> ! <?php echo '<div id="parentTOC"></div>' ?> ! <?php echo mx_decode($html,''); ?> ! ! --- 134,137 ---- ?> ! <?php echo '<div id="parentTOC"></div>' ?> ! <?php echo $html; ?> Index: simpledoc__node.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__node.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc__node.php 2 May 2006 23:29:00 -0000 1.2 --- simpledoc__node.php 17 Sep 2006 14:39:24 -0000 1.3 *************** *** 85,93 **** include_once( $module_root_path . 'simpledoc/simpledoc_common.' . $phpEx ); ! set_error_handler('logError'); $LOGERROR = 'error.txt'; $do = get('do'); ! $id = get('id'); $name = get('name'); $is_folder = get('is_folder'); --- 85,117 ---- include_once( $module_root_path . 'simpledoc/simpledoc_common.' . $phpEx ); ! // error handler function ! function myErrorHandler($errno, $errstr, $errfile, $errline) ! { ! switch ($errno) { ! case E_USER_ERROR: ! $Node->error = true; ! echo "<b>My ERROR</b> [$errno] $errstr<br />\n"; ! echo " Fatal error in line $errline of file $errfile"; ! echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")<br />\n"; ! echo "Aborting...<br />\n"; ! exit(1); ! break; ! case E_USER_WARNING: ! echo "<b>My WARNING</b> [$errno] $errstr<br />\n"; ! break; ! case E_USER_NOTICE: ! echo "<b>My NOTICE</b> [$errno] $errstr<br />\n"; ! break; ! default: ! // echo "Unknown error type: [$errno] $errstr<br />\n"; ! break; ! } ! } ! ! set_error_handler('myErrorHandler'); $LOGERROR = 'error.txt'; $do = get('do'); ! $id = urldecode(get('id')); // reverse the js encodeURIComponent $name = get('name'); $is_folder = get('is_folder'); Index: simpledoc__tab-view-content.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__tab-view-content.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc__tab-view-content.php 2 May 2006 23:29:00 -0000 1.2 --- simpledoc__tab-view-content.php 17 Sep 2006 14:39:24 -0000 1.3 *************** *** 70,74 **** if ( !( ( $mx_block->auth_view && $mx_block->show_block ) || $mx_block->auth_mod ) ) { ! echo('sNot authorized - 4'); return; } --- 70,74 ---- if ( !( ( $mx_block->auth_view && $mx_block->show_block ) || $mx_block->auth_mod ) ) { ! echo('Not authorized - 4'); return; } *************** *** 110,115 **** ?> ! ! <?php echo mx_decode($html,''); ?> ! ! --- 110,112 ---- ?> ! <?php echo $html ?> |