Interakt Kollection PHP 5.3 Compatibility Fixes

Complete patch-package for the Kollection extension.

The following files and errors had been corrected.

Commons Folder

  • Deprecated function mysql_escape_string() used in includes/common/lib/db/KT_FakeRecordset.class.php
  • Deprecated function split() used in includes/common/lib/file/KT_File.class.php
  • Deprecated function split() used in includes/common/lib/file_upload/KT_FileUpload.class.php
  • Deprecated function split() used in includes/common/lib/folder/KT_Folder.class.php
  • Deprecated function split() used in includes/common/lib/image/KT_Image.class.php
  • Deprecated Safe Mode configuration used in includes/common/lib/shell/KT_Shell.class.php

Kollection

  • includes/tng/triggers/tNG_defTrigg.inc.php
  • includes/tng/tNG_custom.class.php
  • includes/tng/tNG_delete.class.php
  • includes/tng/tNG_fields.class.php
  • includes/tng/tNG_insert.class.php
  • includes/tng/tNG_log.class.php
  • includes/tng/tNG_multiple.class.php
  • includes/tng/tNG_multipleDelete.class.php
  • includes/tng/tNG_multipleInsert.class.php
  • includes/tng/tNG_multipleUpdate.class.php
  • includes/tng/tNG_update.class.php

Detailed Description of fixes applied

1. Common's folder
**************************************************************
1.1. Deprecated function mysql_escape_string() used in includes/common/lib/db/KT_FakeRecordset.class.php

a) 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) . "', ";

c) line 198, replace

$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.php

line 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.php

line 233, replace

$arr = split("[\\/]", $destinationName);

with

$arr = preg_split("#[\\/]#", $destinationName);

1.4. Deprecated function split() used in includes/common/lib/folder/KT_Folder.class.php

line 146, replace

$arrPath = split("[\\/]", $path);

with

$arrPath = preg_split("#[\\/]#", $path);

1.5. Deprecated function split() used in includes/common/lib/image/KT_Image.class.php

line 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.php

line 95, replace

if (ini_get("safe_mode")) {

with

if (@ini_get("safe_mode")) {

2. Kollection
******************************************************************
2.1. includes/tng/triggers/tNG_defTrigg.inc.php

line 49, replace

function Trigger_Default_FormValidation(&$tNG, &$uniVal) {

with

function Trigger_Default_FormValidation(&$tNG, $uniVal) {

2.2. includes/tng/tNG_custom.class.php

line 19, replace

parent::tNG_fields($connection);

with

parent::tNG($connection);

2.3. includes/tng/tNG_delete.class.php

line 19, replace

parent::tNG_fields($connection);

with

parent::tNG($connection);

2.4. includes/tng/tNG_fields.class.php

line 425, replace

function getFieldError($fName) {

with

function getFieldError($fName, $cnt = 1) {

2.5. includes/tng/tNG_insert.class.php

line 19, replace

parent::tNG_fields($connection);

with

parent::tNG($connection);

2.6. includes/tng/tNG_log.class.php

a) 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.php

line 147, replace

function getFieldError($fName, $cnt) {

with

function getFieldError($fName, $cnt = 1) {

2.8. includes/tng/tNG_multipleDelete.class.php

line 17, replace

parent::tNG_multiple($connection);

with

parent::tNG($connection);

2.9. includes/tng/tNG_multipleInsert.class.php

line 31, replace

parent::tNG_multiple($connection);

with

parent::tNG($connection);

2.10. includes/tng/tNG_multipleUpdate.class.php

line 24, replace

parent::tNG_multiple($connection);

with

parent::tNG($connection);

2.11. includes/tng/tNG_update.class.php

line 18, replace

parent::tNG_fields($connection);

with

parent::tNG($connection);

Download File here

Adobe

Although we try to ensure all the files submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.



"Friends of Interakt" has no connection to the Adobe Interakt Company