mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
refactoring web section: new html formating
This commit is contained in:
parent
427b254138
commit
64e74887f8
14 changed files with 1554 additions and 942 deletions
|
@ -229,10 +229,8 @@ top_panel($user,$TAB);
|
||||||
|
|
||||||
// Are you admin?
|
// Are you admin?
|
||||||
if ($_SESSION['user'] == 'admin') {
|
if ($_SESSION['user'] == 'admin') {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_web.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_web.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_web.html');
|
||||||
} else {
|
} else {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_web.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_web.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_web.html');
|
||||||
}
|
}
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
|
|
|
@ -509,10 +509,8 @@ top_panel($user,$TAB);
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($_SESSION['user'] == 'admin') {
|
if ($_SESSION['user'] == 'admin') {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_web.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_web.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_web.html');
|
||||||
} else {
|
} else {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_web.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_web.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_web.html');
|
||||||
}
|
}
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
|
|
|
@ -13,23 +13,16 @@ top_panel($user,$TAB);
|
||||||
|
|
||||||
// Data
|
// Data
|
||||||
if ($_SESSION['user'] == 'admin') {
|
if ($_SESSION['user'] == 'admin') {
|
||||||
|
|
||||||
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
||||||
check_error($return_var);
|
check_error($return_var);
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
$data = array_reverse($data);
|
$data = array_reverse($data);
|
||||||
unset($output);
|
|
||||||
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_web.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_web.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_web.html');
|
||||||
} else {
|
} else {
|
||||||
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
||||||
check_error($return_var);
|
check_error($return_var);
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
$data = array_reverse($data);
|
$data = array_reverse($data);
|
||||||
unset($output);
|
|
||||||
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_web.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_web.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_web.html');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_add_web" method="post">
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function elementHideShow(elementToHideOrShow)
|
function elementHideShow(elementToHideOrShow){
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
if (el.style.display == "block") {
|
if (el.style.display == "block") {
|
||||||
el.style.display = "none";
|
el.style.display = "none";
|
||||||
|
@ -10,24 +30,40 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<table class='data'>
|
<table class='data'>
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<table class="data-col1">
|
<table class="data-col1">
|
||||||
<tr><td style="padding: 18 0 4 18;"></td></tr>
|
<tr>
|
||||||
|
<td style="padding: 18 0 4 18;"></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
<table class="data-col2" width="600px">
|
<table class="data-col2" width="600px">
|
||||||
<form method="post" name="v_add_user">
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> ></td></tr>
|
Domain
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
</td>
|
||||||
<tr><td><select class="add-list" name="v_ip">
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_ip">
|
||||||
<?php
|
<?php
|
||||||
foreach ($ips as $key => $value) {
|
foreach ($ips as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$key."\"";
|
echo "\t\t\t\t<option value=\"".$key."\"";
|
||||||
|
@ -37,19 +73,55 @@
|
||||||
echo ">".$key."</option>\n";
|
echo ">".$key."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">DNS support</td></tr>
|
</tr>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_dns" <?php if (empty($v_dns)) echo "checked=yes"; ?>></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Mail support</td></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_mail" <?php if (empty($v_mail)) echo "checked=yes"; ?>></tr>
|
DNS support
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;"><a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a></td></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 9px 0 0 0px;">
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_dns" <?php if (empty($v_dns)) echo "checked=yes"; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Mail support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_mail" <?php if (empty($v_mail)) echo "checked=yes"; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 9px 0 0 0px;">
|
||||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
||||||
<tr><td class="add-text" style="padding: 0 0 0 2px;">Domain Aliases</td></tr>
|
<tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea></td></tr>
|
<td class="add-text" style="padding: 0 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Apache Template</td></tr>
|
Domain Aliases
|
||||||
<tr><td><select class="add-list" name="v_template">
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Apache Template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_template">
|
||||||
<?php
|
<?php
|
||||||
foreach ($templates as $key => $value) {
|
foreach ($templates as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
echo "\t\t\t\t<option value=\"".$value."\"";
|
||||||
|
@ -62,22 +134,77 @@
|
||||||
echo "> ".$value." </option>\n";
|
echo "> ".$value." </option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Error Logging</td></tr>
|
</tr>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if (!empty($v_elog)) echo "checked=yes" ?>></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Nginx Support</td></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (empty($v_nginx)) echo "checked=yes" ?>></tr>
|
Error Logging
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Support</td></tr>
|
</td>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if (!empty($v_ssl)) echo "checked=yes" ?>></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate</td></tr>
|
<tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea></tr>
|
<td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Key</td></tr>
|
<input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if (!empty($v_elog)) echo "checked=yes" ?>>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span></td></tr>
|
</tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Web Statistics</td></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td><select class="add-list" name="v_stats">
|
Nginx Support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (empty($v_nginx)) echo "checked=yes" ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if (!empty($v_ssl)) echo "checked=yes" ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Key
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Web Statistics
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_stats">
|
||||||
<?php
|
<?php
|
||||||
foreach ($stats as $key => $value) {
|
foreach ($stats as $key => $value) {
|
||||||
$svalue = "'".$value."'";
|
$svalue = "'".$value."'";
|
||||||
|
@ -89,14 +216,20 @@
|
||||||
echo ">".$value."</option>\n";
|
echo ">".$value."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
</tr>
|
||||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
<tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/web/'">
|
<td style="padding: 24px 0 0 0;">
|
||||||
</td></tr>
|
<input type="submit" name="ok" value="OK" class="button">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/web/'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
<script type="text/javascript">
|
|
||||||
function elementHideShow(elementToHideOrShow)
|
<table class="sub-menu" style="background: white;">
|
||||||
{
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_edit_user" method="post">
|
||||||
|
<script language="javascript">
|
||||||
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
if (el.style.display == "block") {
|
if (el.style.display == "block") {
|
||||||
el.style.display = "none";
|
el.style.display = "none";
|
||||||
|
@ -29,18 +49,33 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
<form method="post" name="v_edit_user">
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>></td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
Domain
|
||||||
<tr><td><select class="add-list" name="v_ip">
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_ip">
|
||||||
<?php
|
<?php
|
||||||
foreach ($ips as $key => $value) {
|
foreach ($ips as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$key."\"";
|
echo "\n\t\t\t\t\t\t\t\t\t\t<option value=\"".$key."\"";
|
||||||
$skey = "'".$key."'";
|
$skey = "'".$key."'";
|
||||||
if ((!empty($v_ip)) && ( $key == $v_ip ) || ( $skey == $v_ip )){
|
if ((!empty($v_ip)) && ( $key == $v_ip ) || ( $skey == $v_ip )){
|
||||||
echo ' selected';
|
echo ' selected';
|
||||||
|
@ -48,12 +83,27 @@
|
||||||
echo ">".$key."</option>\n";
|
echo ">".$key."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Aliases</td></tr>
|
</tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea></td></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Template</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td><select class="add-list" name="v_template">
|
Aliases
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_template">
|
||||||
<?php
|
<?php
|
||||||
foreach ($templates as $key => $value) {
|
foreach ($templates as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
echo "\t\t\t\t<option value=\"".$value."\"";
|
||||||
|
@ -64,31 +114,108 @@
|
||||||
echo ">".$value."</option>\n";
|
echo ">".$value."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Error Logging</td></tr>
|
</tr>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if ($v_elog == 'yes') echo "checked=yes" ?>></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Nginx Support</td></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (!empty($v_nginx)) echo "checked=yes" ?> onclick="javascript:elementHideShow('nginxtable');"></tr>
|
Error Logging
|
||||||
<tr><td><table style="display:<?php if (empty($v_nginx)) { echo 'none';} else {echo 'block';}?> ;" id="nginxtable"><tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 9px 0 0 2px;">Nginx Supported Extentions</td></tr>
|
</tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_nginx_ext"><?php if (!empty($v_nginx_ext)) { echo $v_nginx_ext;} else { echo 'jpg, jpeg, gif, png, ico, svg, css, zip, tgz, gz, rar, bz2, exe, pdf, doc, xls, ppt, txt, odt, ods, odp, odf, tar, bmp, rtf, js, mp3, avi, mpeg, flv, html, htm'; } ?></textarea></tr>
|
<tr>
|
||||||
</td></tr></tr></table></td></tr>
|
<td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Support</td></tr>
|
<input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if ($v_elog == 'yes') echo "checked=yes" ?>>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');"></tr>
|
</td>
|
||||||
<tr><td><table style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;" id="ssltable"><tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 9px 0 0 2px;">SSL HomeDirectory</td></tr>
|
<tr>
|
||||||
<tr><td><select class="add-list" name="v_ssl_home">
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<option value='same' <?php if ($v_ssl_home == 'same') echo "selected";?> >public_html</option>
|
Nginx Support
|
||||||
<option value='single' <?php if ($v_ssl_home == 'single') echo "selected";?>>public_shtml</option>
|
</td>
|
||||||
</select></td></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate</td></tr>
|
<tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea></td></tr>
|
<td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Key</td></tr>
|
<input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (!empty($v_nginx)) echo "checked=yes" ?> onclick="javascript:elementHideShow('nginxtable');">
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea></td></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span></td></tr>
|
</tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea></td></tr>
|
<tr>
|
||||||
</td></tr></tr></table></td></tr>
|
<td>
|
||||||
|
<table style="display:<?php if (empty($v_nginx)) { echo 'none';} else {echo 'block';}?> ;" id="nginxtable">
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 9px 0 0 2px;">
|
||||||
|
Nginx Supported Extentions
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_nginx_ext"><?php if (!empty($v_nginx_ext)) { echo $v_nginx_ext;} else { echo 'jpg, jpeg, gif, png, ico, svg, css, zip, tgz, gz, rar, bz2, exe, pdf, doc, xls, ppt, txt, odt, ods, odp, odf, tar, bmp, rtf, js, mp3, avi, mpeg, flv, html, htm'; } ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;" id="ssltable">
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 9px 0 0 2px;">
|
||||||
|
SSL HomeDirectory
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_ssl_home">
|
||||||
|
<option value='same' <?php if ($v_ssl_home == 'same') echo "selected";?>>
|
||||||
|
public_html
|
||||||
|
</option>
|
||||||
|
<option value='single' <?php if ($v_ssl_home == 'single') echo "selected";?>>
|
||||||
|
public_shtml
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Key
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Web Statistics</td></tr>
|
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Web Statistics</td></tr>
|
||||||
<tr><td><select class="add-list" name="v_stats">
|
<tr><td><select class="add-list" name="v_stats">
|
||||||
<?php
|
<?php
|
||||||
|
@ -112,11 +239,12 @@
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".$v_stats_password; ?> id="v_password"></tr>
|
<tr><td><input type="text" size="20" class="add-input" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".$v_stats_password; ?> id="v_password"></tr>
|
||||||
</td></tr></tr></table>
|
</td></tr></tr></table>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<tr><td style="padding: 24px 0 0 0;">
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<input type="submit" class="button" name="save" value="Save"></form>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/web/'">
|
<input type="button" class="button" value="Cancel" onClick="location.href='/list/web/'">
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</form>
|
</form>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,5 +1,35 @@
|
||||||
<table class='data'>
|
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 0 8px 6px">
|
||||||
|
<div style="float:left">
|
||||||
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> Add Domain </button>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: right; float: right;">
|
||||||
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
|
<button> Search </button>
|
||||||
|
</div>
|
||||||
|
<div style="float:left; padding-left: 26px;">
|
||||||
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
|
<select style="margin:0 2px 0 0px;" >
|
||||||
|
<option>apply to selected</option>
|
||||||
|
<option>rebuild</option>
|
||||||
|
<option>update counters</option>
|
||||||
|
<option>suspend</option>
|
||||||
|
<option>unsuspend</option>
|
||||||
|
<option>delete</option>
|
||||||
|
</select>
|
||||||
|
<button style="width:27px;"> › </button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class='data'>
|
||||||
<?php
|
<?php
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
++$i;
|
++$i;
|
||||||
|
@ -10,7 +40,6 @@ foreach ($data as $key => $value) {
|
||||||
$status = 'active';
|
$status = 'active';
|
||||||
$spnd_action = 'suspend' ;
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($data[$key]['SSL_HOME'])) {
|
if (!empty($data[$key]['SSL_HOME'])) {
|
||||||
if ($data[$key]['SSL_HOME'] == 'same') {
|
if ($data[$key]['SSL_HOME'] == 'same') {
|
||||||
$ssl_home = 'public_html';
|
$ssl_home = 'public_html';
|
||||||
|
@ -30,7 +59,6 @@ foreach ($data as $key => $value) {
|
||||||
$nginx_ext_title = '';
|
$nginx_ext_title = '';
|
||||||
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
|
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
@ -51,7 +79,6 @@ foreach ($data as $key => $value) {
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
@ -69,7 +96,6 @@ foreach ($data as $key => $value) {
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -79,16 +105,18 @@ foreach ($data as $key => $value) {
|
||||||
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="domain" value="<?php echo "$key" ?>" ></td></tr>
|
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="domain" value="<?php echo "$key" ?>" ></td></tr>
|
||||||
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
||||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<?php if (!empty($data[$key]['STATS'])) {
|
<?php
|
||||||
|
if (!empty($data[$key]['STATS'])) {
|
||||||
echo ' <td class="data-controls" width="114px"><img src="/images/new_window.png" width="8px" height="8px">';
|
echo ' <td class="data-controls" width="114px"><img src="/images/new_window.png" width="8px" height="8px">';
|
||||||
echo "<a href='http://".$key."/vstats/' target='_blank'> open webstats </a></td>";
|
echo "<a href='http://".$key."/vstats/' target='_blank'> open webstats </a></td>";
|
||||||
} ?>
|
}
|
||||||
|
?>
|
||||||
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/web/?domain=<?php echo "$key" ?>"> edit</a></td>
|
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/web/?domain=<?php echo "$key" ?>"> edit</a></td>
|
||||||
<td class="data-controls" width="80px">
|
<td class="data-controls" width="80px">
|
||||||
<img src="/images/suspend.png" width="7px" height="8px">
|
<img src="/images/suspend.png" width="7px" height="8px">
|
||||||
|
@ -104,51 +132,100 @@ foreach ($data as $key => $value) {
|
||||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key ?></b> <a class="aliases" style="padding: 0 30px 0 8px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
|
<tr>
|
||||||
|
<td colspan=3 class="domain" style="padding: 0 0 0 4px;">
|
||||||
|
<b><?php echo $key ?></b> <a class="aliases" style="padding: 0 30px 0 8px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align:top;" >
|
<td style="vertical-align:top;" >
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name" style="padding: 2px 0 0 2px;"><?php echo $data[$key]['IP'] ?></td>
|
<tr>
|
||||||
<tr><td class="counter-name" style="padding: 0 0 8px 2px">[<?php echo $data[$key]['TPL'] ?>] template</td></tr>
|
<td class="counter-name" style="padding: 2px 0 0 2px;">
|
||||||
<tr><td class="chart1" style="padding: 0 0 0 2px">Bandwidth: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
|
<?php echo $data[$key]['IP'] ?>
|
||||||
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;"><div style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div></div></td></tr>
|
</td>
|
||||||
<tr><td class="chart1" style="padding: 0 0 0 2px">Disk: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
|
<tr>
|
||||||
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;"><div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div></div></td></tr>
|
<td class="counter-name" style="padding: 0 0 8px 2px">
|
||||||
|
[<?php echo $data[$key]['TPL'] ?>] template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="chart1" style="padding: 0 0 0 2px">
|
||||||
|
Bandwidth: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
|
||||||
|
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
|
||||||
|
<div style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="chart1" style="padding: 0 0 0 2px">Disk: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
|
||||||
|
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
|
||||||
|
<div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align:top;" width="250">
|
<td style="vertical-align:top;" width="250">
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name">CGI Support:</td><td class="counter-value"><?php echo $data[$key]['CGI'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">Error Log:</td><td class="counter-value"><?php echo $data[$key]['ELOG'] ?></td></tr>
|
<td class="counter-name">CGI Support:</td>
|
||||||
<tr><td class="counter-name">Web Statistics:</td><td class="counter-value"><?php echo $data[$key]['STATS'] ?></td></tr>
|
<td class="counter-value"><?php echo $data[$key]['CGI'] ?></td>
|
||||||
<tr><td class="counter-name">Statistics Auth:</td><td class="counter-value"><?php echo $data[$key]['STATS_AUTH'] ?></td></tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Error Log:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['ELOG'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Web Statistics:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['STATS'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Statistics Auth:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['STATS_AUTH'] ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan=4 style="vertical-align:top;" width="300">
|
<td rowspan=4 style="vertical-align:top;" width="300">
|
||||||
<table width="300">
|
<table width="300">
|
||||||
<tr><td class="counter-name" width="40%">SSL Support:</td><td class="counter-value"><?php echo $data[$key]['SSL'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">SSL Home:</td><td class="counter-value"><?php echo $ssl_home ?></td></tr>
|
<td class="counter-name" width="40%">SSL Support:</td>
|
||||||
<tr><td class="counter-name">Nginx Template:</td><td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td></tr>
|
<td class="counter-value"><?php echo $data[$key]['SSL'] ?></td>
|
||||||
<tr><td class="counter-name">Nginx Extentions:</td><td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td></tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">SSL Home:</td>
|
||||||
|
<td class="counter-value"><?php echo $ssl_home ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Nginx Template:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Nginx Extentions:</td>
|
||||||
|
<td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
|
|
||||||
<table class="data-count">
|
<table class="data-count">
|
||||||
<tr>
|
<tr>
|
||||||
<td>→
|
<td width="160px">
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $i == 1) {
|
if ( $i == 1) {
|
||||||
echo "1 web domain ";
|
echo "1 web domain ";
|
||||||
|
@ -161,4 +238,4 @@ foreach ($data as $key => $value) {
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:113px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:138px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 14px 0 24px 0;" ><a class="add-name"><b>Adding Web Domain</b></a>
|
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
|
||||||
} else {
|
|
||||||
if (!empty($_SESSION['ok_msg'])) {
|
|
||||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 14px 0 24px 0;" ><a class="add-name"><b>Editing Web Domain</b></a>
|
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
|
||||||
} else {
|
|
||||||
if (!empty($_SESSION['ok_msg'])) {
|
|
||||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$( "#dialog:ui-dialog" ).dialog( "destroy" );
|
|
||||||
$( "#dialog-message" ).dialog({
|
|
||||||
modal: true,
|
|
||||||
buttons: {
|
|
||||||
Ok: function() {
|
|
||||||
$( this ).dialog( "close" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<div id="dialog-message" title="Error">
|
|
||||||
<p><?php echo $_SESSION['error_msg'] ?>.</p>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
unset($_SESSION['error_msg']);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td width="142px" style="padding: 16px 0 16px 6px">
|
|
||||||
<button style="width:120px; padding: 2px 0px 2px 0px;" onclick="location.href='/add/web/'">Add Domain</button>
|
|
||||||
<td>
|
|
||||||
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
|
||||||
<select style="margin:0 0 0 0px" name="action">
|
|
||||||
<option>apply to selected</option>
|
|
||||||
<option>rebuild</option>
|
|
||||||
<option>suspend</option>
|
|
||||||
<option>unsuspend</option>
|
|
||||||
<option>delete</option>
|
|
||||||
</select> <button> > </button></td>
|
|
||||||
</td>
|
|
||||||
<td style="text-align: right;"><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
|
|
||||||
</tr><tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form id="vstobjects">
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
|
||||||
<title> Vesta - Login </title>
|
<title> Vesta - Login </title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
box-shadow: 0 0 8px 8px #d7d7d7;
|
box-shadow: 0 0 2px 2px #d7d7d7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-box {
|
.login-box {
|
||||||
|
@ -42,12 +44,14 @@
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text1 a {
|
.login-text1 a {
|
||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text2 {
|
.login-text2 {
|
||||||
padding: 12px 0 10px 0;
|
padding: 12px 0 10px 0;
|
||||||
color: #484243;
|
color: #484243;
|
||||||
|
@ -62,16 +66,19 @@
|
||||||
padding: 0 8px 0 0;
|
padding: 0 8px 0 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vestacp{
|
.vestacp{
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #CCCCB4;
|
color: #CCCCB4;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding: 20px 0 0 0;
|
padding: 20px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
color: #DE6C5D;
|
color: #DE6C5D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loggin-input {
|
.loggin-input {
|
||||||
color: #555;
|
color: #555;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
@ -116,33 +123,58 @@
|
||||||
<td style="padding: 0 10 0 42;">
|
<td style="padding: 0 10 0 42;">
|
||||||
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="Vesta Control Panel" /></a>
|
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="Vesta Control Panel" /></a>
|
||||||
</td>
|
</td>
|
||||||
<td style="padding: 20px 0 0 0;"><form method="post" action="/login/" >
|
<td style="padding: 20px 0 0 0;">
|
||||||
|
<form method="post" action="/login/" >
|
||||||
<table class="login-box">
|
<table class="login-box">
|
||||||
<tr>
|
<tr>
|
||||||
<td><p class="login-text1">Username</p></td>
|
<td>
|
||||||
</tr><tr>
|
<p class="login-text1">Username</p>
|
||||||
<td><input tabindex="1" type="text" size="20px" style="width:200px;" name="user" class="loggin-input"></td>
|
</td>
|
||||||
</tr><tr>
|
</tr>
|
||||||
<td><p class="login-text1">Password <a tabindex="5" class="forgot" href="/reset/" >(forgot password)</a></p></td>
|
<tr>
|
||||||
</tr><tr>
|
<td>
|
||||||
<td><input tabindex="2" type="password" size="20px" style="width:200px;" name="password" class="loggin-input"></td>
|
<input tabindex="1" type="text" size="20px" style="width:200px;" name="user" class="loggin-input">
|
||||||
</tr><tr>
|
</td>
|
||||||
<td><p class="login-text2"><input tabindex="4" type="checkbox" style="margin: 0 8px 0 0" >Remember me</p></td>
|
</tr>
|
||||||
</tr><tr>
|
<tr>
|
||||||
<td><input tabindex="3" type="submit" value="Log In" class="loggin-button"></td>
|
<td>
|
||||||
|
<p class="login-text1">Password <a tabindex="5" class="forgot" href="/reset/" >(forgot password)</a></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input tabindex="2" type="password" size="20px" style="width:200px;" name="password" class="loggin-input">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="login-text2"><input tabindex="4" type="checkbox" style="margin: 0 8px 0 0" >Remember me</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input tabindex="3" type="submit" value="Log In" class="loggin-button">
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr><tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
<table class="login-bottom">
|
<table class="login-bottom">
|
||||||
<tr><td>.<?php if (isset($ERROR)) echo $ERROR ?></td></tr>
|
<tr>
|
||||||
<tr><td> <a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a></td></tr>
|
<td>.<?php if (isset($ERROR)) echo $ERROR ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> <a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</tr></table>
|
|
||||||
</center>
|
</center>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_add_web" method="post">
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function elementHideShow(elementToHideOrShow)
|
function elementHideShow(elementToHideOrShow){
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
if (el.style.display == "block") {
|
if (el.style.display == "block") {
|
||||||
el.style.display = "none";
|
el.style.display = "none";
|
||||||
|
@ -10,24 +30,40 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<table class='data'>
|
<table class='data'>
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<table class="data-col1">
|
<table class="data-col1">
|
||||||
<tr><td style="padding: 18 0 4 18;"></td></tr>
|
<tr>
|
||||||
|
<td style="padding: 18 0 4 18;"></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
<table class="data-col2" width="600px">
|
<table class="data-col2" width="600px">
|
||||||
<form method="post" name="v_add_user">
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> ></td></tr>
|
Domain
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
</td>
|
||||||
<tr><td><select class="add-list" name="v_ip">
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_ip">
|
||||||
<?php
|
<?php
|
||||||
foreach ($ips as $key => $value) {
|
foreach ($ips as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$key."\"";
|
echo "\t\t\t\t<option value=\"".$key."\"";
|
||||||
|
@ -37,32 +73,115 @@
|
||||||
echo ">".$key."</option>\n";
|
echo ">".$key."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">DNS support</td></tr>
|
</tr>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_dns" <?php if (empty($v_dns)) echo "checked=yes"; ?>></tr>
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Mail support</td></tr>
|
DNS support
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_mail" <?php if (empty($v_mail)) echo "checked=yes"; ?>></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;"><a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a></td></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 9px 0 0 0px;">
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_dns" <?php if (empty($v_dns)) echo "checked=yes"; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Mail support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_mail" <?php if (empty($v_mail)) echo "checked=yes"; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 9px 0 0 0px;">
|
||||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
||||||
<tr><td class="add-text" style="padding: 0 0 0 2px;">Domain Aliases</td></tr>
|
<tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea></td></tr>
|
<td class="add-text" style="padding: 0 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Error Logging</td></tr>
|
Domain Aliases
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if (!empty($v_elog)) echo "checked=yes" ?>></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Nginx Support</td></tr>
|
</tr>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (empty($v_nginx)) echo "checked=yes" ?>></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Support</td></tr>
|
<td>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if (!empty($v_ssl)) echo "checked=yes" ?>></tr>
|
<textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate</td></tr>
|
</td>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Key</td></tr>
|
<tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span></td></tr>
|
Error Logging
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Web Statistics</td></tr>
|
</tr>
|
||||||
<tr><td><select class="add-list" name="v_stats">
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if (!empty($v_elog)) echo "checked=yes" ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Nginx Support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (empty($v_nginx)) echo "checked=yes" ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if (!empty($v_ssl)) echo "checked=yes" ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Key
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Web Statistics
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_stats">
|
||||||
<?php
|
<?php
|
||||||
foreach ($stats as $key => $value) {
|
foreach ($stats as $key => $value) {
|
||||||
$svalue = "'".$value."'";
|
$svalue = "'".$value."'";
|
||||||
|
@ -74,14 +193,20 @@
|
||||||
echo ">".$value."</option>\n";
|
echo ">".$value."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
</tr>
|
||||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
<tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/web/'">
|
<td style="padding: 24px 0 0 0;">
|
||||||
</td></tr>
|
<input type="submit" name="ok" value="OK" class="button">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/web/'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
<script type="text/javascript">
|
|
||||||
function elementHideShow(elementToHideOrShow)
|
<table class="sub-menu" style="background: white;">
|
||||||
{
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_edit_user" method="post">
|
||||||
|
<script language="javascript">
|
||||||
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
if (el.style.display == "block") {
|
if (el.style.display == "block") {
|
||||||
el.style.display = "none";
|
el.style.display = "none";
|
||||||
|
@ -29,18 +49,33 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
<form method="post" name="v_edit_user">
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>></td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
Domain
|
||||||
<tr><td><select class="add-list" name="v_ip">
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_ip">
|
||||||
<?php
|
<?php
|
||||||
foreach ($ips as $key => $value) {
|
foreach ($ips as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$key."\"";
|
echo "\n\t\t\t\t\t\t\t\t\t\t<option value=\"".$key."\"";
|
||||||
$skey = "'".$key."'";
|
$skey = "'".$key."'";
|
||||||
if ((!empty($v_ip)) && ( $key == $v_ip ) || ( $skey == $v_ip )){
|
if ((!empty($v_ip)) && ( $key == $v_ip ) || ( $skey == $v_ip )){
|
||||||
echo ' selected';
|
echo ' selected';
|
||||||
|
@ -48,33 +83,118 @@
|
||||||
echo ">".$key."</option>\n";
|
echo ">".$key."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Aliases</td></tr>
|
</tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea></td></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Error Logging</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if ($v_elog == 'yes') echo "checked=yes" ?>></tr>
|
Aliases
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Nginx Support</td></tr>
|
</td>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (!empty($v_nginx)) echo "checked=yes" ?> onclick="javascript:elementHideShow('nginxtable');"></tr>
|
</tr>
|
||||||
<tr><td><table style="display:<?php if (empty($v_nginx)) { echo 'none';} else {echo 'block';}?> ;" id="nginxtable"><tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 9px 0 0 2px;">Nginx Supported Extentions</td></tr>
|
<td>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_nginx_ext"><?php if (!empty($v_nginx_ext)) { echo $v_nginx_ext;} else { echo 'jpg, jpeg, gif, png, ico, svg, css, zip, tgz, gz, rar, bz2, exe, pdf, doc, xls, ppt, txt, odt, ods, odp, odf, tar, bmp, rtf, js, mp3, avi, mpeg, flv, html, htm'; } ?></textarea></tr>
|
<textarea size="20" class="add-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea>
|
||||||
</td></tr></tr></table></td></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Support</td></tr>
|
</tr>
|
||||||
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');"></tr>
|
<tr>
|
||||||
<tr><td><table style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;" id="ssltable"><tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 9px 0 0 2px;">SSL HomeDirectory</td></tr>
|
Error Logging
|
||||||
<tr><td><select class="add-list" name="v_ssl_home">
|
</td>
|
||||||
<option value='same' <?php if ($v_ssl_home == 'same') echo "selected";?> >public_html</option>
|
</tr>
|
||||||
<option value='single' <?php if ($v_ssl_home == 'single') echo "selected";?>>public_shtml</option>
|
<tr>
|
||||||
</select></td></tr>
|
<td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate</td></tr>
|
<input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if ($v_elog == 'yes') echo "checked=yes" ?>>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea></td></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Key</td></tr>
|
</tr>
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea></td></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span></td></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td><textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea></td></tr>
|
Nginx Support
|
||||||
</td></tr></tr></table></td></tr>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (!empty($v_nginx)) echo "checked=yes" ?> onclick="javascript:elementHideShow('nginxtable');">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table style="display:<?php if (empty($v_nginx)) { echo 'none';} else {echo 'block';}?> ;" id="nginxtable">
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 9px 0 0 2px;">
|
||||||
|
Nginx Supported Extentions
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_nginx_ext"><?php if (!empty($v_nginx_ext)) { echo $v_nginx_ext;} else { echo 'jpg, jpeg, gif, png, ico, svg, css, zip, tgz, gz, rar, bz2, exe, pdf, doc, xls, ppt, txt, odt, ods, odp, odf, tar, bmp, rtf, js, mp3, avi, mpeg, flv, html, htm'; } ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Support
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;" id="ssltable">
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 9px 0 0 2px;">
|
||||||
|
SSL HomeDirectory
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_ssl_home">
|
||||||
|
<option value='same' <?php if ($v_ssl_home == 'same') echo "selected";?>>
|
||||||
|
public_html
|
||||||
|
</option>
|
||||||
|
<option value='single' <?php if ($v_ssl_home == 'single') echo "selected";?>>
|
||||||
|
public_shtml
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo $v_ssl_crt; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Key
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo $v_ssl_key; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SSL Certificate Authority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<textarea size="20" class="add-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo $v_ssl_ca; ?></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Web Statistics</td></tr>
|
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Web Statistics</td></tr>
|
||||||
<tr><td><select class="add-list" name="v_stats">
|
<tr><td><select class="add-list" name="v_stats">
|
||||||
<?php
|
<?php
|
||||||
|
@ -98,11 +218,12 @@
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".$v_stats_password; ?> id="v_password"></tr>
|
<tr><td><input type="text" size="20" class="add-input" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".$v_stats_password; ?> id="v_password"></tr>
|
||||||
</td></tr></tr></table>
|
</td></tr></tr></table>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<tr><td style="padding: 24px 0 0 0;">
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<input type="submit" class="button" name="save" value="Save"></form>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/web/'">
|
<input type="button" class="button" value="Cancel" onClick="location.href='/list/web/'">
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</form>
|
</form>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,5 +1,35 @@
|
||||||
<table class='data'>
|
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 0 8px 6px">
|
||||||
|
<div style="float:left">
|
||||||
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> Add Domain </button>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: right; float: right;">
|
||||||
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
|
<button> Search </button>
|
||||||
|
</div>
|
||||||
|
<div style="float:left; padding-left: 26px;">
|
||||||
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
|
<select style="margin:0 2px 0 0px;" >
|
||||||
|
<option>apply to selected</option>
|
||||||
|
<option>rebuild</option>
|
||||||
|
<option>update counters</option>
|
||||||
|
<option>suspend</option>
|
||||||
|
<option>unsuspend</option>
|
||||||
|
<option>delete</option>
|
||||||
|
</select>
|
||||||
|
<button style="width:27px;"> › </button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class='data'>
|
||||||
<?php
|
<?php
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
++$i;
|
++$i;
|
||||||
|
@ -10,7 +40,6 @@ foreach ($data as $key => $value) {
|
||||||
$status = 'active';
|
$status = 'active';
|
||||||
$spnd_action = 'suspend' ;
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($data[$key]['SSL_HOME'])) {
|
if (!empty($data[$key]['SSL_HOME'])) {
|
||||||
if ($data[$key]['SSL_HOME'] == 'same') {
|
if ($data[$key]['SSL_HOME'] == 'same') {
|
||||||
$ssl_home = 'public_html';
|
$ssl_home = 'public_html';
|
||||||
|
@ -30,10 +59,26 @@ foreach ($data as $key => $value) {
|
||||||
$nginx_ext_title = '';
|
$nginx_ext_title = '';
|
||||||
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
|
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
|
modal: true,
|
||||||
|
autoOpen: false,
|
||||||
|
width: 360,
|
||||||
|
buttons: {
|
||||||
|
"Ok": function(event, ui) {
|
||||||
|
location.href = '/<?php echo $spnd_action ?>/web/?domain=<?php echo "$key" ?>';
|
||||||
|
},
|
||||||
|
"Cancel": function() {
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#<?php echo $spnd_action ?>_link_<?php echo "$i" ?>').click(function(){
|
||||||
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
@ -51,26 +96,27 @@ foreach ($data as $key => $value) {
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<tr class="data-row">
|
<tr class="data-row">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<table class="data-col1">
|
<table class="data-col1">
|
||||||
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="domain" value="<?php echo "$key" ?>" ></td></tr>
|
||||||
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
||||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<?php if (!empty($data[$key]['STATS'])) {
|
<?php
|
||||||
|
if (!empty($data[$key]['STATS'])) {
|
||||||
echo ' <td class="data-controls" width="114px"><img src="/images/new_window.png" width="8px" height="8px">';
|
echo ' <td class="data-controls" width="114px"><img src="/images/new_window.png" width="8px" height="8px">';
|
||||||
echo "<a href='http://".$key."/vstats/' target='_blank'> open webstats </a></td>";
|
echo "<a href='http://".$key."/vstats/' target='_blank'> open webstats </a></td>";
|
||||||
} ?>
|
}
|
||||||
|
?>
|
||||||
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/web/?domain=<?php echo "$key" ?>"> edit</a></td>
|
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/web/?domain=<?php echo "$key" ?>"> edit</a></td>
|
||||||
<td class="data-controls" width="70px">
|
<td class="data-controls" width="70px">
|
||||||
<img src="/images/delete.png" width="7px" height="7px">
|
<img src="/images/delete.png" width="7px" height="7px">
|
||||||
|
@ -79,51 +125,100 @@ foreach ($data as $key => $value) {
|
||||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key ?></b> <a class="aliases" style="padding: 0 30px 0 8px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
|
<tr>
|
||||||
|
<td colspan=3 class="domain" style="padding: 0 0 0 4px;">
|
||||||
|
<b><?php echo $key ?></b> <a class="aliases" style="padding: 0 30px 0 8px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align:top;" >
|
<td style="vertical-align:top;" >
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name" style="padding: 2px 0 0 2px;"><?php echo $data[$key]['IP'] ?></td>
|
<tr>
|
||||||
<tr><td class="counter-name" style="padding: 0 0 8px 2px">[<?php echo $data[$key]['TPL'] ?>] template</td></tr>
|
<td class="counter-name" style="padding: 2px 0 0 2px;">
|
||||||
<tr><td class="chart1" style="padding: 0 0 0 2px">Bandwidth: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
|
<?php echo $data[$key]['IP'] ?>
|
||||||
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;"><div style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div></div></td></tr>
|
</td>
|
||||||
<tr><td class="chart1" style="padding: 0 0 0 2px">Disk: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
|
<tr>
|
||||||
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;"><div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div></div></td></tr>
|
<td class="counter-name" style="padding: 0 0 8px 2px">
|
||||||
|
[<?php echo $data[$key]['TPL'] ?>] template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="chart1" style="padding: 0 0 0 2px">
|
||||||
|
Bandwidth: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
|
||||||
|
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
|
||||||
|
<div style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="chart1" style="padding: 0 0 0 2px">Disk: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
|
||||||
|
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
|
||||||
|
<div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align:top;" width="250">
|
<td style="vertical-align:top;" width="250">
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name">CGI Support:</td><td class="counter-value"><?php echo $data[$key]['CGI'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">Error Log:</td><td class="counter-value"><?php echo $data[$key]['ELOG'] ?></td></tr>
|
<td class="counter-name">CGI Support:</td>
|
||||||
<tr><td class="counter-name">Web Statistics:</td><td class="counter-value"><?php echo $data[$key]['STATS'] ?></td></tr>
|
<td class="counter-value"><?php echo $data[$key]['CGI'] ?></td>
|
||||||
<tr><td class="counter-name">Statistics Auth:</td><td class="counter-value"><?php echo $data[$key]['STATS_AUTH'] ?></td></tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Error Log:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['ELOG'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Web Statistics:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['STATS'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Statistics Auth:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['STATS_AUTH'] ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan=4 style="vertical-align:top;" width="300">
|
<td rowspan=4 style="vertical-align:top;" width="300">
|
||||||
<table width="300">
|
<table width="300">
|
||||||
<tr><td class="counter-name" width="40%">SSL Support:</td><td class="counter-value"><?php echo $data[$key]['SSL'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">SSL Home:</td><td class="counter-value"><?php echo $ssl_home ?></td></tr>
|
<td class="counter-name" width="40%">SSL Support:</td>
|
||||||
<tr><td class="counter-name">Nginx Template:</td><td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td></tr>
|
<td class="counter-value"><?php echo $data[$key]['SSL'] ?></td>
|
||||||
<tr><td class="counter-name">Nginx Extentions:</td><td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td></tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">SSL Home:</td>
|
||||||
|
<td class="counter-value"><?php echo $ssl_home ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Nginx Template:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Nginx Extentions:</td>
|
||||||
|
<td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
|
|
||||||
<table class="data-count">
|
<table class="data-count">
|
||||||
<tr>
|
<tr>
|
||||||
<td>→
|
<td width="160px">
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $i == 1) {
|
if ( $i == 1) {
|
||||||
echo "1 web domain ";
|
echo "1 web domain ";
|
||||||
|
@ -136,4 +231,4 @@ foreach ($data as $key => $value) {
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:113px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:138px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td width="142px" style="padding: 16px 0 16px 6px">
|
|
||||||
<button style="width:120px; padding: 2px 0px 2px 0px;" onclick="location.href='/add/web/'">Add Domain</button>
|
|
||||||
<td><a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
|
||||||
<select style="margin:0 0 0 0px">
|
|
||||||
<option>apply to selected</option>
|
|
||||||
<option>update counters</option>
|
|
||||||
<option>delete</option>
|
|
||||||
</select> <button> > </button></td>
|
|
||||||
</td>
|
|
||||||
<td style="text-align: right;"><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
|
|
||||||
</tr><tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form id="vstobjects">
|
|
Loading…
Add table
Add a link
Reference in a new issue