]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor_pay.php
A lot double-quotes rewritten to single-quotes, some redirect URLs fixed
[mailer.git] / inc / modules / admin / what-list_sponsor_pay.php
index 12098ede2f5f57a6fdc8fe15deef15af763709a4..9642de00b76d57b107b0c79608b23626dc29f874 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Auflisten/Aendern/Loeschen aller Buchungspakete  *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -38,9 +43,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
-$MSG = "";
+$message = '';
 
 if (REQUEST_ISSET_POST(('add'))) {
        // Check input variables
@@ -52,15 +57,15 @@ if (REQUEST_ISSET_POST(('add'))) {
        if ((REQUEST_POST('pay_min_count') == 0) || (!REQUEST_ISSET_POST(('pay_min_count')))) REQUEST_UNSET_POST(('add'));
        if (!REQUEST_ISSET_POST(('pay_currency'))) REQUEST_UNSET_POST(('add'));
 
-} elseif ((REQUEST_ISSET_POST('edit')) || (REQUEST_ISSET_POST('del')) || (REQUEST_ISSET_POST(('change'))) || (REQUEST_ISSET_POST(('remove')))) {
+} elseif ((REQUEST_ISSET_POST('edit')) || (REQUEST_ISSET_POST('del')) || (REQUEST_ISSET_POST('change')) || (REQUEST_ISSET_POST('remove'))) {
        // Check if at least one entry was selected
        if (!REQUEST_ISSET_POST(('id'))) {
                // Nothing selected for editing / deleting???
                REQUEST_UNSET_POST('edit');
                REQUEST_UNSET_POST('del');
-               REQUEST_UNSET_POST(('change'));
-               REQUEST_UNSET_POST(('remove'));
-       } elseif (REQUEST_ISSET_POST(('change'))) {
+               REQUEST_UNSET_POST('change');
+               REQUEST_UNSET_POST('remove');
+       } elseif (REQUEST_ISSET_POST('change')) {
                // Change entries here...
                foreach (REQUEST_POST('id') as $id => $sel) {
                        // Secure ID
@@ -79,8 +84,8 @@ SET pay_name='%s', pay_rate='%s', pay_min_count='%s', pay_currency='%s' WHERE id
                }
 
                // Generate message
-               $MSG = getMessage('SPONSOR_PAY_ENTRIES_CHANGED');
-       } elseif (REQUEST_ISSET_POST(('remove'))) {
+               $message = getMessage('SPONSOR_PAY_ENTRIES_CHANGED');
+       } elseif (REQUEST_ISSET_POST('remove')) {
                // Remove entries here...
                foreach (REQUEST_POST('id') as $id => $sel) {
                        // Remove entry
@@ -89,12 +94,12 @@ SET pay_name='%s', pay_rate='%s', pay_min_count='%s', pay_currency='%s' WHERE id
                }
 
                // Generate message
-               $MSG = getMessage('SPONSOR_PAY_ENTRIES_REMOVED');
+               $message = getMessage('SPONSOR_PAY_ENTRIES_REMOVED');
        }
 
-       if (!empty($MSG)) {
+       if (!empty($message)) {
                // Output message
-               LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+               LOAD_TEMPLATE('admin_settings_saved', false, $message);
        }
 }
 
@@ -113,20 +118,20 @@ if (REQUEST_ISSET_POST(('add'))) {
                        ), __FILE__, __LINE__);
 
                // Payment type added!
-               $MSG = sprintf(getMessage('ADMIN_SPONSOR_PAYTYPE_ADDED'), REQUEST_POST('pay_name'));
+               $message = sprintf(getMessage('ADMIN_SPONSOR_PAYTYPE_ADDED'), REQUEST_POST('pay_name'));
        } else {
                // Free memory
                SQL_FREERESULT($result);
 
                // Entry does already exists
-               $MSG = sprintf(getMessage('ADMIN_SPONSOR_PAYTYPE_ALREADY'), REQUEST_POST('pay_name'));
+               $message = sprintf(getMessage('ADMIN_SPONSOR_PAYTYPE_ALREADY'), REQUEST_POST('pay_name'));
        }
 
        // Output message
-       LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+       LOAD_TEMPLATE('admin_settings_saved', false, $message);
 } elseif ((REQUEST_ISSET_POST('edit')) || (REQUEST_ISSET_POST('del'))) {
        // Load all data
-       $OUT = ""; $SW = 2;
+       $OUT = ''; $SW = 2;
        foreach (REQUEST_POST('id') as $id => $sel) {
                // Load entry
                $result = SQL_QUERY_ESC("SELECT pay_name, pay_rate, pay_min_count, pay_currency FROM `{!_MYSQL_PREFIX!}_sponsor_paytypes` WHERE id='%s' LIMIT 1",
@@ -181,7 +186,7 @@ if (REQUEST_ISSET_POST(('add'))) {
        // Do we have some paytypes setup?
        if (SQL_NUMROWS($result) > 0) {
                // Prepare variables for listing
-               $OUT = ""; $SW = 2;
+               $OUT = ''; $SW = 2;
 
                // List alle found payment types
                while ($content = SQL_FETCHARRAY($result)) {
@@ -212,7 +217,7 @@ if (REQUEST_ISSET_POST(('add'))) {
                define('__LIST_CONTENT', LOAD_TEMPLATE("admin_list_sponsor_pay", true));
        } else {
                // Noting setup so far!
-               define('__LIST_CONTENT', LOAD_TEMPLATE("admin_settings_saved", true, getMessage('ADMIN_SPONSOR_NO_PAYTYPES')));
+               define('__LIST_CONTENT', LOAD_TEMPLATE('admin_settings_saved', true, getMessage('ADMIN_SPONSOR_NO_PAYTYPES')));
        }
 
        // Add new payment types here