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