The AnimeFanlistings Network Message Board

Enth3 / Codesort2 and php 5.3

Jessy · 4 · 2924

Offline Jessy

  • Newbie
  • *
    • Posts: 0
    • View Profile
    • http://www.magical-intentions.com
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;

http://www.magical-intentions.com\'>MAGICAL INTENTIONS ~ http://fans.magical-intentions.com\'>SHIRAYUKI

LATEST TAFL: http://behindtheblue.net/barairomyhoney\'> SERIES >> Barairo my Honey

LATEST TAFL: http://behindtheblue.net/midnightsecretary\'> SERIES >> Midnight secretary




Offline Shalott

  • TAFL Staff Alumni
  • *
    • Posts: 0
    • View Profile
    • http://fan.nameless-way.com
Pinned for future reference. If anyone has any additions to make, please list them within this topic.


Offline Aqua

  • Newbie
  • *
    • Posts: 0
  • Fanlistings, web-design, drawing
    • View Profile
    • http://thedizzyheavens.spookish.net
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!


Offline Jessy

  • Newbie
  • *
    • Posts: 0
    • View Profile
    • http://www.magical-intentions.com
You can download codesort at http://fanupdate.co.uk/codesort.php . It doesn't include the adjustments that I wrote about above.

http://www.magical-intentions.com\'>MAGICAL INTENTIONS ~ http://fans.magical-intentions.com\'>SHIRAYUKI

LATEST TAFL: http://behindtheblue.net/barairomyhoney\'> SERIES >> Barairo my Honey

LATEST TAFL: http://behindtheblue.net/midnightsecretary\'> SERIES >> Midnight secretary