X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=318216a0612a1460aafa370aaf76b1b39562b4dc;hb=e9da1508b2a3ccbf63adc999981674740a47e074;hp=fca40096cfad3ab3da7934f08c7521d322957132;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index fca40096cf..318216a061 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())) { + displayMessage('{%pipe,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_USERID_TIMEOUT', createFancyTime(getBegUseridTimeout())); // Load final template -LOAD_TEMPLATE("guest_".substr(basename(__FILE__), 5, -4)); +loadTemplate('guest_beg'); -// +// [EOF] ?>