* -------------------------------------------------------------------- *
* 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 *
// 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() == "") {
$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
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',