Changeset 3747 for trunk/include


Ignore:
Timestamp:
Aug 17, 2009, 6:21:09 PM (15 years ago)
Author:
Eric
Message:

PHP 5.3 compatibility - Deprecated functions were replace as follows :
ereg() -> preg_match()
ereg_replace() -> preg_replace()
eregi() -> preg_match() with the 'i' modifier
eregi_replace() -> preg_replace() with the 'i' modifier
set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix.

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r3282 r3747  
    2929$t2 = $t1[1].'.'.$t2[1];
    3030
    31 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
     31@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
    3232
    3333//
  • trunk/include/functions_user.inc.php

    r3642 r3747  
    7676    array_push($errors, l10n('reg_err_login1'));
    7777  }
    78   if (ereg("^.* $", $login))
     78  if (preg_match('/^.* $/', $login))
    7979  {
    8080    array_push($errors, l10n('reg_err_login2'));
    8181  }
    82   if (ereg("^ .*$", $login))
     82  if (preg_match('/^ .*$/', $login))
    8383  {
    8484    array_push($errors, l10n('reg_err_login3'));
Note: See TracChangeset for help on using the changeset viewer.