================================================================================ Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/admin/mod/dtable/CDTable.class.php on line 270 -------------------------------------------------------------------------------- BEFORE $dsv = explode(":",$sort_val); -------------------------------------------------------------------------------- AFTER $dsv = $sort_val?explode(":",$sort_val):array("",""); ================================================================================
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/admin/mod/base/CObject.class.php on line 18 -------------------------------------------------------------------------------- BEFORE return htmlspecialchars($s); -------------------------------------------------------------------------------- AFTER return $s?htmlspecialchars($s):""; -------------------------------------------------------------------------------- 厳密には以下が正しいが... return !is_null($s)?htmlspecialchars($s):""; 整数の0を表示するケースがないので直さなくても問題ない。 ================================================================================ web/install/mode/setup/CConfigDbFile.class.php -------------------------------------------------------------------------------- BEFORE public static function save( $px ) { $sx = array(); $sx[] = ""; $txt = implode("\r\n",$sx); $path = self::pathFile(); file_put_contents($path,$txt); } -------------------------------------------------------------------------------- AFTER public static function save( $px ) { $sx = array(); $sx[] = ""; $txt = implode("\r\n",$sx); $path = self::pathFile(); file_put_contents($path,$txt); } ================================================================================ This is DECAET-102J version only (2024-03-10) -------------------------------------------------------------------------------- Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/lib/sys/CPreProc.class.php:39 Stack trace: #0 /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/lib/sys/index.inc.php(26): CPreProc::reverseMagicQuote() #1 /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/install/startup.inc.php(12): include_once('...') #2 /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/install/index.php(11): include_once('...') #3 {main} thrown in /home/auser/www/html/testing-center/f-data/test1133/DCAET-102J/dcnt/lib/sys/CPreProc.class.php on line 39 -------------------------------------------------------------------------------- BEFORE public static function reverseMagicQuote() { $func = "reverseMagicQuote_stripslashes_deep"; if ( !function_exists( $func ) && get_magic_quotes_gpc() ) { define( 'REVERSE_MAGIC_QUOTE', $func ); function reverseMagicQuote_stripslashes_deep( $value ) { $value = is_array( $value ) ? array_map( REVERSE_MAGIC_QUOTE, $value ) : stripslashes( $value ); return $value; } $_POST = array_map( $func, $_POST ); $_GET = array_map( $func, $_GET ); $_COOKIE = array_map( $func, $_COOKIE ); $_REQUEST = array_map( $func, $_REQUEST ); } } -------------------------------------------------------------------------------- AFTER public static function reverseMagicQuote() { $func = "reverseMagicQuote_stripslashes_deep"; if ( !function_exists( $func ) && function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc() ) { define( 'REVERSE_MAGIC_QUOTE', $func ); function reverseMagicQuote_stripslashes_deep( $value ) { $value = is_array( $value ) ? array_map( REVERSE_MAGIC_QUOTE, $value ) : stripslashes( $value ); return $value; } $_POST = array_map( $func, $_POST ); $_GET = array_map( $func, $_GET ); $_COOKIE = array_map( $func, $_COOKIE ); $_REQUEST = array_map( $func, $_REQUEST ); } } ================================================================================ 2024-03-10 dcnt/install/mod/setup/CAction_setup.class.php -------------------------------------------------------------------------------- class CAction_setup extends CAction { public function main() { // tell this is installation! <------ CApp::set("is-installation",1); <------ ================================================================================ 2024-03-10 dcnt/admin/mod/exproc/CExProc.class.php -------------------------------------------------------------------------------- case "htmlhead:cfg": if(CApp::get("is-installation")==1){ <----- // do nothing <----- }else{ <----- $cfgapp_org = CCfgDb::get("cfgapp"); //unset($cfg["..."]); $cfgapp["first-dow"] = $cfgapp_org["app:first-dow"]; CJRLdr::loadConfig("cfgapp",$cfgapp); } <----- break; } ================================================================================