Skip to content

Commit 3b3836f

Browse files
committed
fixes from dalaylama for 0.9.7
1 parent ef12621 commit 3b3836f

File tree

4 files changed

+32
-8
lines changed

4 files changed

+32
-8
lines changed

web/add/web/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
if (empty($_POST['v_template'])) $errors[] = 'template';
2222
if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_crt']))) $errors[] = 'ssl certificate';
2323
if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_key']))) $errors[] = 'ssl key';
24-
if ((!empty($_POST['v_aliases'])) || (!empty($_POST['v_elog'])) || (!empty($_POST['v_ssl'])) || (!empty($_POST['v_ssl_crt'])) || (!empty($_POST['v_ssl_key'])) || (!empty($_POST['v_ssl_ca'])) || ($_POST['v_stats'] != 'none')) $v_adv = 'yes';
24+
if ((!empty($_POST['v_aliases'])) || (!empty($_POST['v_elog'])) || (!empty($_POST['v_ssl'])) || (!empty($_POST['v_ssl_crt'])) || (!empty($_POST['v_ssl_key'])) || (!empty($_POST['v_ssl_ca'])) || ($_POST['v_stats'] != 'none') || (empty($_POST['v_nginx']))) $v_adv = 'yes';
2525

2626
// Protect input
2727
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
@@ -30,9 +30,9 @@
3030
$v_template = escapeshellarg($_POST['v_template']);
3131
if (empty($_POST['v_dns'])) $v_dns = 'off';
3232
if (empty($_POST['v_mail'])) $v_mail = 'off';
33+
if (empty($_POST['v_nginx'])) $v_nginx = 'off';
3334
$v_aliases = $_POST['v_aliases'];
3435
$v_elog = $_POST['v_elog'];
35-
$v_nginx = $_POST['v_nginx'];
3636
$v_ssl = $_POST['v_ssl'];
3737
$v_ssl_crt = $_POST['v_ssl_crt'];
3838
$v_ssl_key = $_POST['v_ssl_key'];
@@ -123,7 +123,7 @@
123123
}
124124

125125
// Add Nginx
126-
if ((!empty($_POST['v_nginx'])) && (empty($_SESSION['error_msg']))) {
126+
if (($_POST['v_nginx'] == 'on') && (empty($_SESSION['error_msg']))) {
127127
$nginx_ext = "'jpg,jpeg,gif,png,ico,css,zip,tgz,gz,rar,bz2,doc,xls,exe,pdf,ppt,txt,tar,wav,bmp,rtf,js,mp3,avi,mpeg,html,htm'";
128128
exec (VESTA_CMD."v_add_web_domain_nginx ".$user." ".$v_domain." 'default' ".$nginx_ext." 'no'", $output, $return_var);
129129
if ($return_var != 0) {

web/templates/admin/add_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Error Logging</td></tr>
6565
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_elog" <?php if (!empty($v_elog)) echo "checked=yes" ?>></tr>
6666
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Nginx Support</td></tr>
67-
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (!empty($v_nginx)) echo "checked=yes" ?>></tr>
67+
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_nginx" <?php if (empty($v_nginx)) echo "checked=yes" ?>></tr>
6868
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Support</td></tr>
6969
<tr><td><input type="checkbox" size="20" class="add-checkbox" name="v_ssl" <?php if (!empty($v_ssl)) echo "checked=yes" ?>></tr>
7070
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SSL Certificate</td></tr>

web/templates/admin/list_rrd.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
<td class="data-dotted" width="830px" style="vertical-align:top;">
2222
<table width="830px"><tr>
2323
<td></td>
24-
<td class="data-controls" width="80px"><img src="/images/download.png" width="8px" height="8px"><a href="#"> download</a></td>
25-
<td class="data-controls" width="70px"><img src="/images/delete.png" width="7px" height="7px"><a href="#"> update</a></td>
24+
<td class="data-controls" width="80px"><img src="/images/download.png" width="8px" height="8px"><a href="/rrd/<?php echo $data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png" ?>" target="_blank"> download</a></td>
2625
</tr></table>
2726

2827
<table class="data-col2" width="830px">

web/templates/header.html

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,16 @@
169169
.nav-slink {
170170
letter-spacing: -1.2px;
171171
font-size: 16pt;
172-
color: #8B99A2;
172+
color: #7ba1aa;
173173
font-family: Arial, sans-serif;
174174
text-decoration: none;
175175
}
176176

177+
.nav-slink:active {
178+
color: #68797d;
179+
text-decoration: underline;
180+
}
181+
177182
.sub-menu {
178183
margin-left: auto;
179184
margin-right: auto;
@@ -519,9 +524,29 @@
519524
}
520525

521526
.add-button {
527+
cursor: pointer;
528+
background-color: #F1F1F1;
529+
border: 1px solid #ACACAC;
530+
border-radius: 3px 3px 3px 3px;
531+
color: #555555;
532+
font-size: 12px;
533+
font-weight: bold;
534+
padding: 3px 16px;
535+
width: 105px;
522536
padding: 4px;
523537
margin: 0 6px 0 0;
524-
font-size: 12pt;
538+
}
539+
540+
button {
541+
cursor: pointer;
542+
background-color: #F1F1F1;
543+
border: 1px solid #ACACAC;
544+
border-radius: 3px 3px 3px 3px;
545+
color: #555555;
546+
font-size: 12px;
547+
font-weight: bold;
548+
padding: 3px 16px;
549+
width: 105px;
525550
}
526551

527552
.genpass {

0 commit comments

Comments
 (0)