]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/online_functions.php
A lot fixes to templates and missing functions added, more rewrites
[mailer.git] / inc / libs / online_functions.php
index 96400dc2b1cfa6fe47533a29d061fa94a9d4d571..2a475b86aadbbe1c094602f152e142546ad4fe72 100644 (file)
@@ -70,7 +70,7 @@ function FILTER_UPDATE_ONLINE_LIST () {
 
        // Now search for the user
        $result = SQL_QUERY_ESC("SELECT timestamp FROM `{!_MYSQL_PREFIX!}_online` WHERE sid='%s' LIMIT 1",
-               array(session_id()), __FILE__, __LINE__);
+               array(session_id()), __FUNCTION__, __LINE__);
 
        // Entry found?
        if (SQL_NUMROWS($result) == 1) {
@@ -96,7 +96,7 @@ WHERE sid='%s' LIMIT 1",
                                $ADMIN,
                                GET_REMOTE_ADDR(),
                                session_id()
-                       ), __FILE__, __LINE__
+                       ), __FUNCTION__, __LINE__
                );
        } else {
                // No entry does exists so we simply add it!
@@ -111,7 +111,7 @@ WHERE sid='%s' LIMIT 1",
                                $ADMIN,
                                session_id(),
                                GET_REMOTE_ADDR()
-                       ), __FILE__, __LINE__
+                       ), __FUNCTION__, __LINE__
                );
        }
 
@@ -120,7 +120,7 @@ WHERE sid='%s' LIMIT 1",
 
        // Purge old entries
        SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_online` WHERE timestamp <= (UNIX_TIMESTAMP() - %s)",
-               array(getConfig('online_timeout')), __FILE__, __LINE__);
+               array(getConfig('online_timeout')), __FUNCTION__, __LINE__);
 }
 
 //