]> git.mxchange.org Git - mailer.git/commitdiff
Fixed missing action if provided module is invalid (e.g. module=http://foo-server)
authorRoland Häder <roland@mxchange.org>
Thu, 8 Jul 2010 21:59:01 +0000 (21:59 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 8 Jul 2010 21:59:01 +0000 (21:59 +0000)
inc/libs/online_functions.php
inc/libs/security_functions.php

index 73ff9147fb78be9835cf8cc463710a52af4b882e..ec0dffee1fc24f135b9b8c0d9608275d24f1d796 100644 (file)
@@ -57,6 +57,7 @@ function FILTER_UPDATE_ONLINE_LIST () {
        $userid = '0';
        $isMember = 'N';
        $isAdmin = 'N';
+       $action = getActionFromModuleWhat(getModule(), getWhat());
 
        // Valid userid?
        if (isMember()) {
@@ -94,7 +95,7 @@ WHERE
 LIMIT 1",
                array(
                        getModule(),
-                       getAction(),
+                       $action,
                        getWhat(),
                        $userid,
                        makeDatabaseUserId(determineReferalId()),
@@ -108,7 +109,7 @@ LIMIT 1",
                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(
                                getModule(),
-                               getAction(),
+                               $action,
                                getWhat(),
                                $userid,
                                makeDatabaseUserId(determineReferalId()),
index 7fc8a5ec11b4b2a9765d8a0abec56124d7ff3a3a..ccacc15fabb68e3f82649dbf6c1897b1588da7b2 100644 (file)
@@ -45,6 +45,9 @@ if (strpos($_SERVER['PHP_SELF'], basename(__FILE__)) !== false) {
        die();
 } // END - if
 
+// Include ctracker, recommended place!
+//require_once('ctracker.php');
+
 /**
  * Function to secure input strings
  *