17 lines
No EOL
623 B
PHP
17 lines
No EOL
623 B
PHP
<?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'); |