$userid = '0';
$isMember = 'N';
$isAdmin = 'N';
+ $action = getActionFromModuleWhat(getModule(), getWhat());
// Valid userid?
if (isMember()) {
LIMIT 1",
array(
getModule(),
- getAction(),
+ $action,
getWhat(),
$userid,
makeDatabaseUserId(determineReferalId()),
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()),