3
* index.ctp - This file is part of Critecia
4
* Copyright (C) 2011 Alexander Lang
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU Affero General Public License as
8
* published by the Free Software Foundation, either version 3 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Affero General Public License for more details.
16
* You should have received a copy of the GNU Affero General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
<h2>Aktuelle Systeminformationen</h2>
25
<table class="usertabelle">
26
<?php foreach($logs as $log): ?>
28
<td class="user" style="border-bottom: 1px dotted #c0c0c0; padding-top: 15px;">
30
$jahr = substr($log['Log']['created'],0,4);
31
$mon = substr($log['Log']['created'],5,2);
32
$tag = substr($log['Log']['created'],8,2);
33
$uhrzeit = substr($log['Log']['created'],11,8);
34
echo '<p style="margin-bottom: 8px;">['.$log['Log']['id'].'] ';
35
echo '<span class="lightfont">am</span> '.$tag.'.'.$mon
36
.'.'.$jahr.' <span class="lightfont">um</span> '
37
.$uhrzeit.' <span class="lightfont">Uhr</span></p>';
39
$tempuser = new User($log['Log']['user_id']);
40
echo '<p style="margin-bottom: 2px;"><b>User:</b> '.$tempuser->field('Firstname')
41
.' '.$tempuser->field('Lastname').'</p>';
42
echo '<p style="margin-bottom: 8px;"><b>IP-Adresse:</b> '
43
.$log['Log']['ipaddress'].'</p>';
44
echo '<p style="margin-bottom: 20px;"><span class="lightfont">'
45
.$log['Log']['warning'].'</span></p>';