]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-email_archiv.php
Now with refid.php
[mailer.git] / inc / modules / admin / what-email_archiv.php
index 7e822c5dd8de5e2cc83e102f2fe6346ac8f215c0..4644ae63bcfd0ea92136b484b8460f38515bca61 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
@@ -86,7 +86,7 @@ if (SQL_NUMROWS($result) > 0)
        while ($pool = SQL_FETCHROW($result))
        {
                // Check sent mails and clicks
-               $result_mails = SQL_QUERY_ESC("SELECT max_rec, clicks FROM "._MYSQL_PREFIX."_user_stats WHERE pool_id=%d LIMIT 1",
+               $result_mails = SQL_QUERY_ESC("SELECT max_rec, clicks FROM "._MYSQL_PREFIX."_user_stats WHERE pool_id=%s LIMIT 1",
                 array(bigintval($pool[0])), __FILE__, __LINE__);
                list($sent, $clicks) = SQL_FETCHROW($result_mails);
                SQL_FREERESULT($result_mails);
@@ -110,7 +110,7 @@ if (SQL_NUMROWS($result) > 0)
                        'sent'        => $sent,
                        'ruids'       => str_replace(";", ", ", $pool[4]),
                        'unconfirmed' => $unconfirmed,
-                       'type'        => GET_POOL_TYPE($pool[6]),
+                       'type'        => TRANSLATE_POOL_TYPE($pool[6]),
                        'tsend'       => $pool[9],
                        'url'         => FRAMETESTER($pool[8]),
                        'stamp'       => MAKE_DATETIME($pool[7], "0"),