commit | author | age
|
021982
|
1 |
<h2><tmpl_var name="list_head_txt"></h2> |
T |
2 |
<p><tmpl_var name="list_desc_txt"></p> |
|
3 |
|
7b47c0
|
4 |
<tmpl_if name="config_error_msg"> |
T |
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'} : </div><div style="padding-left:150px;">{tmpl_var name='config_error_msg'}</div> |
|
9 |
</div> |
|
10 |
</div> |
|
11 |
</tmpl_if> |
|
12 |
|
021982
|
13 |
<div class="panel panel_web_domain"> |
T |
14 |
|
0e2694
|
15 |
<div class="pnl_formsarea"> |
C |
16 |
<fieldset class="inlineLabels"> |
|
17 |
<input name="document_root" id="document_root" value="{tmpl_var name='document_root'}" size="30" maxlength="255" type="hidden" class="textInput" /> |
|
18 |
<div class="ctrlHolder"> |
3d96c5
|
19 |
<label for="added_date">{tmpl_var name='added_date_txt'}</label> |
TB |
20 |
<input name="added_date" id="added_date" value="{tmpl_var name='added_date'}" size="10" maxlength="255" type="text" class="textInput" /> |
|
21 |
</div> |
|
22 |
<div class="ctrlHolder"> |
|
23 |
<label for="added_by">{tmpl_var name='added_by_txt'}</label> |
|
24 |
<input name="added_by" id="added_by" value="{tmpl_var name='added_by'}" size="10" maxlength="255" type="text" class="textInput" /> |
|
25 |
</div> |
|
26 |
<div class="ctrlHolder"> |
0e2694
|
27 |
<label for="system_user">{tmpl_var name='system_user_txt'}</label> |
C |
28 |
<label for="system_user">{tmpl_var name='system_user'}</label> |
|
29 |
<input name="system_user" id="system_user" value="{tmpl_var name='system_user'}" type="hidden" /> |
|
30 |
</div> |
|
31 |
<div class="ctrlHolder"> |
|
32 |
<label for="system_group">{tmpl_var name='system_group_txt'}</label> |
|
33 |
<label for="system_group">{tmpl_var name='system_group'}</label> |
|
34 |
<input name="system_group" id="system_group" value="{tmpl_var name='system_group'}" type="hidden" /> |
|
35 |
</div> |
|
36 |
<div class="ctrlHolder apache"> |
|
37 |
<label for="allow_override">{tmpl_var name='allow_override_txt'}</label> |
|
38 |
<input name="allow_override" id="allow_override" value="{tmpl_var name='allow_override'}" size="30" maxlength="255" type="text" class="textInput" /> |
|
39 |
</div> |
|
40 |
<div class="phpfpm"> |
|
41 |
<div class="ctrlHolder"> |
|
42 |
<p class="label">{tmpl_var name='php_fpm_use_socket_txt'}</p> |
|
43 |
<div class="multiField"> |
|
44 |
{tmpl_var name='php_fpm_use_socket'} |
|
45 |
</div> |
|
46 |
</div> |
|
47 |
<div class="ctrlHolder"> |
|
48 |
<label for="pm">{tmpl_var name='pm_txt'}</label> |
|
49 |
<select name="pm" id="pm" class="selectInput"> |
|
50 |
{tmpl_var name='pm'} |
|
51 |
</select> |
|
52 |
</div> |
|
53 |
<div class="ctrlHolder pm_ondemand" style="background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px;"> |
|
54 |
{tmpl_var name='pm_ondemand_hint_txt'} |
|
55 |
</div> |
|
56 |
<div class="ctrlHolder"> |
|
57 |
<label for="pm_max_children">{tmpl_var name='pm_max_children_txt'}</label> |
d5486a
|
58 |
<input name="pm_max_children" id="pm_max_children" value="{tmpl_var name='pm_max_children'}" size="6" maxlength="6" type="text" class="textInput formLengthLimit" /> |
0e2694
|
59 |
</div> |
C |
60 |
<div class="ctrlHolder pm_dynamic"> |
|
61 |
<label for="pm_start_servers">{tmpl_var name='pm_start_servers_txt'}</label> |
d5486a
|
62 |
<input name="pm_start_servers" id="pm_start_servers" value="{tmpl_var name='pm_start_servers'}" size="6" maxlength="6" type="text" class="textInput formLengthLimit" /> |
0e2694
|
63 |
</div> |
C |
64 |
<div class="ctrlHolder pm_dynamic"> |
|
65 |
<label for="pm_min_spare_servers">{tmpl_var name='pm_min_spare_servers_txt'}</label> |
d5486a
|
66 |
<input name="pm_min_spare_servers" id="pm_min_spare_servers" value="{tmpl_var name='pm_min_spare_servers'}" size="6" maxlength="6" type="text" class="textInput formLengthLimit" /> |
0e2694
|
67 |
</div> |
C |
68 |
<div class="ctrlHolder pm_dynamic"> |
|
69 |
<label for="pm_max_spare_servers">{tmpl_var name='pm_max_spare_servers_txt'}</label> |
d5486a
|
70 |
<input name="pm_max_spare_servers" id="pm_max_spare_servers" value="{tmpl_var name='pm_max_spare_servers'}" size="6" maxlength="6" type="text" class="textInput formLengthLimit" /> |
0e2694
|
71 |
</div> |
C |
72 |
<div class="ctrlHolder pm_ondemand"> |
|
73 |
<label for="pm_process_idle_timeout">{tmpl_var name='pm_process_idle_timeout_txt'}</label> |
d5486a
|
74 |
<input name="pm_process_idle_timeout" id="pm_process_idle_timeout" value="{tmpl_var name='pm_process_idle_timeout'}" size="6" maxlength="6" type="text" class="textInput formLengthLimit" /> s |
0e2694
|
75 |
</div> |
C |
76 |
<div class="ctrlHolder"> |
|
77 |
<label for="pm_max_requests">{tmpl_var name='pm_max_requests_txt'}</label> |
d5486a
|
78 |
<input name="pm_max_requests" id="pm_max_requests" value="{tmpl_var name='pm_max_requests'}" size="6" maxlength="6" type="text" class="textInput formLengthLimit" /> |
0e2694
|
79 |
</div> |
C |
80 |
</div> |
615a0a
|
81 |
<div class="ctrlHolder php"> |
0e2694
|
82 |
<label for="php_open_basedir">{tmpl_var name='php_open_basedir_txt'}</label> |
C |
83 |
<input name="php_open_basedir" id="php_open_basedir" value="{tmpl_var name='php_open_basedir'}" size="30" type="text" class="textInput" style="width:400px;" /> |
|
84 |
</div> |
615a0a
|
85 |
<div class="ctrlHolder php"> |
0e2694
|
86 |
<label for="custom_php_ini">{tmpl_var name='custom_php_ini_txt'}</label> |
ef55b5
|
87 |
<textarea name="custom_php_ini" id="custom_php_ini" rows='10' cols='50' style="width:400px;">{tmpl_var name='custom_php_ini'}</textarea> <b>{tmpl_var name="available_php_directive_snippets_txt"}</b><br><br> {tmpl_var name="php_directive_snippets_txt"} |
0e2694
|
88 |
</div> |
C |
89 |
<div class="ctrlHolder apache"> |
|
90 |
<label for="apache_directives">{tmpl_var name='apache_directives_txt'}</label> |
ebbe63
|
91 |
<textarea name="apache_directives" id="apache_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='apache_directives'}</textarea> <b>{tmpl_var name="available_apache_directive_snippets_txt"}</b><br><br> {tmpl_var name="apache_directive_snippets_txt"}<br>----<br><b> {tmpl_var name='variables_txt'}:</b> <a href="javascript:void(0);" class="addPlaceholder">{DOCROOT}</a> |
0e2694
|
92 |
</div> |
C |
93 |
<div class="ctrlHolder nginx"> |
|
94 |
<label for="nginx_directives">{tmpl_var name='nginx_directives_txt'}</label> |
c02d3f
|
95 |
<textarea name="nginx_directives" id="nginx_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='nginx_directives'}</textarea> <b>{tmpl_var name="available_nginx_directive_snippets_txt"}</b><br><br> {tmpl_var name="nginx_directive_snippets_txt"}<br>----<br><b> {tmpl_var name='variables_txt'}:</b> <a href="javascript:void(0);" class="addPlaceholder">{DOCROOT}</a>, <a href="javascript:void(0);" class="addPlaceholder">{FASTCGIPASS}</a> |
0e2694
|
96 |
</div> |
bfcdef
|
97 |
<div class="ctrlHolder proxy"> |
T |
98 |
<label for="proxy_directives">{tmpl_var name='proxy_directives_txt'}</label> |
|
99 |
<textarea name="proxy_directives" id="proxy_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='proxy_directives'}</textarea> <b>{tmpl_var name="available_proxy_directive_snippets_txt"}</b><br><br> {tmpl_var name="proxy_directive_snippets_txt"} |
|
100 |
</div> |
0e2694
|
101 |
</fieldset> |
021982
|
102 |
|
0e2694
|
103 |
<input type="hidden" name="id" value="{tmpl_var name='id'}"> |
021982
|
104 |
|
0e2694
|
105 |
<div class="buttonHolder buttons"> |
73813a
|
106 |
<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> |
MC |
107 |
<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> |
0e2694
|
108 |
</div> |
021982
|
109 |
</div> |
0e2694
|
110 |
|
021982
|
111 |
</div> |
0ae8da
|
112 |
<script language="JavaScript" type="text/javascript"> |
0e2694
|
113 |
var webId = jQuery('input[name="id"]').val(); |
C |
114 |
var serverId; |
|
115 |
getServerId(); |
|
116 |
adjustForm(); |
0ae8da
|
117 |
|
0e2694
|
118 |
var pm = jQuery('#pm').val(); |
C |
119 |
pmMode(pm); |
|
120 |
jQuery('#pm').change(function(){ |
|
121 |
pm = jQuery(this).val(); |
|
122 |
pmMode(pm); |
|
123 |
}); |
dd7ce4
|
124 |
|
0e2694
|
125 |
function pmMode(pm){ |
C |
126 |
switch(pm){ |
|
127 |
case "static": |
|
128 |
jQuery('.pm_dynamic').add('.pm_ondemand').hide(); |
|
129 |
jQuery('.pm_static').show(); |
|
130 |
break; |
|
131 |
case "dynamic": |
|
132 |
jQuery('.pm_static').add('.pm_ondemand').hide(); |
|
133 |
jQuery('.pm_dynamic').show(); |
|
134 |
break; |
|
135 |
case "ondemand": |
|
136 |
jQuery('.pm_static').add('.pm_dynamic').hide(); |
|
137 |
jQuery('.pm_ondemand').show(); |
|
138 |
break; |
|
139 |
} |
|
140 |
} |
dd7ce4
|
141 |
|
0e2694
|
142 |
function getServerId(){ |
C |
143 |
jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {web_id : webId, type : "getserverid"}, function(data) { |
|
144 |
serverId = data.serverid; |
|
145 |
}); |
|
146 |
} |
0ae8da
|
147 |
|
0e2694
|
148 |
function adjustForm(){ |
C |
149 |
jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {server_id : serverId, type : "getservertype"}, function(data) { |
|
150 |
if(data.servertype == "nginx"){ |
|
151 |
jQuery('.nginx').show(); |
|
152 |
jQuery('.apache').hide(); |
|
153 |
} else { |
|
154 |
jQuery('.nginx').hide(); |
|
155 |
jQuery('.apache').show(); |
|
156 |
} |
|
157 |
}); |
|
158 |
jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {web_id : webId, type : "getphptype"}, function(data) { |
|
159 |
if(data.phptype == "php-fpm"){ |
|
160 |
jQuery('.phpfpm').show(); |
|
161 |
} else { |
|
162 |
jQuery('.phpfpm').hide(); |
|
163 |
} |
615a0a
|
164 |
if(data.phptype == "no"){ |
T |
165 |
jQuery('.php').hide(); |
|
166 |
} else { |
|
167 |
jQuery('.php').show(); |
|
168 |
} |
0e2694
|
169 |
}); |
bfcdef
|
170 |
jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {web_id : webId, type : "getredirecttype"}, function(data) { |
T |
171 |
if(data.redirecttype == "proxy"){ |
|
172 |
jQuery('.proxy').show(); |
|
173 |
} else { |
|
174 |
jQuery('.proxy').hide(); |
|
175 |
} |
|
176 |
}); |
0e2694
|
177 |
} |
0ae8da
|
178 |
|
F |
179 |
</script> |