]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor/welcome.php
Extension 'active' now depends on 'online' because of a filter for the 'Who is online...
[mailer.git] / inc / modules / sponsor / welcome.php
index 4aa7880e92ea56c03149deed544cb67f9e8e73cf..49454d7c80d1fd4bb6e376a6cc679d62f41ddaa7 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 ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
+} elseif ((!EXT_IS_ACTIVE("sponsor"))
        ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE);
        return;
 } elseif (!IS_SPONSOR()) {