]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-email_details.php
Security line in all includes changed
[mailer.git] / inc / modules / admin / what-email_details.php
index 3971bb56eda85cfc445f1d86a92d79b1ab27aa86..14eccfe180c1e2dfa76424df254144b61936348f 100644 (file)
@@ -42,8 +42,7 @@
  ************************************************************************/
 
 // 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);
 }
@@ -163,6 +162,7 @@ if (SQL_NUMROWS($result_list) > 0) {
        SQL_FREERESULT($result_list);
 
        // Add navigation (with change box and colspan=3)
+       $content['nav'] = "";
        if ($PAGES > 1) $content['nav'] = ADD_EMAIL_NAV($PAGES, $_CONFIG['mails_page'], false, "3", true);
 
        // Prepare content
@@ -211,6 +211,7 @@ if ((EXT_IS_ACTIVE("bonus")) && ($WHO == _ALL)) {
                }
 
                // Add navigation (without change box but with colspan=3)
+               $content['nav'] = "";
                if ($PAGES > 1) $content['nav'] = ADD_EMAIL_NAV($PAGES, $_CONFIG['mails_page'], false, "3", true);
 
                // Prepare content