]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/online_functions.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / libs / online_functions.php
index 2a475b86aadbbe1c094602f152e142546ad4fe72..c84d4bf66addb2897128229914b7dad33260158b 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Online-Funktionen                                *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * 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                  *
@@ -40,7 +45,7 @@ if (!defined('__SECURITY')) {
 // Filter for updates/extends on the online list
 function FILTER_UPDATE_ONLINE_LIST () {
        // Do not update online list when extension is deactivated
-       if (!EXT_IS_ACTIVE("online", true)) return;
+       if (!EXT_IS_ACTIVE('online', true)) return;
 
        // Empty session?
        if (session_id() == "") {
@@ -52,9 +57,9 @@ function FILTER_UPDATE_ONLINE_LIST () {
        $uid = 0; $rid = 0; $MEM = "N"; $ADMIN = "N";
 
        // Valid userid?
-       if ((!empty($GLOBALS['userid'])) && ($GLOBALS['userid'] > 0) && (IS_MEMBER())) {
+       if ((isUserIdSet()) && (getUserId() > 0) && (IS_MEMBER())) {
                // Is valid user
-               $uid = bigintval($GLOBALS['userid']);
+               $uid = getUserId();
                $MEM = "Y";
        } // END - if
 
@@ -76,9 +81,9 @@ function FILTER_UPDATE_ONLINE_LIST () {
        if (SQL_NUMROWS($result) == 1) {
                // Then update it
                SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_online` SET
-module='%s',
-action='%s',
-what='%s',
+`module`='%s',
+`action`='%s',
+`what`='%s',
 userid=%s,
 refid=%s,
 is_member='%s',