|
From: Andrew <men...@us...> - 2006-05-03 22:15:24
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11562 Modified Files: common.php index.php Log Message: - error_repoting() should be set in common.php, not index.php - if, not If - changed the mx_shared error handling include() to use $phpEx and rearranged things a bit to be more logical Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** common.php 3 May 2006 09:17:28 -0000 1.51 --- common.php 3 May 2006 22:15:20 -0000 1.52 *************** *** 15,18 **** --- 15,21 ---- define('IN_PHPBB', 1); + // Debug + error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables + $mx_starttime = explode(' ', microtime()); $mx_starttime = $mx_starttime[1] + $mx_starttime[0]; Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** index.php 3 May 2006 09:17:28 -0000 1.54 --- index.php 3 May 2006 22:15:20 -0000 1.55 *************** *** 11,15 **** define( 'IN_PORTAL', 1 ); $mx_root_path = "./"; ! // // DEBUG AND ERROR HANDLING --- 11,16 ---- define( 'IN_PORTAL', 1 ); $mx_root_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include( $mx_root_path . 'common.' . $phpEx); // // DEBUG AND ERROR HANDLING *************** *** 18,29 **** //define( 'DEBUG_EXTRA', 1 ); // [Admin Option] Show memory usage. Show link to full SQL debug report in footer. Beware, this makes the page slow to load. For debugging only. //error_reporting(E_ALL); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! include($mx_root_path . 'modules/mx_shared/ErrorHandler/prepend.php'); // For nice error output ! ! // ! // Let's include some stuff... ! // ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.' . $phpEx); // --- 19,23 ---- //define( 'DEBUG_EXTRA', 1 ); // [Admin Option] Show memory usage. Show link to full SQL debug report in footer. Beware, this makes the page slow to load. For debugging only. //error_reporting(E_ALL); ! include( $mx_root_path . 'modules/mx_shared/ErrorHandler/prepend.' . $phpEx); // For nice error output // *************** *** 37,41 **** // AJAX // ! If ($mxAjax && $mxAjaxBlockId > 0) { define( 'IN_AJAX', 1 ); --- 31,35 ---- // AJAX // ! if ($mxAjax && $mxAjaxBlockId > 0) { define( 'IN_AJAX', 1 ); |