]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_user.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / admin / what-edit_user.php
index 06b725b691dce08416b7835f1a8681f5b4492ddd..32b6ceb9b914350b586d35e42ccdaa4ef1ca0bf7 100644 (file)
@@ -43,11 +43,11 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 // Fix a notice
 $result_main = false;
-if (REQUEST_ISSET_GET(('uid'))) {
+if (REQUEST_ISSET_GET('uid')) {
        //                                    0      1        2         3      4     5      6       7         8          9           10         11
        $result_main = SQL_QUERY_ESC("SELECT gender, surname, family, street_nr, zip, city, country, email, birth_day, birth_month, birth_year, max_mails
 FROM `{!_MYSQL_PREFIX!}_user_data`
@@ -56,10 +56,10 @@ LIMIT 1",
                array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__);
 }
 
-if ((SQL_NUMROWS($result_main) == 1) || (!REQUEST_ISSET_GET(('uid'))))
+if ((SQL_NUMROWS($result_main) == 1) || (!REQUEST_ISSET_GET('uid')))
 {
        // User found
-       if (!REQUEST_ISSET_GET(('uid')))
+       if (!REQUEST_ISSET_GET('uid'))
        {
                // Output selection form with all confirmed user accounts listed
                ADD_MEMBER_SELECTION_BOX();
@@ -67,7 +67,7 @@ if ((SQL_NUMROWS($result_main) == 1) || (!REQUEST_ISSET_GET(('uid'))))
         elseif (REQUEST_ISSET_POST('edit'))
        {
                // Ok, change the account...
-               $PASS = false; $add = "";
+               $PASS = false; $add = '';
                if ((!REQUEST_ISSET_POST(('pass1'))) && (!REQUEST_ISSET_POST(('pass2'))))
                {
                        // Don't change the password
@@ -113,7 +113,7 @@ WHERE userid=%s LIMIT 1",
                }
 
                // Load template
-               LOAD_TEMPLATE("admin_settings_saved", false, $content);
+               LOAD_TEMPLATE('admin_settings_saved', false, $content);
        }
         else
        {
@@ -126,19 +126,19 @@ WHERE userid=%s LIMIT 1",
                {
                case "M":
                        define('_GENDER_M', " selected=\"selected\"");
-                       define('_GENDER_F', "");
-                       define('_GENDER_C', "");
+                       define('_GENDER_F', '');
+                       define('_GENDER_C', '');
                        break;
 
                case "F":
-                       define('_GENDER_M', "");
+                       define('_GENDER_M', '');
                        define('_GENDER_F', " selected=\"selected\"");
-                       define('_GENDER_C', "");
+                       define('_GENDER_C', '');
                        break;
 
                case "C":
-                       define('_GENDER_M', "");
-                       define('_GENDER_F', "");
+                       define('_GENDER_M', '');
+                       define('_GENDER_F', '');
                        define('_GENDER_C', " selected=\"selected\"");
                        break;
                }
@@ -152,7 +152,7 @@ WHERE userid=%s LIMIT 1",
        }
 } else {
        // Account does not exists!
-       LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), REQUEST_GET('uid'))."</div>");
+       LOAD_TEMPLATE('admin_settings_saved', false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), REQUEST_GET('uid'))."</div>");
 }
 
 //