This commit is contained in:
steven 2025-08-11 22:23:30 +02:00
commit 72a26edcff
22092 changed files with 2101903 additions and 0 deletions

17
scripts/ajax/tuerlog.php Normal file
View 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');