]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / admin / what-list_country.php
index 2a151aa1e7351357f8e4ff4c5efcc217dc3a7a29..4c1e30c5438fd73c467984846b4693babcf2a2d9 100644 (file)
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 // Add new code?
 if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_ISSET_POST(('descr')))) {
@@ -70,7 +70,7 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
        }
 
        // Display message
-       LOAD_TEMPLATE("admin_settings_saved", false, $message);
+       LOAD_TEMPLATE('admin_settings_saved', false, $message);
 } elseif ((REQUEST_ISSET_POST('change')) && (REQUEST_ISSET_POST(('id')))) {
        // Change all status
        ADMIN_CHANGE_ACTIVATION_STATUS(REQUEST_POST('id'), "countries", "is_active");
@@ -85,7 +85,7 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
                if (REQUEST_ISSET_POST('edit')) {
                        // Edit template
                        $row    = "admin_list_country_edit_row";
-                       $post   = "modify";
+                       $post   = 'modify';
                        $class  = "admin_submit";
                        $submit = getMessage('ADMIN_COUNTRY_EDIT_NOW');
                        $title  = getMessage('ADMIN_COUNTRY_EDIT_TITLE');
@@ -93,15 +93,15 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
                } else {
                        // Delete template
                        $row    = "admin_list_country_del_row";
-                       $post   = "remove";
+                       $post   = 'remove';
                        $class  = "admin_delete";
                        $submit = getMessage('ADMIN_COUNTRY_DELETE_NOW');
                        $title  = getMessage('ADMIN_COUNTRY_DELETE_TITLE');
-                       $reset  = "";
+                       $reset  = '';
                }
 
                // Edit all selected country codes
-               $OUT = ""; $SW = 2;
+               $OUT = ''; $SW = 2;
                foreach (REQUEST_POST('id') as $id => $status) {
                        // Load data from DB
                        $result = SQL_QUERY_ESC("SELECT code, descr FROM `{!_MYSQL_PREFIX!}_countries` WHERE id=%s LIMIT 1",
@@ -119,7 +119,7 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
                                        'sw'    => $SW,
                                );
 
-                               if ($post == "modify") {
+                               if ($post == 'modify') {
                                        // Generate default selection in edit-mode
                                        $content['status'] = ADD_OPTION_LINES("/ARRAY/", array("Y","N"), array(YES, NO ), $status);
                                } else {
@@ -144,7 +144,7 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
        }
 } else {
        // Shall we modify / remove entries now?
-       $message = ""; INIT_SQLS();
+       $message = ''; INIT_SQLS();
        if ((REQUEST_ISSET_POST(('modify'))) && (REQUEST_ISSET_POST(('id')))) {
                // Modify
                foreach (REQUEST_POST('id') as $id => $sel) {
@@ -167,14 +167,14 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
                runFilterChain('run_sqls');
 
                // Display message
-               LOAD_TEMPLATE("admin_settings_saved", false, $message);
+               LOAD_TEMPLATE('admin_settings_saved', false, $message);
        }
 
        // Load currenty setup country codes to list
        $result = SQL_QUERY("SELECT id, code, descr, is_active FROM `{!_MYSQL_PREFIX!}_countries` ORDER BY code", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List all countries
-               $OUT = ""; $SW = 2;
+               $OUT = ''; $SW = 2;
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        // @TODO Rewritings: name->descr,status->is_active in template