]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-stats.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / guest / what-stats.php
index 8724592dd6f4db3211b356cfa44c72f6db6e4515..a272673a9633025d9c31a45a081178054c411988 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Add description as navigation point
-ADD_DESCR("guest", __FILE__);
+ADD_DESCR('guest', __FILE__);
 
 // Derterminate which stats we want and set mode and title for the link below stats block
 if (!REQUEST_ISSET_GET(('mode'))) REQUEST_SET_GET('mode', strtolower(getConfig('guest_stats')));
@@ -80,8 +80,8 @@ case "MEMBERS": // Statistics about your members
        $treg = SQL_NUMROWS(SQL_QUERY("SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data` WHERE joined >= ".constant('START_TDAY'), __FILE__, __LINE__));
 
        // Only males / females
-       $male   = GET_TOTAL_DATA("M", "user_data", "userid", "gender", true, " AND `status`='CONFIRMED'");
-       $female = GET_TOTAL_DATA("F", "user_data", "userid", "gender", true, " AND `status`='CONFIRMED'");
+       $male   = GET_TOTAL_DATA("M", "user_data", 'userid', "gender", true, " AND `status`='CONFIRMED'");
+       $female = GET_TOTAL_DATA("F", "user_data", 'userid', "gender", true, " AND `status`='CONFIRMED'");
 
        // Unconfirmed accounts
        $unconfirmed = SQL_NUMROWS(SQL_QUERY("SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data` WHERE status != 'CONFIRMED'", __FILE__, __LINE__));
@@ -99,7 +99,7 @@ case "MEMBERS": // Statistics about your members
                if ($idx < 10) $month = "0".$idx;
 
                // Count months
-               $months[$month] = GET_TOTAL_DATA(bigintval($month), "user_data", "userid", "birth_month", true, " AND `status`='CONFIRMED'");
+               $months[$month] = GET_TOTAL_DATA(bigintval($month), "user_data", 'userid', "birth_month", true, " AND `status`='CONFIRMED'");
        }
 
        // Members in categories
@@ -133,7 +133,7 @@ case "MEMBERS": // Statistics about your members
        define('__LINK_TITLE'  , $ltitle);
 
        // Generate monthly stats
-       $SW = 2; $r2 = " right2"; $l = "ll"; $r = "lr"; $OUT = "";
+       $SW = 2; $r2 = " right2"; $l = "ll"; $r = "lr"; $OUT = '';
        foreach ($months as $month => $cnt) {
                if ($SW == 2) $OUT .= "<tr>\n";
 
@@ -150,7 +150,7 @@ case "MEMBERS": // Statistics about your members
                $OUT .= LOAD_TEMPLATE("guest_stats_month_row", true, $content);
 
                if ($SW == 2) {
-                       $r2 = "";
+                       $r2 = '';
                        $l = "rl"; $r = "rr";
                } else {
                        $OUT .= "</tr>\n";
@@ -162,7 +162,7 @@ case "MEMBERS": // Statistics about your members
        define('__MONTH_STATS_ROWS', $OUT);
 
        // Generate category stats
-       $OUT = ""; $SW = 2;
+       $OUT = ''; $SW = 2;
        foreach ($cat_cnt as $id => $cnt) {
                // Prepare data for the template
                $content = array(
@@ -182,11 +182,11 @@ case "MEMBERS": // Statistics about your members
        break;
 
 case "MODULES": // TOP10 module clicks
-       $AND = "";
+       $AND = '';
        if (!IS_ADMIN()) $AND = " AND `locked`='N' AND `visible`='Y'";
        $guest_t10 = SQL_QUERY("SELECT counter, title FROM `{!_MYSQL_PREFIX!}_guest_menu` WHERE counter > 0".$AND." ORDER BY counter DESC LIMIT 0,10", __FILE__, __LINE__);
        $mem_t10   = SQL_QUERY("SELECT counter, title FROM `{!_MYSQL_PREFIX!}_member_menu` WHERE counter > 0".$AND." ORDER BY counter DESC LIMIT 0,10", __FILE__, __LINE__);
-       $OUT = "";
+       $OUT = '';
        if ((SQL_NUMROWS($guest_t10) > 0) || (SQL_NUMROWS($mem_t10) > 0)) {
                // Output header
                // @TODO Rewrite this to one template and $OUT .= ....
@@ -238,7 +238,7 @@ case "MODULES": // TOP10 module clicks
        break;
 
 case "INACTIVE": // Deactivated stats
-       LOAD_TEMPLATE("admin_settings_saved", false, "<strong>{--GUEST_STATS_DEACTIVATED--}</strong>");
+       LOAD_TEMPLATE('admin_settings_saved', false, "<strong>{--GUEST_STATS_DEACTIVATED--}</strong>");
        break;
 }