From: sparky4 Date: Tue, 22 Feb 2011 16:43:12 +0000 (-0600) Subject: modified: config.php X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=c1889a677716ae8a0bfdaf5b5f3e460b018eac86;p=test.git modified: config.php modified: yotsubanome.php --- diff --git a/config.php b/config.php index c09fa30..aaa229a 100755 --- a/config.php +++ b/config.php @@ -171,7 +171,7 @@ $ModuleList[] = 'mod_bbcode'; //$ModuleList[] = 'mod_captcha'; $ModuleList[] = 'mod_catalog';//<-sparky4 needs here .... HELP //$ModuleList[] = 'mod_code';//<- missing JS and CSS files -$ModuleList[] = 'mod_code_prettify';//<-sparky4 is here +//$ModuleList[] = 'mod_code_prettify';//<-sparky4 is here missing CSS file //$ModuleList[] = 'mod_dummy'; //$ModuleList[] = 'mod_edit';//<-important diff --git a/yotsubanome.php b/yotsubanome.php index 26fe204..61de8ee 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -52,14 +52,6 @@ PHP 4.4.9 或更高版本並開啟 GD 和 Zlib 支援,如支援 ImageMagick 說明條目可資參考。 */ - -if(version_compare(PHP_VERSION, '5.0.0', '>=')){ // PHP5+ - set_error_handler('PMCCore_errorHandler', E_ERROR | E_WARNING | E_USER_ERROR); // Handle Errors -}else{ - set_error_handler('PMCCore_errorHandler'); -} - - //error_reporting(E_ALL); // show all errors for debugging /* Enviorment Settings */ @@ -78,6 +70,12 @@ include_once(PHP_DIRECTORY.'lib/lib_pte.php'); // 引入PTE外部函式庫 $PTE = new PTELibrary(TEMPLATE_FILE); // PTE Library +if(version_compare(PHP_VERSION, '5.0.0', '>=')){ // PHP5+ + set_error_handler('PMCCore_errorHandler', E_ERROR | E_WARNING | E_USER_ERROR); // Handle Errors +}else{ + set_error_handler('PMCCore_errorHandler'); +} + /* Lockdown [prevents posting] */ if(file_exists(PHP_DIRECTORY.'lockdown')){ if($_POST['mode'] == 'usrdel' || $_GET['mode'] == 'latest' || $_GET['res']){