File size: 1.15Kb
<?php
if (empty($_POST['submit'])) {
echo '<b>Смена пароля Jabber аккаунта</b>' . "\n";
echo '<hr />' . "\n";
echo '<form action="?func=jabber.chgpass&elid=' . urlencode($_GET['elid']) . '&plid=' . urlencode($_GET['plid']) . '" method="post">' . "\n";
echo 'Пароль:<br />' . "\n";
echo '<input name="pass" type="password" /><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.list&elid=' . urlencode($_GET['plid']) . '">Вернуться</a>' . "\n";
} else {
$content = api_query('https://' . $server . '/manager/ispmgr?func=jabber.chgpass&jid=' . urlencode($_GET['elid']) . '&pass=' . urlencode($_POST['pass']) . '&sok=ok&out=xml&auth=' . urlencode($_SESSION['auth']));
echo '<div style="text-align:center">' . "\n";
echo 'Пароль успешно изменен!<br />' . "\n";
echo '<a href="?func=jabber.list&elid=' . urlencode($_GET['plid']) . '">Продолжить»</a>' . "\n";
echo '</div>' . "\n";
}
?>