]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-active.php
More XHTML-fied and extended header added to templates
[mailer.git] / inc / modules / guest / what-active.php
index e0d1a6e95ec1f76dc781caaf4edf95b769410370..383103775d8ae299299bfc2a64b84987d37a7fad 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Liste heutiger aktiver Mitglieder                *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author:: stelzi                                                   $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -36,7 +41,7 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } elseif ((!EXT_IS_ACTIVE("active")) && (!IS_ADMIN())) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "active");
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "active");
        return;
 }
 
@@ -44,15 +49,15 @@ if (!defined('__SECURITY')) {
 ADD_DESCR("guest", __FILE__);
 
 // Extra field to include is by default uid
-$ADD = "uid";
+$ADD = "userid";
 
 // If nickname is installed the extra field is the nickname of the user
 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
-FROM "._MYSQL_PREFIX."_user_data
-WHERE last_online >= %s AND status='CONFIRMED'
+FROM `{!_MYSQL_PREFIX!}_user_data`
+WHERE last_online >= %s AND `status`='CONFIRMED'
 ORDER BY last_online DESC LIMIT %s",
        array(START_TDAY, getConfig('active_limit')), __FILE__, __LINE__);
 
@@ -60,7 +65,7 @@ ORDER BY last_online DESC LIMIT %s",
 if (SQL_NUMROWS($result) > 0) {
        // At least one member was online so let's load them all
        $OUT = ""; $SW = 2;
-       while(list($uid, $nick, $last) = SQL_FETCHROW($result)) {
+       while (list($uid, $nick, $last) = SQL_FETCHROW($result)) {
                $nick2 = "---";
                if (($nick != $uid) && (!empty($nick))) $nick2 = $nick;