************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
+
// Add description as navigation point
ADD_DESCR("guest", basename(__FILE__));
case "modules": $_CONFIG['guest_stats'] = "MODULES"; $lmode = "members"; $ltitle = GUEST_STATS_MEMBERS; break;
}
-OPEN_TABLE("100%", "guest_content", "center", "top");
switch ($_CONFIG['guest_stats'])
{
case "MEMBERS": // Statistics about your members
}
// Now we have all categories loaded, count members
- foreach ($cats as $id=>$dummy)
+ foreach ($cats as $id => $dummy)
{
// We only need id and nothing more to count...
$cat_cnt[$id] = SQL_NUMROWS(SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_cats WHERE cat_id=%s",
// Generate monthly stats
$SW = 2; $r2 = " right2"; $l = "ll"; $r = "lr"; $OUT = "";
- foreach ($months as $month=>$cnt)
+ foreach ($months as $month => $cnt)
{
if ($SW == 2) $OUT .= "<TR>\n";
// Generate category stats
$SW = 2; $OUT = "";
- foreach ($cat_cnt as $id=>$cnt)
+ foreach ($cat_cnt as $id => $cnt)
{
// Prepare data for the template
$content = array(
LOAD_TEMPLATE("admin_settings_saved", false, "<STRONG>".GUEST_STATS_DEACTIVATED."</STRONG>");
break;
}
-CLOSE_TABLE();
+
//
?>