UI update

This commit is contained in:
Serghey Rodin 2015-06-03 02:31:03 +03:00
commit 527e4a9a62
139 changed files with 2046 additions and 124 deletions

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding Cron Job')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding database')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding DNS Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding DNS Record')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding Firewall Rule')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding IP Address to Banlist')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding IP address')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding Mail Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding Mail Account')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
@ -107,6 +107,7 @@
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_quota" <?php if (!empty($v_quota)) echo "value=".htmlentities($v_quota); ?>>
<img class="unlim-trigger" id="unlim-quota" src="/images/unlim.png" />
</td>
</tr>
<tr>
@ -152,4 +153,5 @@
</tr>
</table>
</form>
</div>
</div>
<script type="text/javascript" src="/js/pages/edit.package.js"></script>

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding Package')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding User')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Adding Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Backup Exclusions')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Cron Job')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Database')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing DNS Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing DNS Record')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Firewall Rule')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing IP Address')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Mail Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Mail Account')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
@ -97,6 +97,7 @@
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_quota" <?php if (!empty($v_quota)) {echo "value=".htmlentities($v_quota);} else { echo "value=0";}; ?>>
<img class="unlim-trigger" id="unlim-quota" src="/images/unlim.png" />
</td>
</tr>
<tr>
@ -160,4 +161,5 @@
</tr>
</table>
</form>
</div>
</div>
<script type="text/javascript" src="/js/pages/edit.mail_acc.js"></script>

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Package')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -0,0 +1,539 @@
<div class="l-center edit">
<div class="l-sort clearfix">
<div class="l-sort-toolbar clearfix float-left">
<span class="title edit"><b><?=__('Configuring Server')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
}
}
?>
</div>
</div>
<? display_error_block() ?>
</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']?>" />
<script type="text/javascript">
function elementHideShow(elementToHideOrShow) {
var el = document.getElementById(elementToHideOrShow);
if (el.style.display == "block") {
el.style.display = "none";
} else {
el.style.display = "block";
}
}
</script>
<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 __('Hostname') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_hostname" <?php if (!empty($v_hostname)) echo "value=".$v_hostname; ?>>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('Time Zone');?>
</td>
</tr>
<tr>
<td>
<select class="vst-list long-2" name="v_timezone">
<?php
foreach ($v_timezones as $key => $value) {
echo "\t\t\t\t<option value=\"".$key."\"";
if ((!empty($v_timezone)) && ( $key == $v_timezone)){
echo ' selected' ;
}
if ((!empty($v_timezone)) && ( $key == $_POST['v_timezone'])){
echo ' selected' ;
}
echo ">".$value."</option>\n";
}
?>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('Default Language');?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_language">
<?php
foreach ($languages as $key => $value) {
echo "\t\t\t\t<option value=\"".$value."\"";
if ((!empty($_SESSION['LANGUAGE'])) && ( $value == $_SESSION['LANGUAGE'])){
echo ' selected' ;
}
if ((!empty($_SESSION['LANGUAGE'])) && ( $value == $_POST['v_language'])){
echo ' selected' ;
}
echo ">".$value."</option>\n";
}
?>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('FileSystem Disk Quota');?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_quota">
<option value='no'><?php print __('no'); ?></option>
<option value='yes' <?php if($_SESSION['DISK_QUOTA'] == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('web');" class="vst-text">
<b><?php print __('WEB');?> <img src="/images/arrow.png"></b>
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="web">
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
<tr>
<td class="vst-text">
<?php print __('Proxy Server') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_proxy_system" value="<?php echo $_SESSION['PROXY_SYSTEM']; ?>" disabled>
<br><br>
</td>
</tr>
<?php } ?>
<tr>
<td class="vst-text">
<?php print __('Web Server') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_web_system" value="<?php echo $_SESSION['WEB_SYSTEM']; ?>" disabled>
<br><br>
</td>
</tr>
<?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
<tr>
<td class="vst-text">
<?php print __('Backend Server') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_web_backend" value="<?php echo $_SESSION['WEB_BACKEND']; ?>" disabled>
<br><br>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('dns');" class="vst-text">
<b><?php print __('DNS');?> <img src="/images/arrow.png"></b>
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="dns">
<tr>
<td class="vst-text">
<?php print __('DNS Server') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dns_system" value="<?php echo $_SESSION['DNS_SYSTEM']; ?>" disabled>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('DNS Cluster');?>
</td>
</tr>
<tr>
<td>
<?php if ($v_dns_cluster != 'yes') {?>
<select class="vst-list" name="v_dns_cluster" disabled>
<option value='no'><?php print __('no'); ?></option>
</select>
<?php } else { ?>
<textarea size="20" class="vst-textinput" name="v_dns_cluster"><?php foreach ($dns_cluster as $key => $value) echo $key . "\n"; ?></textarea>
<?php } ?>
<br><br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('mail');" class="vst-text">
<b><?php print __('MAIL');?> <img src="/images/arrow.png"></b>
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_mail_adv)) echo 'none';?> ;" id="mail">
<tr>
<td class="vst-text">
<?php print __('MAIL Server') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_mail_system" value="<?php echo $_SESSION['MAIL_SYSTEM']; ?>" disabled>
<br><br>
</td>
</tr>
<?php if (!empty($_SESSION['ANTIVIRUS_SYSTEM'])) { ?>
<tr>
<td class="vst-text">
<?php print __('Antivirus') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_antivirus_system" value="<?php echo $_SESSION['ANTIVIRUS_SYSTEM']; ?>" disabled>
<br><br>
</td>
</tr>
<?php } ?>
<?php if (!empty($_SESSION['ANTISPAM_SYSTEM'])) { ?>
<tr>
<td class="vst-text">
<?php print __('AntiSpam') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_antispam_system" value="<?php echo $_SESSION['ANTISPAM_SYSTEM']; ?>" disabled>
<br><br>
</td>
</tr>
<?php } ?>
<tr>
<td class="vst-text input-label">
<?php print __('NONE');?>
<br><br><br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('db');" class="vst-text">
<b><?php print __('DB');?> <img src="/images/arrow.png"></b>
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="db">
<tr>
<td class="vst-text input-label">
<?php print __('NONE');?>
<br><br><br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('backup');" class="vst-text">
<b><?php print __('BACKUP');?> <img src="/images/arrow.png"></b>
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_backup_adv)) echo 'none';?> ;" id="backup">
<tr>
<td class="vst-text">
<?php print __('Local backup') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_backup">
<option value='no'><?php print __('no'); ?></option>
<option value='yes' <?php if($v_backup == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Compression level') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_backup_gzip">
<option value='1' <?php if($v_backup_gzip == '1') echo 'selected' ?>>1</option>
<option value='2' <?php if($v_backup_gzip == '2') echo 'selected' ?>>2</option>
<option value='3' <?php if($v_backup_gzip == '3') echo 'selected' ?>>3</option>
<option value='4' <?php if($v_backup_gzip == '4') echo 'selected' ?>>4</option>
<option value='5' <?php if($v_backup_gzip == '5') echo 'selected' ?>>5</option>
<option value='6' <?php if($v_backup_gzip == '6') echo 'selected' ?>>6</option>
<option value='7' <?php if($v_backup_gzip == '7') echo 'selected' ?>>7</option>
<option value='8' <?php if($v_backup_gzip == '8') echo 'selected' ?>>8</option>
<option value='9' <?php if($v_backup_gzip == '9') echo 'selected' ?>>9</option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Directory') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_dir" <?php if (!empty($v_backup_dir)) echo "value=".$v_backup_dir; ?>>
<br><br>
</td>
</tr> <tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('remote_backup');" class="vst-text">
<?php print __('Remote backup');?> <img src="/images/arrow.png">
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_backup_remote_adv)) echo 'none';?> ;" id="remote_backup">
<td class="vst-text">
<?php print __('Protocol') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_backup_type">
<option value='ftp'><?php print __('ftp'); ?></option>
<option value='sftp' <?php if((!empty($v_backup_type)) && ($v_backup_type == 'sftp')) echo 'selected' ?> ><?php print __('sftp'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Host') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_host" <?php if (!empty($v_backup_host)) echo "value=".$v_backup_host; ?>>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Username') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_username" <?php if (!empty($v_backup_username)) echo "value=".$v_backup_username; ?>>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Password') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_password" <?php if (!empty($v_backup_password)) echo "value=".$v_backup_password; ?>>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Directory') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_bpath" <?php if (!empty($v_backup_bpath)) echo "value=".$v_backup_bpath; ?>>
<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="vst-text input-label step-top">
<a href="javascript:elementHideShow('vesta');" class="vst-text">
<b><?php print __('Vesta Control Panel Plugins');?> <img src="/images/arrow.png"></b>
</a>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="vesta">
<tr>
<td class="vst-text">
<?php print __('Version') ?>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_version" value="<?php echo $_SESSION['VERSION']; ?>" disabled>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Reseller Role') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_reseller">
<option value='no'><?php print __('no'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Web Config Editor') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_conf_editor">
<option value='no'><?php print __('no'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Template Manager') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_template_manager">
<option value='no'><?php print __('no'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('Backup Migration Manager') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_backup_manager">
<option value='no'><?php print __('no'); ?></option>
</select>
<br><br>
</td>
</tr>
<tr>
<td class="vst-text">
<?php print __('FileManager') ?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_filemanager">
<option value='no'><?php print __('no'); ?></option>
</select>
<br><br>
</td>
</tr>
</table>
</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" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>

View file

@ -4,7 +4,7 @@
<span class="title edit"><b><?=__('Editing Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,7 +4,7 @@
<span class="title"><b><?=__('Generating CSR')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";

View file

@ -4,6 +4,9 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="step-right">
<a class="vst" href="/list/backup/exclusions/"><?=__('backup exclusions')?></a>
</td>
<td class="l-sort-toolbar__search-box">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
@ -26,9 +29,6 @@
</div>
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
</td>
<td>
<a class="vst" href="/list/backup/exclusions/"><?=__('backup exclusions')?></a>
</td>
</tr>
</table>
</div>

View file

@ -4,6 +4,16 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="step-right">
&nbsp;
<?
if($panel[$user]['CRON_REPORTS'] == 'yes') {
echo '<a class="vst" href="/delete/cron/reports/?token='.$_SESSION['token'].'">'.__('turn off notifications').'</a>';
} else {
echo '<a class="vst" href="/add/cron/reports/?token='.$_SESSION['token'].'">'.__('turn on notifications').'</a>';
}
?>
</td>
<td class="l-sort-toolbar__search-box">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
@ -33,16 +43,6 @@
</div>
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
</td>
<td>
&nbsp;
<?
if($panel[$user]['CRON_REPORTS'] == 'yes') {
echo '<a class="vst" href="/delete/cron/reports/?token='.$_SESSION['token'].'">'.__('turn off notifications').'</a>';
} else {
echo '<a class="vst" href="/add/cron/reports/?token='.$_SESSION['token'].'">'.__('turn on notifications').'</a>';
}
?>
</td>
</tr>
</table>
</div>

View file

@ -5,7 +5,36 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<?
$mysql = 0;
$pgsql = 0;
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
foreach ($data as $key => $value) {
if ($data[$key]['TYPE'] == 'mysql'){
$mysql = 1;
$db_admin_link = "http://".$http_host."/phpmyadmin/";
if (!empty($_SESSION['DB_PMA_URL']))
$db_admin_link = $_SESSION['DB_PMA_URL'];
}
if ($data[$key]['TYPE'] == 'pgsql'){
$pgsql = 1;
$db_admin_link = "http://".$http_host."/phppgadmin/";
if (!empty($_SESSION['DB_PGA_URL']))
$db_admin_link = $_SESSION['DB_PGA_URL'];
}
}
if($mysql){
echo '<td class="step-right"><a class="vst" href="'.$db_admin_link.'">phpMyAdmin</td>';
}
if($pgsql){
echo '<td class="step-right"><a class="vst" href="'.$db_admin_link.'">phpPgAdmin</td>';
}
?>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -83,7 +112,6 @@
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
<div class="actions-panel clearfix">
<div class="actions-panel__col actions-panel__edit"><a href="/edit/db/?database=<?=$key?>"><?=__('edit')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__db"><a href="<?=$db_admin_link?>" target="_blank"><?=__('%s',$db_admin)?> <i></i></a></div>
<div class="actions-panel__col actions-panel__suspend">
<a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_<?=$spnd_action?>">
<?=__($spnd_action)?> <i class="do_<?=$spnd_action?>"></i>
@ -140,7 +168,7 @@
</td>
<td>
<div class="l-unit__stat-cols clearfix">
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('User')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('User')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=__($data[$key]['DBUSER'])?></b>
</div>
@ -148,7 +176,7 @@
</td>
<td>
<div class="l-unit__stat-cols clearfix last">
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('Host')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Host')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=$data[$key]['HOST']?></b>
</div>
@ -159,7 +187,7 @@
<td></td>
<td>
<div class="l-unit__stat-cols clearfix">
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('Charset')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Charset')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=$data[$key]['CHARSET']?></b>
</div>
@ -167,7 +195,7 @@
</td>
<td>
<div class="l-unit__stat-cols clearfix last">
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('Type')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Type')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=$data[$key]['TYPE']?></b>
</div>

View file

@ -107,7 +107,7 @@
<!-- /.l-unit__col -->
<div class="l-unit__col l-unit__col--right">
<div class="l-unit__name">
<?=$key?> <? if(!empty($data[$key]['SRC'])) echo "<span>⇢ ".$data[$key]['SRC']."</span>";?>
<?=$key?> <? if(!empty($data[$key]['SRC'])) echo "<span>⇢ ".$data[$key]['SRC']."</span>&nbsp; &nbsp; "; if($data[$key]['RECORDS']) echo '<span>/ '.$data[$key]['RECORDS'].'</span>';?>
</div>
<div class="l-unit__ip">
<?=str_replace('.', '&nbsp;.&nbsp;', $data[$key]['IP'])?>
@ -143,7 +143,7 @@
<tr>
<td>
<div class="l-unit__stat-cols clearfix last">
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('Expire')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Expire')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=strftime("%d %b %Y", strtotime($data[$key]['EXP']))?></b>
</div>

View file

@ -5,7 +5,12 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<td class="step-right">
<? if(!empty($_SESSION['FIREWALL_EXTENSION'])) {
echo '<a class="vst" href="/list/firewall/banlist/"> '.__('list fail2ban').'</a>';
} ?>
</td>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -27,11 +32,6 @@
</div>
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
</td>
<td>
<? if(!empty($_SESSION['FIREWALL_EXTENSION'])) {
echo '[<a class="vst" href="/list/firewall/banlist/"> '.__('list fail2ban').'</a>]';
} ?>
</td>
</tr>
</table>
</div>

View file

@ -5,7 +5,15 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<td class="step-right">
<?
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$webmail = "http://".$http_host."/webmail/";
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
?>
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
</td>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -83,7 +91,6 @@
<div class="actions-panel clearfix">
<div class="actions-panel__col actions-panel__logs"><a href="?domain=<?=$key?>"><?=__('list accounts',$data[$key]['ACCOUNTS'])?> <i></i></a></div>
<div class="actions-panel__col actions-panel__add"><a href="/add/mail/?domain=<?=$key?>"><?=__('add account')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__mail"><a href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__edit"><a href="/edit/mail/?domain=<?=$key?>"><?=__('edit')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__suspend">
<a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_<?=$spnd_action?>">
@ -121,7 +128,7 @@
<!-- /.l-unit__col -->
<div class="l-unit__col l-unit__col--right">
<div class="l-unit__name separate">
<?=$key?>
<?=$key?> <? if($data[$key]['ACCOUNTS']) echo '<span>/ '.$data[$key]['ACCOUNTS'].'</span>';?>
</div>
<!-- /.l-unit__name -->
<div class="l-unit__stats">

View file

@ -4,7 +4,15 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<td class="step-right">
<?
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$webmail = "http://".$http_host."/webmail/";
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
?>
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
</td>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -141,7 +149,7 @@
<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><?=$data[$key]['QUOTA']?></b>
<b><? echo __($data[$key]['QUOTA']) ?></b>
</div>
</div>
</td>

View file

@ -1,5 +1,7 @@
<div class="l-center">
<div class="l-sort clearfix noselect">
<a href="/edit/server/" class="l-sort__create-btn edit" title="<?=str_replace(' ', '&nbsp;', __('Configure'))?>"></a>
<div class="l-sort-toolbar clearfix">
<table>
<tr>

View file

@ -3,7 +3,14 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<td class="step-right">
<? if($autoupdate == 'Enabled') {
echo '<a class="vst" href="/delete/cron/autoupdate/&token='.$_SESSION['token'].'">'.__('disable autoupdate').'</a>';
} else {
echo '<a class="vst" href="/add/cron/autoupdate/&token='.$_SESSION['token'].'">'.__('enable autoupdate').'</a>';
} ?>
</td>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -28,13 +35,6 @@
</div>
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
</td>
<td class="step-left">
<? if($autoupdate == 'Enabled') {
echo '<a class="vst" href="/delete/cron/autoupdate/&token=<?=$_SESSION['token']?>"> '.__('disable autoupdate').'</a>';
} else {
echo '<a class="vst" href="/add/cron/autoupdate/&token=<?=$_SESSION['token']?>">'.__('enable autoupdate').'</a>';
} ?>
</td>
</tr>
</table>
</div>

View file

@ -34,18 +34,18 @@
if (location.href.search(/list/) != -1) {
var shift_select_ref = $('body').finderSelect({children: '.l-unit',
'onFinish': function(evt) {
var ref = $(evt.target);
/*var ref = $(evt.target);
$('.l-content').find('.l-unit .ch-toggle').attr('checked', false);
$('.l-content').find('.l-unit.selected .ch-toggle').attr('checked', true);
if ($('.l-content').find('.l-unit.selected').length == $('.l-content').find('.l-unit').length) {
$('.toggle-all').addClass('clicked-on');
}
}*/
},
'toggleAllHook': function() {
if ($('.l-unit').length == $('.ch-toggle:checked').length) {
/*if ($('.l-unit').length == $('.ch-toggle:checked').length) {
$('.l-unit.selected').removeClass('selected');
$('.ch-toggle').attr('checked', false);
$('#toggle-all').attr('checked', false);
@ -53,7 +53,7 @@
else {
$('.ch-toggle').attr('checked', true);
$('#toggle-all').attr('checked', true);
}
}*/
}
});
$('table').on('mousedown', 'td', function(e) {

View file

@ -53,7 +53,7 @@
});
$('.l-sort-toolbar__search-box').hover(function(){
$('.l-sort-toolbar__search').hover(function(){
clearTimeout(search_display_interval);
clearTimeout(search_hover_interval);
search_display_interval = setTimeout(function(){$('.search-input').addClass('activated');}, 150);
@ -171,5 +171,6 @@
</script>
<script type="text/javascript" src="/js/app.js"></script>
<script type="text/javascript" src="/js/templates.js"></script>
<script type="text/javascript" src="/js/i18n.js.php"></script>
</head>
<body class="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?>">

View file

@ -4,10 +4,10 @@
<span class="title edit"><b><?=__('Editing DNS Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
echo "<span class=\"vst-ok\"> → ".htmlentities($_SESSION['ok_msg'])."</span>";
}
}
?>

View file

@ -4,10 +4,10 @@
<span class="title edit"><b><?=__('Editing User')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
echo "<span class=\"vst-ok\"> → ".htmlentities($_SESSION['ok_msg'])."</span>";
}
}
?>

View file

@ -4,10 +4,10 @@
<span class="title edit"><b><?=__('Editing Domain')?></b></span>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
echo "<span class=\"vst-ok\"> → ".htmlentities($_SESSION['ok_msg'])."</span>";
}
}
?>

View file

@ -4,6 +4,16 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="step-right">
<?
if($panel[$user]['CRON_REPORTS'] == 'yes') {
echo '<a class="vst" href="/delete/cron/reports/?token='.$_SESSION['token'].'">'.__('turn off notifications').'</a>';
} else {
echo '<a class="vst" href="/add/cron/reports/?token='.$_SESSION['token'].'">'.__('turn on notifications').'</a>';
}
?>
</td>
<td class="l-sort-toolbar__search-box">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
@ -33,16 +43,6 @@
</div>
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
</td>
<td>
&nbsp;
<?
if($panel[$user]['CRON_REPORTS'] == 'yes') {
echo '<a class="vst" href="/delete/cron/reports/?token='.$_SESSION['token'].'">'.__('turn off notifications').'</a>';
} else {
echo '<a class="vst" href="/add/cron/reports/?token='.$_SESSION['token'].'">'.__('turn on notifications').'</a>';
}
?>
</td>
</tr>
</table>
</div>

View file

@ -5,6 +5,33 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<?
$mysql = 0;
$pgsql = 0;
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
foreach ($data as $key => $value) {
if ($data[$key]['TYPE'] == 'mysql'){
$mysql = 1;
$db_admin_link = "http://".$http_host."/phpmyadmin/";
if (!empty($_SESSION['DB_PMA_URL'])){
$db_admin_link = $_SESSION['DB_PMA_URL'];
}
echo '<td class="step-right"><a class="vst" href="'.$db_admin_link.'">phpMyAdmin</td>';
}
if ($data[$key]['TYPE'] == 'pgsql'){
$pgsql = 1;
$db_admin_link = "http://".$http_host."/phppgadmin/";
if (!empty($_SESSION['DB_PGA_URL'])){
$db_admin_link = $_SESSION['DB_PGA_URL'];
}
echo '<td class="step-right"><a class="vst" href="'.$db_admin_link.'">phpPgAdmin</td>';
}
}
?>
<td class="l-sort-toolbar__search-box">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />

View file

@ -107,7 +107,7 @@
<!-- /.l-unit__col -->
<div class="l-unit__col l-unit__col--right">
<div class="l-unit__name">
<?=$key?> <? if(!empty($data[$key]['SRC'])) echo "<span>⇢ ".$data[$key]['SRC']."</span>";?>
<?=$key?> <? if(!empty($data[$key]['SRC'])) echo "<span>⇢ ".$data[$key]['SRC']."</span>&nbsp; &nbsp; "; if($data[$key]['RECORDS']) echo '<span>/ '.$data[$key]['RECORDS'].'</span>';?>
</div>
<div class="l-unit__ip">
<?=str_replace('.', '&nbsp;.&nbsp;', $data[$key]['IP'])?>

View file

@ -5,7 +5,15 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<td class="step-right">
<?
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$webmail = "http://".$http_host."/webmail/";
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
?>
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
</td>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -83,7 +91,6 @@
<div class="actions-panel clearfix">
<div class="actions-panel__col actions-panel__logs"><a href="?domain=<?=$key?>"><?=__('list accounts',$data[$key]['ACCOUNTS'])?> <i></i></a></div>
<div class="actions-panel__col actions-panel__add"><a href="/add/mail/?domain=<?=$key?>"><?=__('add account')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__mail"><a href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__edit"><a href="/edit/mail/?domain=<?=$key?>"><?=__('edit')?> <i></i></a></div>
<div class="actions-panel__col actions-panel__suspend">
<a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_<?=$spnd_action?>">
@ -121,7 +128,7 @@
<!-- /.l-unit__col -->
<div class="l-unit__col l-unit__col--right">
<div class="l-unit__name separate">
<?=$key?>
<?=$key?> <? if($data[$key]['ACCOUNTS']) echo '<span>/ '.$data[$key]['ACCOUNTS'].'</span>';?>
</div>
<!-- /.l-unit__name -->
<div class="l-unit__stats">

View file

@ -4,7 +4,15 @@
<div class="l-sort-toolbar clearfix">
<table>
<tr>
<td class="l-sort-toolbar__search-box">
<td class="step-right">
<?
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$webmail = "http://".$http_host."/webmail/";
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
?>
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
</td>
<td class="l-sort-toolbar__search-box step-left">
<form action="/search/" method="get">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
@ -140,7 +148,7 @@
<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><?=$data[$key]['QUOTA']?></b>
<b><? echo __($data[$key]['QUOTA'])?></b>
</div>
</div>
</td>