File size: 1.08Kb
<?php
if (empty($_POST['submit'])) {
echo '<img src="images/t-new.png" alt="." />Создание Jabber домена' . "\n";
echo '<hr />' . "\n";
echo '<form action="?func=jabber.domainadd" method="post">' . "\n";
echo 'Домен:<br />' . "\n";
echo '<input name="domain" /><br />' . "\n";
echo '<input name="submit" type="submit" value="Создать" />' . "\n";
echo '</form>' . "\n";
echo '<hr />' . "\n";
echo '<img src="images/t-back.png" alt="." /><a href="?func=jabber.domain">Вернуться</a><br />' . "\n";
echo '<img src="images/sb-menu.png" alt="." /><a href="?func=menu">Вернуться в меню</a>' . "\n";
} else {
$content = api_query('https://' . $server . '/manager/ispmgr?func=jabber.domainadd&domain=' . urlencode($_POST['domain']) . '&sok=ok&out=xml&auth=' . urlencode($_SESSION['auth']));
echo '<div style="text-align:center">' . "\n";
echo 'Jabber домен успешно создан!<br />' . "\n";
echo '<a href="?func=jabber.domain">Продолжить</a>' . "\n";
echo '</div>' . "\n";
}
?>