<?php$act = abs(intval($_SESSION['id']));$pdo->exec("update users set last_active = NOW() where id = '$act'");$pdo->exec("update users set online = time() where id = '$act'");?>