X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=049c2ee0c1a3784fd45a723448928ab3ca528a3f;hb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;hp=88b8d4695eeb576ebc227b05e8ca4d295a8705cf;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 88b8d4695e..049c2ee0c1 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 -if (function_exists('CREATE_FANCY_TIME')) { - define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); - define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout'))); -} else { - define('__BEG_TIMEOUT ' , round(getConfig('beg_timeout') / 60)." ".MINUTES); - define('__BEG_UID_TIMEOUT', round(getConfig('beg_uid_timeout') / 60)." ".MINUTES); -} +// @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] ?>