mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Merge branch 'master' into feature/800
Conflicts: bin/v-add-letsencrypt-user
This commit is contained in:
commit
4daa17f54f
248 changed files with 6127 additions and 2139 deletions
|
@ -84,7 +84,7 @@
|
|||
</p>
|
||||
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -153,7 +153,7 @@
|
|||
</select>
|
||||
</p>
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -227,7 +227,7 @@
|
|||
</p>
|
||||
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -342,7 +342,7 @@
|
|||
</p>
|
||||
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
<option value="IPSECKEY" <?php if ($v_type == 'IPSECKEY') echo selected; ?>>IPSECKEY</option>
|
||||
<option value="PTR" <?php if ($v_type == 'PTR') echo selected; ?>>PTR</option>
|
||||
<option value="SPF" <?php if ($v_type == 'SPF') echo selected; ?>>SPF</option>
|
||||
<option value="TLSA" <?php if ($v_type == 'TLSA') echo selected; ?>>TLSA</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<td class="mail-infoblock-td">
|
||||
<div class="mail-infoblock">
|
||||
<table>
|
||||
<?php $uname_arr=posix_uname(); $hostname=$uname_arr['nodename']; ?>
|
||||
<tr>
|
||||
<td><?=__('Username')?>:</td>
|
||||
<td><span id="v_account">william.cage</span>@<?=htmlentities($v_domain)?></td>
|
||||
|
@ -142,7 +143,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><?=__('IMAP hostname')?>:</td>
|
||||
<td><?=htmlentities($v_domain)?></td>
|
||||
<td><?=$hostname?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=__('IMAP port')?>:</td>
|
||||
|
@ -158,7 +159,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><?=__('SMTP hostname')?></td>
|
||||
<td><?=htmlentities($v_domain)?></td>
|
||||
<td><?=$hostname?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=__('SMTP port')?>:</td>
|
||||
|
@ -179,4 +180,4 @@
|
|||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -62,14 +62,10 @@
|
|||
<td>
|
||||
<select class="vst-list" name="v_ip">
|
||||
<?php
|
||||
foreach ($ips as $key => $value) {
|
||||
$display_ip = $key;
|
||||
if (!empty($value['NAT'])) $display_ip = $value['NAT'];
|
||||
echo "\t\t\t\t<option value=\"".htmlentities($display_ip)."\"";
|
||||
if ((!empty($v_ip)) && ( $display_ip == $_POST['v_ip'])){
|
||||
echo ' selected';
|
||||
}
|
||||
echo ">".htmlentities($display_ip)."</option>\n";
|
||||
foreach ($ips as $ip => $value) {
|
||||
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$value['NAT']}");
|
||||
$ip_selected = (!empty($v_ip) && $ip == $_POST['v_ip']) ? 'selected' : '';
|
||||
echo "\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
</p>
|
||||
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -153,7 +153,7 @@
|
|||
</select>
|
||||
</p>
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -225,7 +225,7 @@
|
|||
</p>
|
||||
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -339,7 +339,7 @@
|
|||
</select>
|
||||
</p>
|
||||
<p class="step-top">
|
||||
<input type="submit" value="<?=__('Generate')?>" class="button">
|
||||
<input type="submit" value="<?=__('generate')?>" class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -737,7 +737,7 @@
|
|||
<a href="https://vestacp.com/checkout/2co.php?product_id=7&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Licence').' 3$/'.__('month').'</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://vestacp.com/checkout/2co.php?product_id=8&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Lifetime Licence').' 50$</a>
|
||||
<a href="https://vestacp.com/checkout/2co.php?product_id=8&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Lifetime License').' 50$</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
|
||||
|
|
92
web/templates/admin/edit_server_bind9.html
Normal file
92
web/templates/admin/edit_server_bind9.html
Normal file
|
@ -0,0 +1,92 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class="data-col2" width="600px">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_options_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_options"><?php echo $v_options;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</table>
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
171
web/templates/admin/edit_server_dovecot.html
Normal file
171
web/templates/admin/edit_server_dovecot.html
Normal file
|
@ -0,0 +1,171 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class="data-col2" width="600px">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!empty($v_config_path1)) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path1 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config1"><?php echo $v_config1;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path2 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config2"><?php echo $v_config2;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path3 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config3"><?php echo $v_config3;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path4 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config4"><?php echo $v_config4;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path5 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config5"><?php echo $v_config5;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path6 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config6"><?php echo $v_config6;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path7 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config7"><?php echo $v_config7;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path8 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config8"><?php echo $v_config8;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
86
web/templates/admin/edit_server_httpd.html
Normal file
86
web/templates/admin/edit_server_httpd.html
Normal file
|
@ -0,0 +1,86 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
<a href="/edit/server/php/" class="vst"><?= __('Configure')." php.ini"?></a>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted">
|
||||
<table class="data-col2" width="600px">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
155
web/templates/admin/edit_server_mysql.html
Normal file
155
web/templates/admin/edit_server_mysql.html
Normal file
|
@ -0,0 +1,155 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted">
|
||||
<table class="data-col2" width="600px" id="basic-options">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
max_connections
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="max_connections" prev_value="<?=htmlentities($v_max_connections)?>" name="v_max_connections" value="<?=htmlentities($v_max_connections)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
max_user_connections
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="max_user_connections" prev_value="<?=htmlentities($v_max_user_connections)?>" name="v_max_user_connections" value="<?=htmlentities($v_max_user_connections)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
wait_timeout
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="memory_limit" prev_value="<?=htmlentities($v_wait_timeout)?>" name="v_wait_timeout" value="<?=htmlentities($v_wait_timeout)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
interactive_timeout
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="interactive_timeout" prev_value="<?=htmlentities($v_interactive_timeout)?>" name="v_interactive_timeout" value="<?=htmlentities($v_interactive_timeout)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
max_allowed_packet
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="max_allowed_packet" prev_value="<?=htmlentities($v_max_allowed_packet)?>" name="v_display_errors" value="<?=htmlentities($v_max_allowed_packet)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<a href="javascript:toggleOptions();" class="vst-advanced"><?=__('Advanced options')?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="data-col2" width="600px" style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advanced-options">
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<a href="javascript:toggleOptions();" class="vst-advanced"><?=__('Basic options')?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
213
web/templates/admin/edit_server_nginx.html
Normal file
213
web/templates/admin/edit_server_nginx.html
Normal file
|
@ -0,0 +1,213 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
<a href="/edit/server/php/" class="vst"><?= __('Configure')." php.ini"?></a>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted">
|
||||
<table class="data-col2" width="600px" id="basic-options">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
worker_processes
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="worker_processes" prev_value="<?=htmlentities($v_worker_processes)?>" name="v_worker_processes" value="<?=htmlentities($v_worker_processes)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
worker_connections
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="worker_connections" prev_value="<?=htmlentities($v_worker_connections)?>" name="v_worker_connections" value="<?=htmlentities($v_worker_connections)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
client_max_body_size
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="client_max_body_size" prev_value="<?=htmlentities($v_client_max_body_size)?>" name="v_client_max_body_size" value="<?=htmlentities($v_client_max_body_size)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
send_timeout
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="send_timeout" prev_value="<?=htmlentities($v_send_timeout)?>" name="v_send_timeout" value="<?=htmlentities($v_send_timeout)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
proxy_connect_timeout
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="proxy_connect_timeout" prev_value="<?=htmlentities($v_proxy_connect_timeout)?>" name="v_proxy_connect_timeout" value="<?=htmlentities($v_proxy_connect_timeout)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
proxy_send_timeout
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="proxy_send_timeout" prev_value="<?=htmlentities($v_proxy_send_timeout)?>" name="v_proxy_send_timeout" value="<?=htmlentities($v_proxy_send_timeout)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
proxy_read_timeout
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="proxy_read_timeout" prev_value="<?=htmlentities($v_proxy_read_timeout)?>" name="v_proxy_read_timeout" value="<?=htmlentities($v_proxy_read_timeout)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
gzip
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="gzip" prev_value="<?=htmlentities($v_gzip)?>" name="v_gzip" value="<?=htmlentities($v_gzip)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
gzip_comp_level
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="gzip_comp_level" prev_value="<?=htmlentities($v_gzip_comp_level)?>" name="v_gzip_comp_level" value="<?=htmlentities($v_gzip_comp_level)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
charset
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="charset" prev_value="<?=htmlentities($v_charset)?>" name="v_charset" value="<?=htmlentities($v_charset)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<a href="javascript:toggleOptions();" class="vst-advanced"><?php print __('Advanced options');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="data-col2" width="600px" style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advanced-options">
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<a href="javascript:toggleOptions();" class="vst-advanced"><?php print __('Basic options');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
92
web/templates/admin/edit_server_pgsql.html
Normal file
92
web/templates/admin/edit_server_pgsql.html
Normal file
|
@ -0,0 +1,92 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class="data-col2" width="600px">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_options_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_options"><?php echo $v_options;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
175
web/templates/admin/edit_server_php.html
Normal file
175
web/templates/admin/edit_server_php.html
Normal file
|
@ -0,0 +1,175 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<a href="/edit/server/<? print $_SESSION['WEB_SYSTEM']?>/" class="vst"><?=__('Configuring Server')?> / <? print strtoupper($_SESSION['WEB_SYSTEM']) ?></a>
|
||||
<a href="/edit/server/php/" class="vst selected"><?= __('Configure')." php.ini"?></a>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted">
|
||||
<table class="data-col2" width="600px" id="basic-options">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
max_execution_time
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="max_execution_time" prev_value="<?=htmlentities($v_max_execution_time)?>" name="v_max_execution_time" value="<?=htmlentities($v_max_execution_time)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
max_input_time
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="max_input_time" prev_value="<?=htmlentities($v_max_input_time)?>" name="v_worker_connections" value="<?=htmlentities($v_max_input_time)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
memory_limit
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="memory_limit" prev_value="<?=htmlentities($v_memory_limit)?>" name="v_memory_limit" value="<?=htmlentities($v_memory_limit)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
error_reporting
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="error_reporting" prev_value="<?=htmlentities($v_error_reporting)?>" name="v_error_reporting" value="<?=htmlentities($v_error_reporting)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
display_errors
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="display_errors" prev_value="<?=htmlentities($v_display_errors)?>" name="v_display_errors" value="<?=htmlentities($v_display_errors)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
post_max_size
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="post_max_size" prev_value="<?=htmlentities($v_post_max_size)?>" name="v_post_max_size" value="<?=htmlentities($v_post_max_size)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
upload_max_filesize
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" regexp="upload_max_filesize" prev_value="<?=htmlentities($v_upload_max_filesize)?>" name="v_upload_max_filesize" value="<?=htmlentities($v_upload_max_filesize)?>">
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<a href="javascript:toggleOptions();" class="vst-advanced"><?=__('Advanced options')?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="data-col2" width="600px" style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advanced-options">
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<a href="javascript:toggleOptions();" class="vst-advanced"><?=__('Basic options')?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</table>
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
84
web/templates/admin/edit_server_service.html
Normal file
84
web/templates/admin/edit_server_service.html
Normal file
|
@ -0,0 +1,84 @@
|
|||
<div class="l-center edit">
|
||||
<div class="l-sort clearfix">
|
||||
<div class="l-sort-toolbar clearfix float-left subtitle">
|
||||
<table class="width-100p">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/server/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="vstobjects" name="v_configure_server" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class="data-col2" width="600px">
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<?php print $v_config_path ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label" style="text-transform: capitalize;">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td class="step-top" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td class="step-top">
|
||||
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
|
@ -65,15 +65,10 @@
|
|||
<td>
|
||||
<select class="vst-list" name="v_ip">
|
||||
<?php
|
||||
foreach ($ips as $key => $value) {
|
||||
$display_ip = $key;
|
||||
if (!empty($value['NAT'])) $display_ip = $value['NAT'];
|
||||
$skey = "'".$display_ip."'";
|
||||
echo "\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"".htmlentities($display_ip)."\"";
|
||||
if ((!empty($v_ip)) && ( $display_ip == $v_ip ) || ( $skey == $v_ip )){
|
||||
echo ' selected';
|
||||
}
|
||||
echo ">".htmlentities($display_ip)."</option>\n";
|
||||
foreach ($ips as $ip => $value) {
|
||||
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$value['NAT']}");
|
||||
$ip_selected = ((!empty($v_ip) && $ip == $v_ip) || $v_ip == "'{$ip}'") ? 'selected' : '';
|
||||
echo "\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/schedule/backup/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Create Backup'))?>"></a>
|
||||
<a href="/schedule/backup/" class="l-sort__create-btn" title="<?=__('Create Backup')?>"></a>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<label for="toggle-all" class="check-label toggle-all"><?=__('toggle all')?></label>
|
||||
</td>
|
||||
<td class="step-right">
|
||||
<form action="/bulk/backup/" method="post">
|
||||
<form action="/bulk/backup/" method="post" id="objects">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<div class="l-select">
|
||||
<select name="action" id="">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/schedule/restore/?backup=<?=htmlentities($_GET['backup'])?>" class="l-sort__create-btn restore" title="<?=str_replace(' ', ' ', __('Restore All'))?>"></a>
|
||||
<a href="/schedule/restore/?backup=<?=htmlentities($_GET['backup'])?>" class="l-sort__create-btn restore" title="<?=__('Restore All')?>"></a>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/edit/backup/exclusions/" class="l-sort__create-btn edit" title="<?=str_replace(' ', ' ', __('Configure'))?>"></a>
|
||||
<a href="/edit/backup/exclusions/" class="l-sort__create-btn edit" title="<?=__('Configure')?>"></a>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -77,7 +77,7 @@
|
|||
<?
|
||||
if (empty($value)) echo __('no exclusions');
|
||||
foreach ($value as $ex_key => $ex_value) {
|
||||
echo '<b>'.$ex_key.':</b>'.$ex_value.'<br>';
|
||||
echo '<b>'.$ex_key.' </b>'.$ex_value.'<br>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/cron/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Cron Job'))?>"></a>
|
||||
<a href="/add/cron/" class="l-sort__create-btn" title="<?=__('Add Cron Job')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Command')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/db/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Database'))?>"></a>
|
||||
<a href="/add/db/" class="l-sort__create-btn" title="<?=__('Add Database')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Database')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/dns/" title="<?=str_replace(' ', ' ', __('Add DNS Domain'))?>" class="l-sort__create-btn"></a>
|
||||
<a href="/add/dns/" title="<?=__('Add DNS Domain')?>" class="l-sort__create-btn"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-expire" sort_as_int="1"><span class="name"><?=__('Expire')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/dns/?domain=<?=htmlentities($_GET['domain'])?>" title="<?=str_replace(' ', ' ', __('Add DNS Record'))?>" class="l-sort__create-btn"></a>
|
||||
<a href="/add/dns/?domain=<?=htmlentities($_GET['domain'])?>" title="<?=__('Add DNS Record')?>" class="l-sort__create-btn"></a>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/firewall/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Rule'))?>"></a>
|
||||
<a href="/add/firewall/" class="l-sort__create-btn" title="<?=__('Add Rule')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-action"><span class="name active"><?=__('Action')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-protocol"><span class="name"><?=__('Protocol')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/firewall/banlist/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Ban IP Address'))?>"></a>
|
||||
<a href="/add/firewall/banlist/" class="l-sort__create-btn" title="<?=__('Ban IP Address')?>"></a>
|
||||
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/ip/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add IP'))?>"></a>
|
||||
<a href="/add/ip/" class="l-sort__create-btn" title="<?=__('Add IP')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-ip"><span class="name"><?=__('ip')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/mail/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Mail Domain'))?>"></a>
|
||||
<a href="/add/mail/" class="l-sort__create-btn" title="<?=__('Add Mail Domain')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Domain')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/mail/?domain=<?=htmlentities($_GET['domain'])?>" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Mail Account'))?>"></a>
|
||||
<a href="/add/mail/?domain=<?=htmlentities($_GET['domain'])?>" class="l-sort__create-btn" title="<?=__('Add Mail Account')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Account')?></span><span class="up"> </span></li>
|
||||
|
@ -154,7 +154,7 @@ sort-star="<? if($_SESSION['favourites']['MAIL_ACC'][$key."@".$_GET['domain']] =
|
|||
<div class="l-unit__stat-cols clearfix">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Quota')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><? echo __($data[$key]['QUOTA']) ?></b>
|
||||
<b><?=__(humanize_usage_size($data[$key]['QUOTA'])) ?></b> <?=__(humanize_usage_measure($data[$key]['QUOTA'])) ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/package/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Package'))?>"></a>
|
||||
<a href="/add/package/" class="l-sort__create-btn" title="<?=__('Add Package')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Package Name')?></span><span class="up"> </span></li>
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/login/?loginas=<?=$data[$key]['USER']?>&token=<?=$_SESSION['token']?>""><?=__('login as')?> <i></i></a><span class="shortcut"> L</span></div>
|
||||
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/login/?loginas=<?=$data[$key]['USER']?>&token=<?=$_SESSION['token']?>"><?=__('login as')?> <i></i></a><span class="shortcut"> L</span></div>
|
||||
<? }
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/edit/server/" class="l-sort__create-btn edit" title="<?=str_replace(' ', ' ', __('Configure'))?>"></a>
|
||||
<a href="/edit/server/" class="l-sort__create-btn edit" title="<?=__('Configure')?>"></a>
|
||||
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
|
@ -53,6 +53,7 @@
|
|||
<!-- l-unit-toolbar__col -->
|
||||
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
||||
<div class="actions-panel clearfix">
|
||||
<div class="actions-panel__col actions-panel__configure shortcut-enter" key-action="href"><a href="/edit/server/"><?=__('configure')?> <i></i></a><span class="shortcut enter"> ↵</span></div>
|
||||
<div class="actions-panel__col actions-panel__restart shortcut-r" key-action="href"><a href="/restart/system/?hostname=<?php echo $sys['sysinfo']['HOSTNAME'] ?>"><?=__('restart')?> <i></i></a><span class="shortcut"> R</span></div>
|
||||
</div>
|
||||
<!-- /.actions-panel -->
|
||||
|
@ -136,6 +137,7 @@
|
|||
<!-- l-unit-toolbar__col -->
|
||||
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
||||
<div class="actions-panel clearfix">
|
||||
<div class="actions-panel__col actions-panel__configure shortcut-enter" key-action="href"><a href="/edit/server/<? echo $key ?>/"><?=__('configure')?> <i></i></a><span class="shortcut enter"> ↵</span></div>
|
||||
<div class="actions-panel__col actions-panel__<?=$action?> shortcut-s" key-action="href"><a href="/<?php echo $action ?>/service/?srv=<?=$key?>&token=<?=$_SESSION['token']?>"><?=__($action)?> <i></i></a><span class="shortcut"> S</span></div>
|
||||
<div class="actions-panel__col actions-panel__restart shortcut-r" key-action="href"><a href="/restart/service/?srv=<?=$key?>&token=<?=$_SESSION['token']?>"><?=__('restart')?> <i></i></a><span class="shortcut"> R</span></div>
|
||||
</div>
|
||||
|
@ -169,8 +171,7 @@
|
|||
<td>
|
||||
<div class="l-unit__stat-cols clearfix">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('CPU')?>: <b><?=$cpu?></b></div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right"><?=__('Memory')?>: <b><?=$data[$key]['MEM']?> <?=__('mb')?></b>
|
||||
</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right"><?=__('Memory')?>: <b><?=$data[$key]['MEM']?> <?=__('mb')?></b></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
<div class="l-sort clearfix noselect">
|
||||
<?php
|
||||
if ($user == 'admin') {
|
||||
echo '<a class="l-sort__create-btn" href="/add/user/" title="'.str_replace(' ', ' ', __('Add User')).'"></a>';
|
||||
echo '<a class="l-sort__create-btn" href="/add/user/" title="'.__('Add User').'"></a>';
|
||||
} else {
|
||||
echo '<a class="l-sort__create-btn" href="/add/web/" title="'.str_replace(' ', ' ', __('Add Web Domain')).'"></a>';
|
||||
echo '<a class="l-sort__create-btn" href="/add/web/" title="'.__('Add Web Domain').'"></a>';
|
||||
}
|
||||
?>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
|
@ -95,7 +95,7 @@ sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-disk="<?=$data[$key]['U_DI
|
|||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/login/?loginas=<?=$key?>&token=<?=$_SESSION['token']?>""><?=__('login as').' '.$key?> <i></i></a><span class="shortcut"> L</span></div>
|
||||
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/login/?loginas=<?=$key?>&token=<?=$_SESSION['token']?>"><?=__('login as').' '.$key?> <i></i></a><span class="shortcut"> L</span></div>
|
||||
<?}?>
|
||||
<div class="actions-panel__col actions-panel__edit shortcut-enter" key-action="href"><a href="/edit/user/?user=<?=$key?>&token=<?=$_SESSION['token']?>"><?=__('edit')?> <i></i></a><span class="shortcut enter"> ↵</span></div>
|
||||
<div class="actions-panel__col actions-panel__suspend shortcut-s" key-action="js">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/web/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Web Domain'))?>"></a>
|
||||
<a href="/add/web/" class="l-sort__create-btn" title="<?=__('Add Web Domain')?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Domain')?></span><span class="up"> </span></li>
|
||||
|
@ -178,7 +178,7 @@ sort-name="<?=$key?>" sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-dis
|
|||
</div>
|
||||
<!-- /.l-unit__name -->
|
||||
<div class="l-unit__ip">
|
||||
<?=str_replace('.', '<span>.</span>', $data[$key]['IP'])?>
|
||||
<?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$ips[$data[$key]['IP']]['NAT']}"; ?>
|
||||
</div>
|
||||
<!-- /.l-unit__ip -->
|
||||
<div class="l-unit__stats">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue