php if is_user exec array TIME _SERVER REQUEST_URI user id DB run quer

1
2
3
4
5
6
<?php
if (is_user()) {
$exec = array(TIME, $_SERVER['REQUEST_URI'], $user['id']);
DB::run()->query('UPDATE `users` SET `date_active` = ?, `request` = ? WHERE `id` = ? LIMIT 1')->execute($exec);
}
?>