<?php
/************************************************************************
- * MXChange v0.2.1 Start: 12/14/2003 *
- * ================ Last change: 08/22/2004 *
+ * Mailer v0.2.1-FINAL Start: 12/14/2003 *
+ * =================== Last change: 08/22/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-stats.php *
addMenuDescription('guest', __FILE__);
// Derterminate which stats we want and set mode and title for the link below stats block
-if (!isGetRequestElementSet('mode')) setRequestGetElement('mode', strtolower(getConfig('guest_stats')));
+if (!isGetRequestParameterSet('mode')) setGetRequestParameter('mode', strtolower(getConfig('guest_stats')));
// Set config temporarily
-setConfigEntry('guest_stats', strtoupper(getRequestElement('mode')));
+setConfigEntry('guest_stats', strtoupper(getRequestParameter('mode')));
-switch (getRequestElement('mode')) {
+switch (getRequestParameter('mode')) {
case 'members' :
$lmode = 'modules';
break;
default:
// Unsupported mode
- debug_report_bug(sprintf("Unsupported mode <strong>%s</strong> detected.", secureString(getRequestElement('mode'))));
+ debug_report_bug(sprintf("Unsupported mode <strong>%s</strong> detected.", secureString(getRequestParameter('mode'))));
break;
}
$month = $idx;
// Append leading zero
- if ($idx < 10) $month = 0 . $idx;
+ if ($idx < 10) $month = '0' . $idx;
// Count months
$months[$month] = countSumTotalData(bigintval($month), 'user_data', 'userid', 'birth_month', true, " AND `status`='CONFIRMED'");
$content['ltitle'] = $ltitle;
// Generate monthly stats
- $SW = 2; $r2 = ' right2'; $l = 'll'; $r = 'lr'; $OUT = '';
+ $SW = 2; $r2 = ' right'; $l = 'll'; $r = 'lr'; $OUT = '';
foreach ($months as $month => $cnt) {
if ($SW == 2) $OUT .= "<tr>\n";
$l = 'rl'; $r = 'rr';
} else {
$OUT .= "</tr>\n";
- $r2 = ' right2';
+ $r2 = ' right';
$l = 'll'; $r = 'lr';
}
$SW = 3 - $SW;