* -------------------------------------------------------------------- *
* Kurzbeschreibung : Liste heutiger aktiver Mitglieder *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: stelzi $ *
+ * $Author:: $ *
* Needs to be in all Files and every File needs "svn propset *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
-} elseif ((!EXT_IS_ACTIVE("active")) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "active");
+} elseif ((!EXT_IS_ACTIVE('active')) && (!IS_ADMIN())) {
+ addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'active');
return;
}
// Add description as navigation point
-ADD_DESCR("guest", __FILE__);
+ADD_DESCR('guest', __FILE__);
// Extra field to include is by default uid
-$ADD = "userid";
+$add = 'userid';
// If nickname is installed the extra field is the nickname of the user
-if (EXT_IS_ACTIVE("nickname")) $ADD = "nickname";
+if (EXT_IS_ACTIVE('nickname')) $add = 'nickname';
// Check for members who were active only this day
-$result = SQL_QUERY_ESC("SELECT userid, ".$ADD.", last_online
+$result = SQL_QUERY_ESC("SELECT userid, ".$add.", last_online
FROM `{!_MYSQL_PREFIX!}_user_data`
WHERE last_online >= %s AND `status`='CONFIRMED'
ORDER BY last_online DESC LIMIT %s",
// Entries found?
if (SQL_NUMROWS($result) > 0) {
// At least one member was online so let's load them all
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while (list($uid, $nick, $last) = SQL_FETCHROW($result)) {
$nick2 = "---";
if (($nick != $uid) && (!empty($nick))) $nick2 = $nick;