23 lines
No EOL
589 B
PHP
23 lines
No EOL
589 B
PHP
<?php
|
|
$abfrage_online = $GLOBALS['mysql']->query("SELECT * FROM ipcheck"); $key=0;
|
|
while($row = $abfrage_online->fetch_assoc()) {
|
|
if($row['id']==1) {
|
|
$so1['name']=$row['name'];
|
|
$so1['time']=$row['time'];
|
|
$template->assign('so1', $so1);
|
|
}
|
|
if($row['id']==2) {
|
|
$so2['name']=$row['name'];
|
|
$so2['time']=$row['time'];
|
|
$template->assign('so2', $so2);
|
|
}
|
|
if($row['id']==3) {
|
|
$so3['name']=$row['name'];
|
|
$so3['time']=$row['time'];
|
|
$template->assign('so3', $so3);
|
|
}
|
|
|
|
$key++;
|
|
}
|
|
$template->assign('content', 'tpl/ajax/ip_status.tpl');
|
|
?>
|