File size: 1.04Kb
<?php
$content = api_query('https://' . $server . '/manager/ispmgr?func=emailredirect&out=xml&authinfo=' . urlencode($_SESSION['username']) . ':' . urlencode($_SESSION['password']));
$parse_xml = simplexml_load_string($content);
echo '<img src="images/t-new.png" alt="." /><a href="?func=emailredirect.edit">Создать почтовый редирект</a>' . "\n";
echo '<hr />' . "\n";
foreach($parse_xml->elem as $var) {
echo '<b>E-mail адрес:</b> '.htmlentities((string)$var->name, ENT_QUOTES, 'UTF-8') . '<br />' . "\n";
echo '<b>Перенаправить на:</b> '.htmlentities((string)$var->forward, ENT_QUOTES, 'UTF-8') . '<br />';
echo '» <a href="?func=emailredirect.edit&elid=' . urlencode((string)$var->name) . '">Изменить</a><br />' . "\n";
echo '» <a href="?func=emailredirect.delete&elid=' . urlencode((string)$var->name) . '">Удалить</a>' . "\n";
echo '<hr />' . "\n";
}
echo '<img src="images/sb-menu.png" alt="." /><a href="?func=menu">Вернуться в меню</a>' . "\n";
?>