File size: 1.1Kb
<?php
$content = api_query('https://' . $server . '/manager/ispmgr?func=jabber.list&elid=' . urlencode($_GET['elid']) . '&out=xml&auth=' . urlencode($_SESSION['auth']));
$parse_xml = simplexml_load_string($content);
echo '<img src="images/t-new.png" alt="." /><a href="?func=jabber.add&plid=' . urlencode($_GET['elid']) . '">Создать Jabber аккаунт</a>' . "\n";
echo '<hr />' . "\n";
foreach($parse_xml->elem as $var) {
echo htmlentities((string)$var->JID, ENT_QUOTES, 'UTF-8') . '<br />' . "\n";
echo '» <a href="?func=jabber.chgpass&elid=' . urlencode((string)$var->JID) . '&plid=' . urlencode($_GET['elid']) . '">Сменить пароль</a><br />' . "\n";
echo '» <a href="?func=jabber.remove&elid=' . urlencode((string)$var->JID) . '&plid=' . urlencode($_GET['elid']) . '">Удалить</a>' . "\n";
echo '<hr />' . "\n";
}
echo '<img src="images/t-back.png" alt=".." /><a href="?func=jabber.domain">Jabber домены</a><br />' . "\n";
echo '<img src="images/sb-menu.png" alt="." /><a href="?func=menu">Вернуться в меню</a>' . "\n";
?>