X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=06167fc1ccbc319e5d77be1cf54648a7b3b66ef3;hb=8d2c9b91eb82ea74fac58b2541982f760d0f77fc;hp=887c393f1e5c51d272f1518da28d84ad3924d613;hpb=006cb8ab88a788079bbf92a15b8f8da8f4b9e94c;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 887c393f1e..06167fc1cc 100644 --- a/inc/modules/guest/what-beg.php +++ b/inc/modules/guest/what-beg.php @@ -1,7 +1,7 @@ 0) { - // Take referral ID from URL/Cookie - define('__BEG_UID' , $ref); -} else { - // Take default referral ID - define('__BEG_UID' , $CONFIG['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($CONFIG['beg_timeout'])); - define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME($CONFIG['beg_uid_timeout'])); -} else { - define('__BEG_TIMEOUT ' , round($CONFIG['beg_timeout'] / 60)." ".MINUTES); - define('__BEG_UID_TIMEOUT', round($CONFIG['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] ?>