-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathme.php
More file actions
12 lines (9 loc) · 671 Bytes
/
me.php
File metadata and controls
12 lines (9 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
<?php
require_once "require/nmps.php";
foreach (userAccount::getOnline() as $onlineUser) {
if ($onlineUser['userId'] != $userinfo['id'])
db::query("INSERT INTO events (userId, senderId, eventType, eventData) VALUES (:userId, :senderId, :eventType, :eventData)",
[':userId' => $onlineUser['userId'], ':senderId' => $userinfo['id'],
':eventType' => 2, ':eventData' => "\033[1;33m[\033[1;97m" . date("H:i:s") . "\033[1;33m] \033[0;33m* \033[0;37m" . $userinfo['username'] . " \033[0;97m" . implode(' ', $argv)]);
}
echo "\033[1;33m[\033[1;97m" . date("H:i:s") . "\033[1;33m] \033[0;33m* \033[0;37m" . $userinfo['username'] . " \033[0;97m" . implode(' ', $argv);