PHP 5.3 brings the following sets of changes: deprecates old features in favor of modern, standard and performant ones; makes the language syntax less permissive. Download the modified files Kollection : Shop
Jump to section : Common : Kollection : Kart & Shop : KTML : MX Charts 1. Common's folder1.1. Deprecated function mysql_escape_string() used in includes/common/lib/db/KT_FakeRecordset.class.phpa) line 115, replace $insert_values .= "'" . mysql_escape_string($value) . "', ";with $insert_values .= "'" . mysql_real_escape_string($value) . "', ";
b) line 131, replace $multiple_values[$i] .= "'" . mysql_escape_string($value) . "', ";with $multiple_values[$i] .= "'" . mysql_real_escape_string($value) . "', ";
$select_sql .= "'" . mysql_escape_string($value) . "' AS " . $colName . ", ";with $select_sql .= "'" . mysql_real_escape_string($value) . "' AS " . $colName . ", ";1.2. Deprecated function split() used in includes/common/lib/file/KT_File.class.phpline 229, replace $arr = split('[\\/]', $file);with $arr = preg_split('#[\\/]#', $file);1.3. Deprecated function split() used in includes/common/lib/file_upload/KT_FileUpload.class.phpline 233, replace $arr = split("[\\/]", $destinationName);with $arr = preg_split("#[\\/]#", $destinationName);1.4. Deprecated function split() used in includes/common/lib/folder/KT_Folder.class.phpline 146, replace $arrPath = split("[\\/]", $path);with $arrPath = preg_split("#[\\/]#", $path);1.5. Deprecated function split() used in includes/common/lib/image/KT_Image.class.phpline 2004, replace $arr = split("[/\]", $path);with $arr = preg_split("#[\\/]#", $path);
1.6. Deprecated Safe Mode configuration used in includes/common/lib/shell/KT_Shell.class.phpline 95, replace if (ini_get("safe_mode")) {with if (@ini_get("safe_mode")) {
2. Kollection2.1. includes/tng/triggers/tNG_defTrigg.inc.phpline 49, replace function Trigger_Default_FormValidation(&$tNG, &$uniVal) {with function Trigger_Default_FormValidation(&$tNG, $uniVal) {2.2. includes/tng/tNG_custom.class.phpline 19, replace parent::tNG_fields($connection); with parent::tNG($connection); 2.3. includes/tng/tNG_delete.class.phpline 19, replace parent::tNG_fields($connection); with parent::tNG($connection); 2.4. includes/tng/tNG_fields.class.phpline 425, replace function getFieldError($fName) {with function getFieldError($fName, $cnt = 1) {2.5. includes/tng/tNG_insert.class.phpline 19, replace parent::tNG_fields($connection); with parent::tNG($connection); 2.6. includes/tng/tNG_log.class.phpa) line 17, replace function log($className, $methodName=NULL, $message=null) {with static function log($className, $methodName=NULL, $message=null) {b) line 25, replace function getResult($mode, $uniq='') {with static function getResult($mode, $uniq='') {2.7. includes/tng/tNG_multiple.class.phpline 147, replace function getFieldError($fName, $cnt) {with function getFieldError($fName, $cnt = 1) {2.8. includes/tng/tNG_multipleDelete.class.phpline 17, replace parent::tNG_multiple($connection); with parent::tNG($connection); 2.9. includes/tng/tNG_multipleInsert.class.phpline 31, replace parent::tNG_multiple($connection); with parent::tNG($connection); 2.10. includes/tng/tNG_multipleUpdate.class.phpline 24, replace parent::tNG_multiple($connection); with parent::tNG($connection); 2.11. includes/tng/tNG_update.class.phpline 18, replace parent::tNG_fields($connection); with parent::tNG($connection); 3. Kart & Shop3.1. Deprecated function session_unregister() used in includes/krt/krt_functions.inc.phpa) line 82, replace session_unregister('KT_MXKART');with unset($_SESSION['KT_MXKART']); b) line 93, replace session_unregister($key); with unset($_SESSION[$key]); 3.2. includes/tng/krt_tNG.class.phpline 28, replace function addColumn($colName, $type, $method, $reference, $null) {with function addColumn($colName, $type, $method, $reference, $defaultValue = '') {
3.3. includes/tng/krt_tNG_delete.class.phpline 13, replace function setPrimaryKey($colName, $type, $method, $reference) with function setPrimaryKey($colName, $type, $method='VALUE', $reference=NULL) 3.4. includes/tng/krt_tNG_insert.class.phpline 10, replace function addColumn($colName, $type, $method, $reference, $null) {with function addColumn($colName, $type, $method, $reference, $defaultValue = '') {
3.5. Deprecated function split() used in MXKart/authnet.phpa) line 52, replace $responseArr = split('\|', $response);with $responseArr = preg_split('#[\|]#', $response);b) line 54, replace $responseArr = split(',', $response);with $responseArr = explode(',', $response);
4. KTML4.1. Deprecated function split() used in includes/ktm/plugins/ktml4_security.class.phpline 239, replace $arr = split("\\/", $folderName);with $arr = preg_split("#[\\/]#", $folderName);4.2. Deprecated function split() used in includes/ktm/plugins/modules/spellcheck/service/ktml4_mspl_spellcheck.class.phpa) line 178, replace $tmpAddedWords = split("[\n\r]", $content);with $tmpAddedWords = preg_split("#[\n\r]#", $content);b) line 367, replace $lines = split("[\r\n]", $text);with $lines = preg_split("#[\r\n]#", $text);5. MX Chartsline 201, replace $arr = preg_split('#[\\/]#', $file); with $arr = preg_split('#[\\.,/]#', $y); Jump to section : Common : Kollection : Kart & Shop : KTML : MX Charts |
|||||||||||
Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites. |
|||||||||||
|
|||||||||||