Changeset 4036


Ignore:
Timestamp:
Oct 14, 2009, 6:13:25 PM (11 years ago)
Author:
patdenice
Message:

Replace another depreciated functions.
Depreciated functions were removed in trunk in commit 3747 by Eric.

Location:
branches/2.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/functions_user.inc.php

    r4035 r4036  
    7676    array_push($errors, l10n('reg_err_login1'));
    7777  }
    78   if (preg_match("/^.* $/", $login))
     78  if (preg_match('/^.* $/', $login))
    7979  {
    8080    array_push($errors, l10n('reg_err_login2'));
    8181  }
    82   if (preg_match("/^ .*$/", $login))
     82  if (preg_match('/^ .*$/', $login))
    8383  {
    8484    array_push($errors, l10n('reg_err_login3'));
  • branches/2.0/tools/create_listing_file.php

    r3196 r4036  
    204204   
    205205    // Backup GD major version
    206     $pwg_conf['gd_version_full'] = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);
     206    $pwg_conf['gd_version_full'] = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']);
    207207    list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']);
    208208   
     
    10881088    {
    10891089      $info = gd_info();
    1090       $gd_full_version = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);
     1090      $gd_full_version = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']);
    10911091      list($gd_version) = preg_split('/[.]+/', $gd_full_version);
    10921092     
  • branches/2.0/upload.php

    r3046 r4036  
    189189    array_push( $error, l10n('upload_filenotfound') );
    190190  }
    191   if ( !ereg( "([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)",
     191  if ( !preg_match( '/([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)/',
    192192             $_POST['mail_address'] ) )
    193193  {
Note: See TracChangeset for help on using the changeset viewer.