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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r3720 r3747  
    232232 
    233233  // checking criteria
    234   if (!ereg('^[0-9]{2,3}$', $_POST['width']) or $_POST['width'] < 10)
     234  if (!preg_match('/^[0-9]{2,3}$/', $_POST['width']) or $_POST['width'] < 10)
    235235  {
    236236    array_push($page['errors'], l10n('tn_err_width').' 10');
    237237  }
    238   if (!ereg('^[0-9]{2,3}$', $_POST['height']) or $_POST['height'] < 10)
     238  if (!preg_match('/^[0-9]{2,3}$/', $_POST['height']) or $_POST['height'] < 10)
    239239  {
    240240    array_push($page['errors'], l10n('tn_err_height').' 10');
Note: See TracChangeset for help on using the changeset viewer.