Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / inc / modules / admin / what-edit_user.php
index b81215da76fb47a11e678d188f9034083e5e6df4..e8d3fbd99fc77b95ddd540922bca45de037017f3 100644 (file)
@@ -53,7 +53,7 @@ if (REQUEST_ISSET_GET('uid')) {
 FROM `{!_MYSQL_PREFIX!}_user_data`
 WHERE userid=%s
 LIMIT 1",
-               array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__);
+       array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__);
 }
 
 if ((SQL_NUMROWS($result_main) == 1) || (!REQUEST_ISSET_GET('uid')))
@@ -64,7 +64,7 @@ if ((SQL_NUMROWS($result_main) == 1) || (!REQUEST_ISSET_GET('uid')))
                // Output selection form with all confirmed user accounts listed
                ADD_MEMBER_SELECTION_BOX();
        }
-        elseif (REQUEST_ISSET_POST('edit'))
+       elseif (REQUEST_ISSET_POST('edit'))
        {
                // Ok, change the account...
                $PASS = false; $add = '';
@@ -73,7 +73,7 @@ if ((SQL_NUMROWS($result_main) == 1) || (!REQUEST_ISSET_GET('uid')))
                        // Don't change the password
                        $PASS = true;
                }
-                elseif ((REQUEST_POST('pass1') == REQUEST_POST('pass2')))
+               elseif ((REQUEST_POST('pass1') == REQUEST_POST('pass2')))
                {
                        // Change the password
                        $PASS = true;
@@ -93,20 +93,20 @@ city='%s',
 email='%s'
 ".$add."
 WHERE userid=%s LIMIT 1",
- array(
-       substr(REQUEST_POST('gender'), 0, 1),
-       REQUEST_POST('surname'),
-       REQUEST_POST('family'),
-       REQUEST_POST('street_nr'),
-       REQUEST_POST('country'),
-       bigintval(REQUEST_POST('zip')),
-       REQUEST_POST('city'),
-       REQUEST_POST('email'),
-       bigintval(REQUEST_GET('uid')),
-), __FILE__, __LINE__);
                      array(
+                       substr(REQUEST_POST('gender'), 0, 1),
+                       REQUEST_POST('surname'),
+                       REQUEST_POST('family'),
+                       REQUEST_POST('street_nr'),
+                       REQUEST_POST('country'),
+                       bigintval(REQUEST_POST('zip')),
+                       REQUEST_POST('city'),
+                       REQUEST_POST('email'),
+                       bigintval(REQUEST_GET('uid')),
+                       ), __FILE__, __LINE__);
                        $content = USER_ACCOUNT_SAVED;
                }
-                else
+               else
                {
                        // Problem while saving data
                        $content = USER_ACCOUNT_NOT_SAVED;
@@ -115,7 +115,7 @@ WHERE userid=%s LIMIT 1",
                // Load template
                LOAD_TEMPLATE('admin_settings_saved', false, $content);
        }
-        else
+       else
        {
                // Display form to edit
                list($gender, $surname, $family, $street, $zip, $city, $country, $email, $bday, $bmonth, $byear, $max) = SQL_FETCHROW($result_main);
@@ -124,23 +124,23 @@ WHERE userid=%s LIMIT 1",
                // Transfer data to constants for the template
                switch ($gender)
                {
-               case "M":
-                       define('_GENDER_M', ' selected="selected"');
-                       define('_GENDER_F', '');
-                       define('_GENDER_C', '');
-                       break;
+                       case "M":
+                               define('_GENDER_M', ' selected="selected"');
+                               define('_GENDER_F', '');
+                               define('_GENDER_C', '');
+                               break;
 
-               case "F":
-                       define('_GENDER_M', '');
-                       define('_GENDER_F', ' selected="selected"');
-                       define('_GENDER_C', '');
-                       break;
+                       case "F":
+                               define('_GENDER_M', '');
+                               define('_GENDER_F', ' selected="selected"');
+                               define('_GENDER_C', '');
+                               break;
 
-               case "C":
-                       define('_GENDER_M', '');
-                       define('_GENDER_F', '');
-                       define('_GENDER_C', ' selected="selected"');
-                       break;
+                       case "C":
+                               define('_GENDER_M', '');
+                               define('_GENDER_F', '');
+                               define('_GENDER_C', ' selected="selected"');
+                               break;
                }
 
                define('_SURNAME', $surname); define('_FAMILY', $family); define('_CITY'     , $city);