X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=06d0321683374b2d6b3cf0d453c991d6283350b3;hb=11a9294db20070dc0c2f578d3a91b69cc7c1182d;hp=413f0240099e178ee6802f371abb726003f986b8;hpb=a090e351c49fe021fb3064325694da03402332e0;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 413f024009..06d0321683 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(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] ?>