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