]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/online_functions.php
'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / libs / online_functions.php
index 7d1eb61339e95b7faec89c03b4371c98c7a259c4..51c0662aa176450570675b35441dce83da728d23 100644 (file)
@@ -92,32 +92,30 @@ timestamp=UNIX_TIMESTAMP(),
 ip='%s'
 WHERE sid='%s' LIMIT 1",
                array(
-               $GLOBALS['module'],
-               $GLOBALS['action'],
-               $GLOBALS['what'],
-               $uid,
-               $rid,
-               $MEM,
-               $ADMIN,
-               detectRemoteAddr(),
-               session_id()
-               ), __FUNCTION__, __LINE__
-               );
+                       getModule(),
+                       getAction(),
+                       getWhat(),
+                       $uid,
+                       $rid,
+                       $MEM,
+                       $ADMIN,
+                       detectRemoteAddr(),
+                       session_id()
+               ), __FUNCTION__, __LINE__);
        } else {
                // No entry does exists so we simply add it!
                SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_online` (module, action, what, userid, refid, is_member, is_admin, timestamp, sid, ip) VALUES ('%s','%s','%s', %s, %s, '%s','%s', UNIX_TIMESTAMP(), '%s','%s')",
                array(
-               $GLOBALS['module'],
-               $GLOBALS['action'],
-               $GLOBALS['what'],
-               $uid,
-               $rid,
-               $MEM,
-               $ADMIN,
-               session_id(),
-               detectRemoteAddr()
-               ), __FUNCTION__, __LINE__
-               );
+                       getModule(),
+                       getAction(),
+                       getWhat(),
+                       $uid,
+                       $rid,
+                       $MEM,
+                       $ADMIN,
+                       session_id(),
+                       detectRemoteAddr()
+               ), __FUNCTION__, __LINE__);
        }
 
        // Free result