X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-online.php;h=07fbcec63bad705e2be00944b7b8359f4ed0ae81;hp=01d79180fe3975b6490d5c67ab22ebbdd5dddb54;hb=690c48be1c6447146d98235a5dba39596ada7c6f;hpb=6d4ae5d04f53cbad26c28d91f2a0c10a60df8044
diff --git a/inc/modules/guest/action-online.php b/inc/modules/guest/action-online.php
index 01d79180fe..07fbcec63b 100644
--- a/inc/modules/guest/action-online.php
+++ b/inc/modules/guest/action-online.php
@@ -32,7 +32,7 @@
************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
} elseif (!EXT_IS_ACTIVE("online")) {
@@ -62,9 +62,15 @@ define('ADMINS_ONLINE_CNT' , SQL_NUMROWS($result_admins));
LOAD_TEMPLATE("online_now");
if (EXT_IS_ACTIVE("active")) {
+ // Init content
+ $content = array(
+ 'menu' => "",
+ 'what' => "active"
+ );
+
// Add link to "we were active today" page
- LOAD_TEMPLATE("guest_menu_bottom", false, "");
-}
+ LOAD_TEMPLATE("guest_menu_bottom", false, $content);
+} // END - if
//
?>