init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
18
scripts/ajax/syslog.php
Normal file
18
scripts/ajax/syslog.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
$anlage = $GLOBALS['mysql']->query("SELECT * FROM log_sys ORDER BY sysID DESC LIMIT 0,100"); $key=0; $anz=0;
|
||||
while($row = $anlage->fetch_assoc()) {
|
||||
$lstatus[$key]['text']=$row['text'];
|
||||
$lstatus[$key]['time']=$row['time'];
|
||||
$lstatus[$key]['name']=$row['maname'];
|
||||
|
||||
$status[$key]['zeit']=$row['time'];
|
||||
if ($row['time']>time()-(1800)) { $anz=1; }
|
||||
if ($row['time']>time()-(300)) { $anz=2; }
|
||||
$key++;
|
||||
}
|
||||
$template->assign('zeit_online',time()-(1800));
|
||||
$template->assign('zeit_live',time()-(300));
|
||||
$template->assign('anz', $anz);
|
||||
$template->assign('lstatus', $lstatus);
|
||||
$template->assign('content', 'tpl/ajax/syslog.tpl');
|
||||
Loading…
Add table
Add a link
Reference in a new issue