MX Kollection Forum :: Making the Interakt products compatible with PHP 5.3

This thread was displayed: 0 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show all Show descending
Andrei Bejenaru
02-17-2010 11:58:46 GMT +2

Making the Interakt products compatible with PHP5.3

This post also applies to Adobe Dreamweaver Developer Toolbox (ADDT)

PHP 5.3 brings the following sets of changes: deprecates old features in favour of modern, standard and performant ones; makes the language syntax less permissive.

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 ge	  
View full message
Back | Reply | Quote | Top
André Bender
02-27-2010 16:39:39 GMT +2

This should also be done in ADDT 1.0.1?

What happens, if I don't do this update?

By the way, I'm extremely happy to see that "interakt" is back to life. I hope Adobe passes the code to the new community as an open source software.

Reply | Quote | Top
Fred at ExelWebs.com
02-27-2010 17:57:56 GMT +2

As far as I know this needs to be done to ADDT as well.

Not sure as I do not use ADDT.

If you do not apply the patch your sites will stop working when your ISP upgrades to php 5.3 because there is a lot of functions that is removed from the new php version.

The new interakt community is purely user driven.  I know there was a lot of people that tried it previously without success but lets see if we can make it work this time around.

As for Adobe giving us the source...
Well hopes never die but I don't think it is going to happen. (Personal opinion)

Reply | Quote | Top
André Bender
02-27-2010 19:48:42 GMT +2

Hi Fred

Thanks for your reply. Currently my sites run with PHP 4, so I do not have to update yet.

Adobe's philosophy is a shame. There is no replacement for ADDT and MX Kollection has just been removed from marked.

I hope that this project will be successful. It would be nice to have a tool with the current functionalities that will be supported in the future.

I checked Flex, the basic concept is good but database connectivity and php support implementation is unusable for a non "full" programmer.

What I always loved with the Interakt tool was the possibility to implement special functionalities without high programming skills.


Reply | Quote | Top
Andrei Bejenaru
03-01-2010 17:16:54 GMT +2

For those still using PHP 4, you must not apply the modifications! They are only compatible with PHP 5 (all versions, not only 5.3) and will cause problems with PHP 4 installations.

 

Reply | Quote | Top
Fred at ExelWebs.com
03-01-2010 17:24:20 GMT +2

Anyone still using php 4 is running a risk of being hacked anyway so it is a good idea to get yourself a new host if you are still on php 4.

The last php4 security patch was released on 4 January 2008.

Reply | Quote | Top
André Bender
03-01-2010 17:41:44 GMT +2

Hi Andrei

Yes, I got that ;-).

Do these code changes make ADDT php 5 compatible? Have you tested it?

Reply | Quote | Top
Andrei Bejenaru
03-01-2010 17:50:59 GMT +2

No, I have not yet worked on an ADDT website.

If you agree, you can send me a zip with the includes folder generated by ADDT. I'll check how the Kollection modifications apply to ADDT and make the results publicly available here and on www.interaktonline.info.

Email is abejenaru[at]gmail[dot]com.

Reply | Quote | Top
André Bender
03-01-2010 18:03:19 GMT +2

No problem, please check your mailbox

Reply | Quote | Top
Lee ReynoldsTeam InterAKT member
03-05-2010 19:28:17 GMT +2

AWESOME! Thanks! -LR

Reply | Quote | Top
Dylan
03-17-2010 15:46:40 GMT +2

Thank you Andrei !

I've been trying out Webassist product and applying a few fixes to make ADDT 5.3 compatible is preferable to using their rubbish tools.

I do wonder what will happen when we get to PHP6?

Dylan.

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.