]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
Bad things are now 'classified' as bad (CSS class 'bad' is being used instead of...
[mailer.git] / inc / modules / admin / what-refbanner.php
index 937996ee91f0df749b39639fb9578e9ffb6d15d8..e8754f6ba2eb3b28ab48ec4d24dd0344f1914e55 100644 (file)
@@ -6,7 +6,7 @@
  * -------------------------------------------------------------------- *
  * File              : what-refbanner.php                               *
  * -------------------------------------------------------------------- *
- * Short description : Manage all referal banner                        *
+ * Short description : Manage all referral banner                       *
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Alle Banner fuer die Ref-Links verwalten         *
  * -------------------------------------------------------------------- *
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -80,7 +80,7 @@ VALUES ('%s','%s','%s')",
                                $id = bigintval($id);
 
                                // Update entry
-                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `url`='%s', `alternate`='%s', `visible`='%s' WHERE `id`=%s LIMIT 1",
+                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `url`='%s',`alternate`='%s',`visible`='%s' WHERE `id`=%s LIMIT 1",
                                        array(
                                                postRequestElement('url', $id),
                                                postRequestElement('alternate', $id),
@@ -97,7 +97,7 @@ VALUES ('%s','%s','%s')",
                $content = '{--SETTINGS_SAVED--}';
        } else {
                // Nothing has been updated
-               $content = '<span class="notice">{--SETTINGS_NOT_SAVED--}</span>';
+               $content = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
        }
 
        // Display message
@@ -130,12 +130,12 @@ VALUES ('%s','%s','%s')",
                } // END - foreach
        } // END - if
 
-       // Referal levels
+       // Referral levels
        $result = SQL_QUERY('SELECT `id`,`url`,`alternate`,`visible`,`counter`,`clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
 
        // Entries found?
        if (!SQL_HASZERONUMS($result)) {
-               // Make referal banner editable and deletable
+               // Make referral banner editable and deletable
                $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Load row template and switch color
@@ -149,7 +149,7 @@ VALUES ('%s','%s','%s')",
                loadTemplate('admin_list_refbanner', false, $OUT);
        } // END - if
 
-       // Form for adding new referal levels
+       // Form for adding new referral levels
        loadTemplate('admin_add_refbanner');
 }