A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / admin / what-refbanner.php
index a9236b0c508fa7541e62908a046c5178e7901325..2e64fa299931a217e1266b06d1bd57099d43a7d8 100644 (file)
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 // Init variable
 $SEL = 0;
@@ -58,11 +58,11 @@ if (REQUEST_ISSET_POST('sel')) $SEL = SELECTION_COUNT(REQUEST_POST('sel'));
 
 if (IS_FORM_SENT()) {
        // Fix older calls from add-new-banner-form
-       if (!REQUEST_ISSET_GET(('mode'))) REQUEST_SET_GET('mode', "add");
-       $sql = "";
+       if (!REQUEST_ISSET_GET(('mode'))) REQUEST_SET_GET('mode', 'add');
+       $sql = '';
        switch (REQUEST_GET('mode'))
        {
-       case "add":
+       case 'add':
                // Check if banner is already added
                $result = SQL_QUERY_ESC("SELECT id FROM `{!_MYSQL_PREFIX!}_refbanner` WHERE url='%s' LIMIT 1",
                        array(REQUEST_POST('url')), __FILE__, __LINE__);
@@ -99,10 +99,10 @@ VALUES ('%s','%s','%s')",
        } else {
                $content = "<span class=\"admin_failed\">{--SETTINGS_NOT_SAVED--}</span>";
        }
-       LOAD_TEMPLATE("admin_settings_saved", false, $content);
+       LOAD_TEMPLATE('admin_settings_saved', false, $content);
 } elseif (($SEL > 0) && (REQUEST_ISSET_POST('edit'))) {
        // Edit banner
-       $SW = ""; $OUT = "";
+       $SW = ''; $OUT = '';
        foreach (REQUEST_POST('sel') as $id => $sel) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT url, alternate, visible FROM `{!_MYSQL_PREFIX!}_refbanner` WHERE id=%s LIMIT 1",
@@ -143,7 +143,7 @@ VALUES ('%s','%s','%s')",
                __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Make referal banner editable and deletable
-               $OUT = ""; $SW = 2;
+               $OUT = ''; $SW = 2;
                while ($content = SQL_FETCHARRAY($result)) {
                        // Preapre data for the row
                        // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template