]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_email.php
Global rewrite of engine:
[mailer.git] / inc / modules / admin / what-del_email.php
index b09c9bbcfee3fdb57dc82191b7a035d097fd6477..8a624faec50da212f601ac268175de4198459857 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 02/12/2004 *
- * ================                             Last change: 02/27/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 02/12/2004 *
+ * ===================                          Last change: 02/27/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-del_email.php                               *
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Init counter for deleted mails
-$cnt = 0;
+$cnt = '0';
 
 if (isGetRequestElementSet('mid')) {
        // Load email data
@@ -107,7 +107,7 @@ LIMIT 1",
                                        // Shall we payback to user or jackpot?
                                        if (getConfig('repay_deleted_mails') == 'JACKPOT') {
                                                // Set jackpot
-                                               $sender = 0;
+                                               $sender = '0';
                                        } // END - if
 
                                        // Pay back points
@@ -141,7 +141,7 @@ LIMIT 1",
                        $cnt += SQL_AFFECTEDROWS();
 
                        // Load template for link
-                       loadTemplate('admin_settings_saved', false, "<a href=\"{?URL?}/modules.php?module=admin&amp;what=del_email&amp;pid=".bigintval(getRequestElement('mid'))."\">{--ADMIN_REMOVE_STATS_ENTRY--}</a>");
+                       loadTemplate('admin_settings_saved', false, "<a href=\"{%url=modules.php?module=admin&amp;what=del_email&amp;pid=" . bigintval(getRequestElement('mid')) . "%}\">{--ADMIN_REMOVE_STATS_ENTRY--}</a>");
                } // END - if
 
                // Free the result
@@ -179,7 +179,7 @@ LIMIT 1",
                reduceRecipientReceivedMails('bonus_id', getRequestElement('bid'), $sent);
 
                // Init counter for deleted mails
-               $cnt = 0;
+               $cnt = '0';
 
                // Delete bonus mail entirely from database
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
@@ -216,7 +216,7 @@ LIMIT 1",
                list ($id, $subject, $url, $timestamp) = SQL_FETCHROW($result);
 
                // Init counter for deleted mails
-               $cnt = 0;
+               $cnt = '0';
 
                // Delete bonus mail entirely from database
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",