Skip to content

Commit 42be38f

Browse files
committed
Recreated backup-html-file and show it if vhost-type=domain
1 parent 49d6313 commit 42be38f

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

interface/web/sites/form/web_vhost_domain.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
$wildcard_available = true;
8383
if($vhostdomain_type != 'domain') $wildcard_available = false;
8484
$ssl_available = true;
85-
$backup_available = true;
85+
$backup_available = ($vhostdomain_type == 'domain');
8686
if(!$app->auth->is_admin()) {
8787
$client_group_id = $_SESSION["s"]["user"]["default_group"];
8888
$client = $app->db->queryOneRecord("SELECT limit_wildcard, limit_ssl, limit_backup FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<h2><tmpl_var name="list_head_txt"></h2>
2+
<p><tmpl_var name="list_desc_txt"></p>
3+
4+
<tmpl_if name="config_error_msg">
5+
<div style="background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px;">
6+
<p style="font-face:bold">{tmpl_var name='configuration_error_txt'}</p>
7+
<div>
8+
<div style="float:left;width:150px;">{tmpl_var name='config_error_tstamp'} :&nbsp;</div><div style="padding-left:150px;">{tmpl_var name='config_error_msg'}</div>
9+
</div>
10+
</div>
11+
</tmpl_if>
12+
13+
<div class="panel panel_web_domain">
14+
15+
<div class="pnl_formsarea">
16+
<fieldset class="inlineLabels"><legend>Backup</legend>
17+
<div class="ctrlHolder">
18+
<label for="backup_interval">{tmpl_var name='backup_interval_txt'}</label>
19+
<select name="backup_interval" id="backup_interval" class="selectInput">
20+
{tmpl_var name='backup_interval'}
21+
</select>
22+
</div>
23+
<div class="ctrlHolder">
24+
<label for="backup_copies">{tmpl_var name='backup_copies_txt'}</label>
25+
<select name="backup_copies" id="backup_copies" class="selectInput">
26+
{tmpl_var name='backup_copies'}
27+
</select>
28+
</div>
29+
<div class="ctrlHolder">
30+
<label for="backup_excludes">{tmpl_var name='backup_excludes_txt'}</label>
31+
<input name="backup_excludes" id="backup_excludes" value="{tmpl_var name='backup_excludes'}" size="30" type="text" class="textInput" />&nbsp;{tmpl_var name='backup_excludes_note_txt'}
32+
</div>
33+
</fieldset>
34+
35+
{tmpl_var name='backup_records'}
36+
37+
<input type="hidden" name="id" value="{tmpl_var name='id'}">
38+
39+
<div class="buttonHolder buttons">
40+
<button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onclick="submitForm('pageForm','sites/web_vhost_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
41+
<button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('sites/web_vhost_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
42+
</div>
43+
</div>
44+
45+
</div>

0 commit comments

Comments
 (0)