X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=07a7d8b6cf257198c35a5182d48e2e64cccb81f8;hb=537df432292cb0aa63070479258e3e84b182a28b;hp=2ad32f8f3b4289ad3da2188929865062e80f96ac;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 2ad32f8f3b..07a7d8b6cf 100644 --- a/inc/modules/guest/what-beg.php +++ b/inc/modules/guest/what-beg.php @@ -1,7 +1,7 @@ 0) { - // Take referal ID from URL/Cookie - define('__BEG_UID' , $GLOBALS['refid']); -} else { - // Take default referal ID - define('__BEG_UID' , getConfig('def_refid')); -} +if ((!isExtensionActive('beg')) && (!isAdmin())) { + loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg')); + return; +} // END - if -// Selection boxes are now the default -define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); -define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout'))); +// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout'))); // Load final template -LOAD_TEMPLATE("guest_".substr(basename(__FILE__), 5, -4)); +loadTemplate('guest_beg'); -// +// [EOF] ?>