]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-stats.php
Withdraw now only allowed to sponsor in wernis/primera extension. Payout (untested...
[mailer.git] / inc / modules / guest / what-stats.php
index fa3acb35a912dc179bcd811ca05525364c3e2da4..e5a89e273df7638076cae8f0243ea6236f980d03 100644 (file)
  ************************************************************************/
 
 // 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__));
 
@@ -48,7 +48,6 @@ switch ($_GET['mode'])
        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
@@ -91,7 +90,7 @@ 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",
@@ -112,7 +111,7 @@ case "MEMBERS": // Statistics about your members
 
        // 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";
 
@@ -145,7 +144,7 @@ case "MEMBERS": // Statistics about your members
 
        // 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(
@@ -224,6 +223,6 @@ case "INACTIVE": // Deactivated stats
        LOAD_TEMPLATE("admin_settings_saved", false, "<STRONG>".GUEST_STATS_DEACTIVATED."</STRONG>");
        break;
 }
-CLOSE_TABLE();
+
 //
 ?>