Changeset 3747
- Timestamp:
- Aug 17, 2009, 6:21:09 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/thumbnail.php
r3720 r3747 232 232 233 233 // 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) 235 235 { 236 236 array_push($page['errors'], l10n('tn_err_width').' 10'); 237 237 } 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) 239 239 { 240 240 array_push($page['errors'], l10n('tn_err_height').' 10'); -
trunk/include/common.inc.php
r3282 r3747 29 29 $t2 = $t1[1].'.'.$t2[1]; 30 30 31 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime31 @set_magic_quotes_runtime(0); // Disable magic_quotes_runtime 32 32 33 33 // -
trunk/include/functions_user.inc.php
r3642 r3747 76 76 array_push($errors, l10n('reg_err_login1')); 77 77 } 78 if ( ereg("^.* $", $login))78 if (preg_match('/^.* $/', $login)) 79 79 { 80 80 array_push($errors, l10n('reg_err_login2')); 81 81 } 82 if ( ereg("^ .*$", $login))82 if (preg_match('/^ .*$/', $login)) 83 83 { 84 84 array_push($errors, l10n('reg_err_login3')); -
trunk/install.php
r3715 r3747 73 73 } 74 74 75 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime75 @set_magic_quotes_runtime(0); // Disable magic_quotes_runtime 76 76 // 77 77 // addslashes to vars if magic_quotes_gpc is off this is a security -
trunk/tools/create_listing_file.php
r3282 r3747 204 204 205 205 // 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']); 207 207 list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']); 208 208 … … 1088 1088 { 1089 1089 $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']); 1091 1091 list($gd_version) = preg_split('/[.]+/', $gd_full_version); 1092 1092 -
trunk/upload.php
r3282 r3747 58 58 $result = array(); 59 59 $result['error'] = array(); 60 //echo $_FILES['picture']['name']."<br >".$temp_name;60 //echo $_FILES['picture']['name']."<br />".$temp_name; 61 61 $extension = get_extension( $_FILES['picture']['name'] ); 62 62 if (!in_array($extension, $conf['picture_ext'])) … … 189 189 array_push( $error, l10n('upload_filenotfound') ); 190 190 } 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-]+)+)/', 192 192 $_POST['mail_address'] ) ) 193 193 {
Note: See TracChangeset
for help on using the changeset viewer.