* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('top10')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('top10'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('top10'));
return;
} // END - if
// Init array
$rows = array();
-//// TOP logins
+// TOP logins
$result = SQL_QUERY("SELECT
`userid`, `total_logins`, `last_online`
FROM
// Free result
SQL_FREERESULT($result);
-//// TOP earners
+// TOP earners
$result = SQL_QUERY("SELECT
d.userid,
- (SUM(p.points) - d.used_points) AS points,
+ (SUM(p.points) - d.used_points) AS `points`,
d.last_online
FROM
`{?_MYSQL_PREFIX?}_user_data` AS d
// Free result
SQL_FREERESULT($result);
-//// TOP referal "hunter"
+// TOP referal "hunter"
$result = SQL_QUERY("SELECT
d.userid,
SUM(r.counter) AS refs,
$content['nickname'] = '';
// Get nickname
- if (isExtensionActive('nickname')) $content['nickname'] = getNickname($content['userid']);
+ if (isExtensionActive('nickname')) {
+ $content['nickname'] = getNickname($content['userid']);
+ } // END - if
// Prepare data for template
$content = array(
'userid' => $content['userid'],
'refs' => $content['refs'],
'nickname' => $content['nickname'],
- 'points' => getTotalPoints($content['userid']),
'last_online' => generateDateTime($content['last_online'], 3)
);