The AnimeFanlistings Network Message Board

Fanlisting Management => Fanlistings Chit-Chat => Topic started by: Jessy on December 05, 2010, 04:01:30 PM

Title: Enth3 / Codesort2 and php 5.3
Post by: Jessy on December 05, 2010, 04:01:30 PM
I noticed today that my webhost had upgraded the php server to php 5.3 and I was getting several warnings in my scripts, because some of the code was deprecated.
For those with the same problems, I've already fixed the following in the script and now it works again.

Enth3
Mail.php
Code: [Select]
Line 154: $parser = &new Mail_RFC822();replace with
Code: [Select]
Line 154: $parser = new Mail_RFC822();
PEAR.php
Code: [Select]
Line 563: $a = &new $ec($code, $mode, $options, $userinfo);
Line 566: $a = &new $ec($message, $code, $mode, $options, $userinfo);
replace with
Code: [Select]
Line 563: $a = new $ec($code, $mode, $options, $userinfo);
Line 566: $a = new $ec($message, $code, $mode, $options, $userinfo);

show_join.php
Code: [Select]
Line 139: $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" .
"@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$";
Line 141: if( $_POST['email'] && ereg( $matchstring, $_POST['email'] ) )
replace with
Code: [Select]
Line 139: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/";
Line 141: if( $_POST['email'] && preg_match( $matchstring, $_POST['email'] ) )

show_lostpass.php
Code: [Select]
Line 118: $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" .
"@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$";
Line 129: else if( !ereg( $matchstring, $_POST['email'] ) )
replace with
Code: [Select]
Line 118: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/";
Line 129: else if( !preg_match( $matchstring, $_POST['email'] ) )

show_update.php
Code: [Select]
Line 086: $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" .
"@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$";
Line 089: if( !ereg( $matchstring, clean( $_POST['email'] ) ) ||
replace with
Code: [Select]
Line 086: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/";
Line 089: if( !preg_match( $matchstring, clean( $_POST['email'] ) ) ||


Codesort 2
functions.php
Code: [Select]
Line 035: $instance =& new $object;replace with
Code: [Select]
Line 035: $instance = new $object;
Title: Enth3 / Codesort2 and php 5.3
Post by: Shalott on December 28, 2010, 01:43:15 AM
Pinned for future reference. If anyone has any additions to make, please list them within this topic.
Title: Enth3 / Codesort2 and php 5.3
Post by: Aqua on January 04, 2011, 12:38:59 PM
Hey, um i was wondering...does anybody have a link to where i could download codesort?
I'm going to install it on my fanlistings :sweatdrop:
Thanks!
Title: Enth3 / Codesort2 and php 5.3
Post by: Jessy on January 04, 2011, 02:52:36 PM
You can download codesort at http://fanupdate.co.uk/codesort.php (http://\"http://fanupdate.co.uk/codesort.php\") . It doesn't include the adjustments that I wrote about above.