Replace another depreciated functions.
Depreciated functions were removed in trunk in commit 3747 by Eric. git-svn-id: http://piwigo.org/svn/branches/2.0@4036 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
246634cb72
commit
e04bd969cb
3 changed files with 5 additions and 5 deletions
|
@ -75,11 +75,11 @@ function register_user($login, $password, $mail_address,
|
||||||
{
|
{
|
||||||
array_push($errors, l10n('reg_err_login1'));
|
array_push($errors, l10n('reg_err_login1'));
|
||||||
}
|
}
|
||||||
if (preg_match("/^.* $/", $login))
|
if (preg_match('/^.* $/', $login))
|
||||||
{
|
{
|
||||||
array_push($errors, l10n('reg_err_login2'));
|
array_push($errors, l10n('reg_err_login2'));
|
||||||
}
|
}
|
||||||
if (preg_match("/^ .*$/", $login))
|
if (preg_match('/^ .*$/', $login))
|
||||||
{
|
{
|
||||||
array_push($errors, l10n('reg_err_login3'));
|
array_push($errors, l10n('reg_err_login3'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,7 +203,7 @@ function pwg_check_graphics()
|
||||||
$info = gd_info();
|
$info = gd_info();
|
||||||
|
|
||||||
// Backup GD major version
|
// Backup GD major version
|
||||||
$pwg_conf['gd_version_full'] = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);
|
$pwg_conf['gd_version_full'] = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']);
|
||||||
list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']);
|
list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']);
|
||||||
|
|
||||||
// Backup input/output format support
|
// Backup input/output format support
|
||||||
|
@ -1087,7 +1087,7 @@ function pwg_test_exit()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$info = gd_info();
|
$info = gd_info();
|
||||||
$gd_full_version = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);
|
$gd_full_version = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']);
|
||||||
list($gd_version) = preg_split('/[.]+/', $gd_full_version);
|
list($gd_version) = preg_split('/[.]+/', $gd_full_version);
|
||||||
|
|
||||||
$g_message .= ' <h3>Image generation</h3>'."\n";
|
$g_message .= ' <h3>Image generation</h3>'."\n";
|
||||||
|
|
|
@ -188,7 +188,7 @@ if ( isset( $_POST['submit'] ) and !isset( $_GET['waiting_id'] ) )
|
||||||
{
|
{
|
||||||
array_push( $error, l10n('upload_filenotfound') );
|
array_push( $error, l10n('upload_filenotfound') );
|
||||||
}
|
}
|
||||||
if ( !ereg( "([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)",
|
if ( !preg_match( '/([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)/',
|
||||||
$_POST['mail_address'] ) )
|
$_POST['mail_address'] ) )
|
||||||
{
|
{
|
||||||
array_push( $error, l10n('reg_err_mail_address') );
|
array_push( $error, l10n('reg_err_mail_address') );
|
||||||
|
|
Loading…
Add table
Reference in a new issue