Файл: mobile/func/antivirus.php
Строк: 34
<?php
$content = api_query('https://' . $server . '/manager/ispmgr?func=antivirus&out=xml&authinfo=' . urlencode($_SESSION['username']) . ':' . urlencode($_SESSION['password']));
$parse_xml = simplexml_load_string($content);
echo '<img src="images/t-retry.png" alt="." /><a href="?func=antivirus">Обновить</a><br />' . "n";
echo '<img src="images/t-restart.png" alt="." /><a href="?func=antivirus.start">Запустить проверку</a>' . "n";
echo '<hr />' . "n";
foreach($parse_xml->elem as $var) {
echo htmlentities((string)$var->file, ENT_QUOTES, 'UTF-8') . '<br />' . "n";
echo htmlentities((string)$var->virus, ENT_QUOTES, 'UTF-8') . "n";
echo '<hr />' . "n";
}
echo '<img src="images/sb-menu.png" alt="." /><a href="?func=menu">Вернуться в меню</a>' . "n";
?>