// Total visitors online
$total = SQL_NUMROWS($result_guests) + SQL_NUMROWS($result_members) + SQL_NUMROWS($result_admins);
-if ($CONFIG['mad_counter'] < $total)
+if ($_CONFIG['mad_counter'] < $total)
{
// Update counter
- $CONFIG['mad_counter'] = $total;
- $CONFIG['last_mad'] = time();
- $result_mad = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET mad_timestamp=%d, mad_count='%s' WHERE config='0' LIMIT 1",
- array($CONFIG['last_mad'], $CONFIG['mad_counter']), __FILE__, __LINE__);
-
- // Destroy cache
+ UPDATE_CONFIG(array("mad_timestamp", "mad_count"), array(time(), $total));
+ $_CONFIG['mad_counter'] = $total;
+ $_CONFIG['last_mad'] = time();
}
// Put all values in constants for the template
if (EXT_IS_ACTIVE("active"))
{
// Add link to "we were active today" page
- LOAD_TEMPLATE("guest_menu_bottom", false, "<A class=\"menu_blur\" href=\"".URL."/modules.php?module=index&what=active\">".$CONFIG['middot'].GUEST_ACTIVE_LINK."</A>");
+ LOAD_TEMPLATE("guest_menu_bottom", false, "<A class=\"menu_blur\" href=\"".URL."/modules.php?module=index&what=active\">".$_CONFIG['menu_blur_spacer'].GUEST_ACTIVE_LINK."</A>");
}
//