blob: ccbf1b32ee1855c7b5cae4ab61b6265fb30d6e7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
User::load();
if (!User::isLoggedIn()) {
Util::redirect('?do=main');
}
function render_module()
{
Render::setTitle('Client Log');
$lines = array();
$res = Database::simpleQuery('SELECT logid, dateline, logtypeid, clientip, description, extra FROM clientlog ORDER BY logid DESC LIMIT 200');
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
$row['date'] = date('d.m.Y H:i', $row['dateline']);
$lines[] = $row;
}
Render::addTemplate('page-syslog', array('token' => Session::get('token'), 'list' => $lines));
}
|