Файл: api_manager/wwwdomain.php
Строк: 76
<?php
echo'<div class=content> Управление WWW доменами </div>';
$content = api_query('https://' . $server . '/manager/ispmgr?func=wwwdomain&out=xml&authinfo=' . $user['isp_login'] . ':' . $user['isp_paswd']);
$parse_xml = simplexml_load_string($content);
echo '<a class=subhead href="?func=wwwdomain.edit"><img src="images/t-new.png" alt="." /> Создать новый WWW домен</a>';
foreach($parse_xml->elem as $var) {
echo '<div class=loghead> <a href=http://' . htmlentities((string)$var->name, ENT_QUOTES, 'UTF-8') . '><font color=#fff>' . htmlentities((string)$var->name, ENT_QUOTES, 'UTF-8') . '</font></a> (';
if (isset($var->disabled)) {
echo '<img src="images/p-off.png" alt="off" />';
} else {
echo '<img src="images/p-on.png" alt="on" />';
}
if (isset($var->php)) {
echo '<img src="images/p-php.png" alt="php" />';
}
if (isset($var->cgi)) {
echo '<img src="images/p-cgi.png" alt="cgi" />';
}
if (isset($var->ssi)) {
echo '<img src="images/p-ssi.png" alt="ssi" />';
}
if (isset($var->ror)) {
echo '<img src="images/p-ror.png" alt="ror" />';
}
if (isset($var->ssl)) {
echo '<img src="images/p-ssl.png" alt="ssl" />';
}
echo ')</div>';
echo '<div class=subhead><b>IP-адрес:</b> ' . htmlentities((string)$var->ip, ENT_QUOTES, 'UTF-8') . '</div>';
echo '<div class=subhead><b>Директория:</b> ' . htmlentities((string)$var->docroot, ENT_QUOTES, 'UTF-8') . '</div>';
echo ' <table width="100%" cellpadding="0" border="0" cellspacing="0"><tbody><tr>
<td width="50%"><a class=subhead href="http://' . htmlentities((string)$var->name, ENT_QUOTES, 'UTF-8') . '/webstat/"><img src=images/r_s.png> Посещаемость</a></td>
<td width="50%"><a class=subhead href="?func=wwwdomain.edit&elid=' . urlencode((string)$var->name) . '"><img src=images/r_s.png> Изменить</a></td>
</tr></tbody></table><table width="100%" cellpadding="0" border="0" cellspacing="0"><tbody><tr>';
if (isset($var->disabled)) {
echo '<td width="50%"><a class=subhead href="?func=wwwdomain.enable&elid=' . urlencode((string)$var->name) . '"><img src=images/r_s.png> Включить</a></td>';
} else {
echo '<td width="50%"><a class=subhead href="?func=wwwdomain.disable&elid=' . urlencode((string)$var->name) . '"><img src=images/r_s.png> Выключить</a></td>';
}
if('' . htmlentities((string)$var->name, ENT_QUOTES, 'UTF-8') . ''=='' . strtolower($user['login']) . '.'.$siteisp.''){
echo '<td width="50%"><div class=subhead><img src=images/r_s.png> <s>Удалить</s></div></td></tr></tbody></table>';
}else{
echo '<td width="50%"><a class=subhead href="?func=wwwdomain.delete&elid=' . urlencode((string)$var->name) . '"><img src=images/r_s.png> Удалить</a></td></tr></tbody></table>';
}
}
?>