aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric <eric@piwigo.org>2009-10-09 15:58:56 +0000
committerEric <eric@piwigo.org>2009-10-09 15:58:56 +0000
commitce511ebf6bf7ae020ff45e9c057a66dcf1f7a397 (patch)
tree670b972ba37a7ad0e3b2d21395283646579aa7a3
parent57225129b276b7e3494df4b027c0daeed02ca11b (diff)
[Bug 1041] [REV 4008] Merged form trunk to branch
Coding guidelines improvement git-svn-id: http://piwigo.org/svn/branches/2.0@4009 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/user_list.php100
1 files changed, 50 insertions, 50 deletions
diff --git a/admin/user_list.php b/admin/user_list.php
index daac95a8e..38f27e927 100644
--- a/admin/user_list.php
+++ b/admin/user_list.php
@@ -187,59 +187,59 @@ $page['direction_items'] = array(
// This feature is discussed on Piwigo's english forum
if ($conf['double_password_type_in_admin'] == true)
{
- if (isset($_POST['submit_add']))
- {
- if(empty($_POST['password']))
- {
- array_push($page['errors'], l10n('Password is missing'));
- }
- else if(empty($_POST['password_conf']))
- {
- array_push($page['errors'], l10n('Password confirmation is missing'));
- }
- else if(empty($_POST['email']))
- {
- array_push($page['errors'], l10n('Email address is missing'));
- }
- else if ($_POST['password'] != $_POST['password_conf'])
- {
- array_push($page['errors'], l10n('Password confirmation error'));
- }
- else
- {
- $page['errors'] = register_user(
- $_POST['login'], $_POST['password'], $_POST['email'], false);
-
- if (count($page['errors']) == 0)
- {
- array_push(
- $page['infos'],
- sprintf(
- l10n('user "%s" added'),
- $_POST['login']
- )
- );
- }
- }
- }
+ if (isset($_POST['submit_add']))
+ {
+ if(empty($_POST['password']))
+ {
+ array_push($page['errors'], l10n('Password is missing'));
+ }
+ else if(empty($_POST['password_conf']))
+ {
+ array_push($page['errors'], l10n('Password confirmation is missing'));
+ }
+ else if(empty($_POST['email']))
+ {
+ array_push($page['errors'], l10n('Email address is missing'));
+ }
+ else if ($_POST['password'] != $_POST['password_conf'])
+ {
+ array_push($page['errors'], l10n('Password confirmation error'));
+ }
+ else
+ {
+ $page['errors'] = register_user(
+ $_POST['login'], $_POST['password'], $_POST['email'], false);
+
+ if (count($page['errors']) == 0)
+ {
+ array_push(
+ $page['infos'],
+ sprintf(
+ l10n('user "%s" added'),
+ $_POST['login']
+ )
+ );
+ }
+ }
+ }
}
else if ($conf['double_password_type_in_admin'] == false)
{
- if (isset($_POST['submit_add']))
- {
- $page['errors'] = register_user(
- $_POST['login'], $_POST['password'], $_POST['email'], false);
-
- if (count($page['errors']) == 0)
- {
- array_push(
- $page['infos'],
- sprintf(
- l10n('user "%s" added'),
- $_POST['login']
- )
- );
- }
+ if (isset($_POST['submit_add']))
+ {
+ $page['errors'] = register_user(
+ $_POST['login'], $_POST['password'], $_POST['email'], false);
+
+ if (count($page['errors']) == 0)
+ {
+ array_push(
+ $page['infos'],
+ sprintf(
+ l10n('user "%s" added'),
+ $_POST['login']
+ )
+ );
+ }
}
}