]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-online.php
Extension 'active' now depends on 'online' because of a filter for the 'Who is online...
[mailer.git] / inc / modules / guest / action-online.php
index c7acfbbab8400a5506edb1b4487f48ca78acc6ca..0dea4fa9566ba99c02e7be1dec66237e52cd1e4c 100644 (file)
@@ -46,12 +46,12 @@ $result_admins  = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_ad
 
 // Total visitors online
 $total      = SQL_NUMROWS($result_guests) + SQL_NUMROWS($result_members) + SQL_NUMROWS($result_admins);
-if ($_CONFIG['mad_count'] < $total) {
+if (getConfig('mad_count') < $total) {
        // Update counter
        UPDATE_CONFIG(array("mad_timestamp", "mad_count"), array(time(), $total));
        $_CONFIG['mad_count'] = $total;
        $_CONFIG['last_mad']  = time();
-}
+} // END - if
 
 // Put all values in constants for the template
 define('GUESTS_ONLINE_CNT' , SQL_NUMROWS($result_guests));
@@ -61,16 +61,8 @@ define('ADMINS_ONLINE_CNT' , SQL_NUMROWS($result_admins));
 // Output table
 LOAD_TEMPLATE("online_now");
 
-if (EXT_IS_ACTIVE("active")) {
-       // Init content
-       $content = array(
-               'menu' => "<A class=\"menu_blur\" href=\"".URL."/modules.php?module=index&amp;what=active\">".$_CONFIG['menu_blur_spacer'].GUEST_ACTIVE_LINK."</A>",
-               'what' => "active"
-       );
-
-       // Add link to "we were active today" page
-       LOAD_TEMPLATE("guest_menu_bottom", false, $content);
-} // END - if
+// Add more links in this block
+RUN_FILTER('online_extra_links');
 
 //
 ?>