================================================================================
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/auser/www/html/testing-center/f-data/test1127/SNTQK-105/ntic/admin/mod/dtable/CDTable.class.php on line 276
--------------------------------------------------------------------------------
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/test1127/SNTQK-105/ntic/admin/mod/base/CObject.class.php on line 13
--------------------------------------------------------------------------------
BEFORE
return htmlspecialchars($s);
--------------------------------------------------------------------------------
AFTER
return $s?htmlspecialchars($s):"";
================================================================================
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 SNTQK-105J version only (2024-03-11)
--------------------------------------------------------------------------------
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/auser/www/html/testing-center/f-data/test1135/SNTQK-105J/ntic/lib/sys/CPreProc.class.php:39 Stack trace: #0 /home/auser/www/html/testing-center/f-data/test1135/SNTQK-105J/ntic/lib/sys/index.inc.php(26): CPreProc::reverseMagicQuote() #1 /home/auser/www/html/testing-center/f-data/test1135/SNTQK-105J/ntic/install/startup.inc.php(12): include_once('...') #2 /home/auser/www/html/testing-center/f-data/test1135/SNTQK-105J/ntic/install/index.php(11): include_once('...') #3 {main} thrown in /home/auser/www/html/testing-center/f-data/test1135/SNTQK-105J/ntic/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 );
}
}
================================================================================