]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-payments.php
Cache class rewritten to better convention
[mailer.git] / inc / modules / admin / what-payments.php
index fae04f5a98a784f688e121939f17bb4606a59b70..b78d8b9465996193b526358887fa7ab19d31109f 100644 (file)
@@ -37,7 +37,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        require($INC);
 }
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (empty($_GET['do'])) unset($_GET['do']);
 if (((empty($_POST['t_wait'])) || (empty($_POST['payment']))) && (!empty($_GET['do'])) && ($_GET['do'] == "add"))
@@ -51,7 +51,7 @@ if (isset($_POST['ok']))
        switch ($_GET['do'])
        {
        case "add":
-               $SQL[] = "INSERT INTO "._MYSQL_PREFIX."_payments (time, payment, mail_title, price) VALUES ('".$_POST['t_wait']."', '".$_POST['payment']."', '".$_POST['title']."', '".$_POST['price']."')";
+               $SQL[] = "INSERT INTO "._MYSQL_PREFIX."_payments (time, payment, mail_title, price) VALUES ('".$_POST['t_wait']."','".$_POST['payment']."','".$_POST['title']."','".$_POST['price']."')";
                $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_payments WHERE time='%s' LIMIT 1",
                 array($_POST['t_wait']), __FILE__, __LINE__);
                if (SQL_NUMROWS($result) == 1)
@@ -165,11 +165,11 @@ if (isset($_POST['ok']))
 }
  else
 {
-       // Referral levels
+       // Referal levels
        $result = SQL_QUERY("SELECT id, time, payment, mail_title, price FROM "._MYSQL_PREFIX."_payments ORDER BY time", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0)
        {
-               // Make referral levels editable and deletable
+               // Make referal levels editable and deletable
                $SW = 2; $OUT = "";
 
                // List already existing categories for editing
@@ -201,7 +201,7 @@ if (isset($_POST['ok']))
                LOAD_TEMPLATE("admin_list_payments");
        }
 
-       // Form for adding new referral levels
+       // Form for adding new referal levels
        LOAD_TEMPLATE("admin_add_payment");
 }