X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_start.php;h=2308f2a275bd185d2ca3aa3f597b4e7db7ac3870;hp=65dddf0dc441b654ba9ca2df7ad8959a2142ff7f;hb=963e55ca1ea79e255f235e359cde9f7862191dc5;hpb=c45b1827a16928c65ecc1aea6a9d7a504c4874d4 diff --git a/inc/modules/member/what-surfbar_start.php b/inc/modules/member/what-surfbar_start.php index 65dddf0dc4..2308f2a275 100644 --- a/inc/modules/member/what-surfbar_start.php +++ b/inc/modules/member/what-surfbar_start.php @@ -32,10 +32,10 @@ ************************************************************************/ // 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()) { +} elseif (!IS_MEMBER()) { // Not logged in LOAD_URL("modules.php?module=index"); } elseif (!EXT_IS_ACTIVE("surfbar")) { @@ -56,7 +56,7 @@ $content = array( ); // Load the template -LOAD_TEMPLATE("member_start_".strtolower($_CONFIG['surfbar_pay_model']), false, $content); +LOAD_TEMPLATE("member_surfbar_start_".strtolower($_CONFIG['surfbar_pay_model']), false, $content); // Load surfbar link template LOAD_TEMPLATE("member_surfbar_link");