X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-email_archiv.php;h=2eb11fb039d2312dfd82a3ae1daf3d282481d86d;hp=7e822c5dd8de5e2cc83e102f2fe6346ac8f215c0;hb=357b2ca133fc1f89db74097955c366cb4bee6996;hpb=60494e212a67fe360bfbb481eb4928480a6f379b diff --git a/inc/modules/admin/what-email_archiv.php b/inc/modules/admin/what-email_archiv.php index 7e822c5dd8..2eb11fb039 100644 --- a/inc/modules/admin/what-email_archiv.php +++ b/inc/modules/admin/what-email_archiv.php @@ -35,13 +35,13 @@ ************************************************************************/ // 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__)); +ADD_DESCR("admin", __FILE__); // 0 1 2 3 4 5 6 7 8 9 10 $SQL = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id @@ -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,9 +110,10 @@ 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]), + 'frametester' => FRAMETESTER($pool[8]), + 'url' => COMPILE_CODE($pool[8]), 'stamp' => MAKE_DATETIME($pool[7], "0"), 'mid' => $pool[0], );