Замена short_tags и <?php echo.

This commit is contained in:
2023-03-31 19:54:33 +03:00
parent fdf063d527
commit 1b5bf26294
214 changed files with 3978 additions and 4014 deletions
+4 -4
View File
@@ -73,13 +73,13 @@ if($u->info['admin']=0){
<td class="стиль1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Adminion v0.0.0
<? if($auth==true){
<?php if($auth==true){
$la = sys_getloadavg();
$la[0]=$la[0]/4;
$la[1]=$la[1]/4;
$la[2]=$la[2]/4;
?>
/ Время сервера: <?=date('H:i')?> ( <?=time()?> ) / <?
/ Время сервера: <?=date('H:i')?> ( <?=time()?> ) / <?php
echo "Нагрузка: ".round($la[0]*100,2)."% ";
if ($la[1] < 0.16) {
echo "<font color=green>низкая</font>";
@@ -89,7 +89,7 @@ if($u->info['admin']=0){
echo "<font color=red>высокая</font>";
}
?>
<? }
<?php }
$online = 0;
$sp = mysql_query('SELECT `id`,`room`,`city` FROM `users` WHERE `online` > ('.time().'-600)');
while($pl = mysql_fetch_array($sp))
@@ -98,7 +98,7 @@ if($u->info['admin']=0){
}
?> / Онлайн: <?=$online?> / Нагрузка USI: <?=round((round($la[2]*100,2)/$online),2)?>%</td>
<td>&nbsp;</td>
<td><? if($auth==true){ ?><div align="right"><a href="../adminion/?exit=<?=$code?>">Выйти</a></div><? } ?></td>
<td><?php if($auth==true){ ?><div align="right"><a href="../adminion/?exit=<?=$code?>">Выйти</a></div><?php } ?></td>
</tr>
</table></td>