]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-unconfirmed.php
Another column fix
[mailer.git] / inc / modules / member / what-unconfirmed.php
index ec63d678c4a3effc0a85e936b538fd4370d4b8bb..f6879b2ba8be1df6800fb08728e45f032b60e495 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
-} elseif ((!IS_LOGGED_IN()) || (!EXT_IS_ACTIVE("mailid"))) {
+} elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("mailid")) {
+       LOAD_URL("modules.php?module=login");
 }
 
 // Add description as navigation point
@@ -55,7 +57,7 @@ if (EXT_IS_ACTIVE("bonus")) {
 if (SQL_NUMROWS($result) > 0)
 {
        // Please confirm these mails!
-       $sum = "0"; $SW = 2; $OUT = "";
+       $sum = 0; $SW = 2; $OUT = "";
        while (list($id, $id2, $type) = SQL_FETCHROW($result))
        {
                // Load data from stats table...