<?php
/************************************************************************
- * MXChange v0.2.1 Start: 09/09/2008 *
- * ================ Last change: 09/09/2008 *
+ * Mailer v0.2.1-FINAL Start: 09/09/2008 *
+ * =================== Last change: 09/09/2008 *
* *
* -------------------------------------------------------------------- *
* File : what-surfbar_stats.php *
addMenuDescription('admin', __FILE__);
// Is the 'url_id' set?
-if (isGetRequestElementSet(('url_id'))) {
+if (isGetRequestParameterSet(('url_id'))) {
// Generate general statistics
$result = SQL_QUERY_ESC("SELECT `userid`,`count` AS `total_visits`, UNIX_TIMESTAMP(`last_surfed`) AS `last_surfed`
FROM `{?_MYSQL_PREFIX?}_surfbar_stats`
WHERE `url_id`=%s
ORDER BY `userid` ASC",
- array(bigintval(getRequestElement('url_id'))), __FILE__, __LINE__);
+ array(bigintval(getRequestParameter('url_id'))), __FILE__, __LINE__);
// Entries found?
if (SQL_NUMROWS($result) > 0) {
// Get all rows
- $OUT = ''; $SW = 2; $cnt = 0; $visits = 0;
+ $OUT = ''; $SW = 2; $cnt = '0'; $visits = '0';
while ($content = SQL_FETCHARRAY($result)) {
// Count totals
$visits += $content['total_visits'];
// Entries found?
if (SQL_NUMROWS($result) > 0) {
// Get all rows
- $OUT = ''; $SW = 2; $urls = 0; $visits = 0;
+ $OUT = ''; $SW = 2; $urls = '0'; $visits = '0';
while ($content = SQL_FETCHARRAY($result)) {
// Count totals
$urls += $content['visited_urls'];