insert('admin_log', [ 'ts' => time(), 'ip' => ip2ulong($_SERVER['REMOTE_ADDR']), 'ua' => $_SERVER['HTTP_USER_AGENT'] ?? '', ]); }