Addresses ADDT version 1.0.1.
This article is a continuation of Making the Interakt products compatible with PHP 5.3.
a) line 126, replace
$insert_values .= "'" . mysql_escape_string($value) . "', ";
with
$insert_values .= "'" . mysql_real_escape_string($value) . "', ";
b) line 142, replace
$multiple_values[$i] .= "'" . mysql_escape_string($value) . "', ";
with
$multiple_values[$i] .= "'" . mysql_real_escape_string($value) . "', ";
c) line 209, replace
$select_sql .= "'" . mysql_escape_string($value) . "' AS " . $colName . ", ";
with
$select_sql .= "'" . mysql_real_escape_string($value) . "' AS " . $colName . ", ";
line 240, replace
$arr = split('[\\/]', $file);
with
$arr = preg_split('#[\\/]#', $file);
line 244, replace
$arr = split("[\\/]", $destinationName);
with
$arr = preg_split("#[\\/]#", $destinationName);
line 157, replace
$arrPath = split("[\\/]", $path);
with
$arrPath = preg_split("#[\\/]#", $path);
line 2034, replace
$arr = split("[/\]", $path);
with
$arr = preg_split("#[\\/]#", $path);
line 106, replace
if (ini_get("safe_mode")) {
with
if (@ini_get("safe_mode")) {
line 60, replace
function Trigger_Default_FormValidation(&$tNG, &$uniVal) {
with
function Trigger_Default_FormValidation(&$tNG, $uniVal) {
line 30, replace
parent::tNG_fields($connection);
with
parent::tNG($connection);
line 30, replace
parent::tNG_fields($connection);
with
parent::tNG($connection);
line 436, replace
function getFieldError($fName) {
with
function getFieldError($fName, $cnt = 1) {
line 30, replace
parent::tNG_multiple($connection);
with
parent::tNG($connection);
line 30, replace
parent::tNG_fields($connection);
with
parent::tNG($connection);
a) line 28, replace
function log($className, $methodName=NULL, $message=null) {
with
static function log($className, $methodName=NULL, $message=null) {
b) line 36, replace
function getResult($mode, $uniq='') {
with
static function getResult($mode, $uniq='') {
line 158, replace
function getFieldError($fName, $cnt) {
with
function getFieldError($fName, $cnt = 1) {
line 28, replace
parent::tNG_multiple($connection);
with
parent::tNG($connection);
line 42, replace
parent::tNG_multiple($connection);
with
parent::tNG($connection);
line 35, replace
parent::tNG_multiple($connection);
with
parent::tNG($connection);
line 29, replace
parent::tNG_fields($connection);
with
parent::tNG($connection);