server_config_web_edit.htm 12.8 KB
Newer Older
1 2 3 4 5 6 7
<h2><tmpl_var name="list_head_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p>

<div class="panel panel_server_config">
  
  <div class="pnl_formsarea">
    <fieldset class="inlineLabels">
Falko Timme's avatar
Falko Timme committed
8 9 10
		<div class="ctrlHolder">
				<p class="label">{tmpl_var name='server_type_txt'}</p>
					<div class="multiField">
11
						<select name="server_type" id="server_type" class="selectInput">
Falko Timme's avatar
Falko Timme committed
12 13 14 15
					{tmpl_var name='server_type'}
				</select>
					</div>
			</div>
16
      <div class="ctrlHolder">
17
      	<label for="website_basedir">{tmpl_var name='website_basedir_txt'}</label>
18 19
        <input name="website_basedir" id="website_basedir" value="{tmpl_var name='website_basedir'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
tbrehm's avatar
tbrehm committed
20 21 22 23
	  <div class="ctrlHolder">
      	<label for="website_path">{tmpl_var name='website_path_txt'}</label>
        <input name="website_path" id="website_path" value="{tmpl_var name='website_path'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
24 25 26
      <div class="ctrlHolder">
      	<label for="website_symlinks">{tmpl_var name='website_symlinks_txt'}</label>
        <input name="website_symlinks" id="website_symlinks" value="{tmpl_var name='website_symlinks'}" size="40" maxlength="255" type="text" class="textInput" />
27
	  </div>
28 29 30 31 32 33
      <div class="ctrlHolder">
      	<label for="website_symlinks_rel">{tmpl_var name='website_symlinks_rel_txt'}</label>
			<div class="multiField">
				{tmpl_var name='website_symlinks_rel'}
			</div>
	  </div>
34
      <div class="ctrlHolder apache">
35 36 37
      	<label for="vhost_conf_dir">{tmpl_var name='vhost_conf_dir_txt'}</label>
        <input name="vhost_conf_dir" id="vhost_conf_dir" value="{tmpl_var name='vhost_conf_dir'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
38
      <div class="ctrlHolder apache">
39 40 41
      	<label for="vhost_conf_enabled_dir">{tmpl_var name='vhost_conf_enabled_dir_txt'}</label>
        <input name="vhost_conf_enabled_dir" id="vhost_conf_enabled_dir" value="{tmpl_var name='vhost_conf_enabled_dir'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
42
	<div class="ctrlHolder nginx">
Falko Timme's avatar
Falko Timme committed
43 44 45
      	<label for="nginx_vhost_conf_dir">{tmpl_var name='nginx_vhost_conf_dir_txt'}</label>
        <input name="nginx_vhost_conf_dir" id="nginx_vhost_conf_dir" value="{tmpl_var name='nginx_vhost_conf_dir'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
46
      <div class="ctrlHolder nginx">
Falko Timme's avatar
Falko Timme committed
47 48 49
      	<label for="nginx_vhost_conf_enabled_dir">{tmpl_var name='nginx_vhost_conf_enabled_dir_txt'}</label>
        <input name="nginx_vhost_conf_enabled_dir" id="nginx_vhost_conf_enabled_dir" value="{tmpl_var name='nginx_vhost_conf_enabled_dir'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
50
	  <div class="ctrlHolder">
tbrehm's avatar
tbrehm committed
51 52 53 54 55 56 57
				<p class="label">{tmpl_var name='security_level_txt'}</p>
					<div class="multiField">
						<select name="security_level" id="security_level" class="selectInput">
					{tmpl_var name='security_level'}
				</select>
					</div>
			</div>
58
	  <div class="ctrlHolder apache">
59 60 61 62 63
				<p class="label">{tmpl_var name='check_apache_config_txt'}</p>
					<div class="multiField">
						{tmpl_var name='check_apache_config'}
					</div>
			</div>
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
	  <div class="ctrlHolder apache">
      	<label for="user">{tmpl_var name='web_user_txt'}</label>
        <input name="user" id="user" value="{tmpl_var name='user'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
	  <div class="ctrlHolder apache">
      	<label for="group">{tmpl_var name='web_group_txt'}</label>
        <input name="group" id="group" value="{tmpl_var name='group'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder nginx">
      	<label for="nginx_user">{tmpl_var name='nginx_user_txt'}</label>
        <input name="nginx_user" id="nginx_user" value="{tmpl_var name='nginx_user'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
	  <div class="ctrlHolder nginx">
      	<label for="nginx_group">{tmpl_var name='nginx_group_txt'}</label>
        <input name="nginx_group" id="nginx_group" value="{tmpl_var name='nginx_group'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder nginx">
      	<label for="nginx_cgi_socket">{tmpl_var name='nginx_cgi_socket_txt'}</label>
        <input name="nginx_cgi_socket" id="nginx_cgi_socket" value="{tmpl_var name='nginx_cgi_socket'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder apache">
      	<label for="htaccess_allow_override">{tmpl_var name='htaccess_allow_override_txt'}</label>
        <input name="htaccess_allow_override" id="htaccess_allow_override" value="{tmpl_var name='htaccess_allow_override'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
88 89 90 91 92 93
	  <div class="ctrlHolder">
				<p class="label">{tmpl_var name='enable_ip_wildcard_txt'}</p>
					<div class="multiField">
						{tmpl_var name='enable_ip_wildcard'}
					</div>
			</div>
94 95 96
	  <div class="subsectiontoggle"><span></span>{tmpl_var name='ssl_settings_txt'}<em></em></div>
		<div style="display:none;">
		<div class="ctrlHolder">
tbrehm's avatar
tbrehm committed
97 98 99 100 101
				<p class="label">{tmpl_var name='enable_sni_txt'}</p>
					<div class="multiField">
						{tmpl_var name='enable_sni'}
					</div>
			</div>
102 103 104 105 106 107 108 109 110 111 112
      <div class="ctrlHolder">
      	<label for="CA_path">{tmpl_var name='CA_path_txt'}</label>
        <input name="CA_path" id="CA_path" value="{tmpl_var name='CA_path'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
      <div class="ctrlHolder">
      	<label for="CA_pass">{tmpl_var name='CA_pass_txt'}</label>
        <input name="CA_pass" id="CA_pass" value="{tmpl_var name='CA_pass'}" size="40" maxlength="255" type="password" class="textInput" />
			</div>
		</div>
	  <div class="subsectiontoggle"><span></span>{tmpl_var name='permissions_txt'}<em></em></div>
	<div style="display:none;">
113
	  <div class="ctrlHolder">
114 115 116 117 118
				<p class="label">{tmpl_var name='set_folder_permissions_on_update_txt'}</p>
					<div class="multiField">
						{tmpl_var name='set_folder_permissions_on_update'}
					</div>
			</div>
119 120 121 122 123 124
	  <div class="ctrlHolder">
				<p class="label">{tmpl_var name='web_folder_protection_txt'}</p>
					<div class="multiField">
						{tmpl_var name='web_folder_protection'}
					</div>
			</div>
125
	  <div class="ctrlHolder">
126 127 128 129 130
				<p class="label">{tmpl_var name='add_web_users_to_sshusers_group_txt'}</p>
					<div class="multiField">
						{tmpl_var name='add_web_users_to_sshusers_group'}
					</div>
			</div>
131
	  <div class="ctrlHolder">
132 133 134 135 136
				<p class="label">{tmpl_var name='connect_userid_to_webid_txt'}</p>
					<div class="multiField">
						{tmpl_var name='connect_userid_to_webid'}
					</div>
			</div>
137
	  <div class="ctrlHolder">
138 139 140
      	<label for="connect_userid_to_webid_start">{tmpl_var name='connect_userid_to_webid_start_txt'}</label>
        <input name="connect_userid_to_webid_start" id="connect_userid_to_webid_start" value="{tmpl_var name='connect_userid_to_webid_start'}" size="40" maxlength="255" type="text" class="textInput" />
			</div>
141 142 143
	</div>
	  <div class="subsectiontoggle"><span></span>{tmpl_var name='php_settings_txt'}<em></em></div>
	  <div style="display:none;">
144
	  <div class="ctrlHolder apache">
145 146 147
      	<label for="php_ini_path_apache">{tmpl_var name='php_ini_path_apache_txt'}</label>
        <input name="php_ini_path_apache" id="php_ini_path_apache" value="{tmpl_var name='php_ini_path_apache'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
148
	  <div class="ctrlHolder apache">
149 150
      	<label for="php_ini_path_cgi">{tmpl_var name='php_ini_path_cgi_txt'}</label>
        <input name="php_ini_path_cgi" id="php_ini_path_cgi" value="{tmpl_var name='php_ini_path_cgi'}" size="40" maxlength="255" type="text" class="textInput" />
151
	  </div>
152
	  <div class="ctrlHolder">
153 154 155
      	<label for="php_fpm_init_script">{tmpl_var name='php_fpm_init_script_txt'}</label>
        <input name="php_fpm_init_script" id="php_fpm_init_script" value="{tmpl_var name='php_fpm_init_script'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
156
	  <div class="ctrlHolder">
157 158 159
      	<label for="php_fpm_ini_path">{tmpl_var name='php_fpm_ini_path_txt'}</label>
        <input name="php_fpm_ini_path" id="php_fpm_ini_path" value="{tmpl_var name='php_fpm_ini_path'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
160
	  <div class="ctrlHolder">
161 162 163
      	<label for="php_fpm_pool_dir">{tmpl_var name='php_fpm_pool_dir_txt'}</label>
        <input name="php_fpm_pool_dir" id="php_fpm_pool_dir" value="{tmpl_var name='php_fpm_pool_dir'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
164
	  <div class="ctrlHolder">
165 166
      	<label for="php_fpm_start_port">{tmpl_var name='php_fpm_start_port_txt'}</label>
        <input name="php_fpm_start_port" id="php_fpm_start_port" value="{tmpl_var name='php_fpm_start_port'}" size="40" maxlength="255" type="text" class="textInput" />
167
	  </div>
168
	  <div class="ctrlHolder">
169 170
      	<label for="php_fpm_socket_dir">{tmpl_var name='php_fpm_socket_dir_txt'}</label>
        <input name="php_fpm_socket_dir" id="php_fpm_socket_dir" value="{tmpl_var name='php_fpm_socket_dir'}" size="40" maxlength="255" type="text" class="textInput" />
171 172
	  </div>
	  <div class="ctrlHolder">
173
      	<label for="php_open_basedir">{tmpl_var name='php_open_basedir_txt'}</label>
Falko Timme's avatar
Falko Timme committed
174
        <input name="php_open_basedir" id="php_open_basedir" value="{tmpl_var name='php_open_basedir'}" size="40" type="text" class="textInput" />
175 176
	  </div>
	  </div>
177 178
	  <div class="subsectiontoggle"><span></span>{tmpl_var name='apps_vhost_settings_txt'}<em></em></div>
	  <div style="display:none;">
179
	  <div class="ctrlHolder">
180 181 182 183 184 185 186 187 188 189 190
      	<label for="apps_vhost_port">{tmpl_var name='apps_vhost_port_txt'}</label>
        <input name="apps_vhost_port" id="apps_vhost_port" value="{tmpl_var name='apps_vhost_port'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder">
      	<label for="apps_vhost_ip">{tmpl_var name='apps_vhost_ip_txt'}</label>
        <input name="apps_vhost_ip" id="apps_vhost_ip" value="{tmpl_var name='apps_vhost_ip'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder">
      	<label for="apps_vhost_servername">{tmpl_var name='apps_vhost_servername_txt'}</label>
        <input name="apps_vhost_servername" id="apps_vhost_servername" value="{tmpl_var name='apps_vhost_servername'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
191 192 193
	  </div>
	  <div class="subsectiontoggle"><span></span>{tmpl_var name='awstats_settings_txt'}<em></em></div>
	  <div style="display:none;">
194 195 196 197 198 199 200 201 202 203 204 205 206
	  <div class="ctrlHolder">
      	<label for="awstats_conf_dir">{tmpl_var name='awstats_conf_dir_txt'}</label>
        <input name="awstats_conf_dir" id="awstats_conf_dir" value="{tmpl_var name='awstats_conf_dir'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder">
      	<label for="awstats_data_dir">{tmpl_var name='awstats_data_dir_txt'}</label>
        <input name="awstats_data_dir" id="awstats_data_dir" value="{tmpl_var name='awstats_data_dir'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder">
      	<label for="awstats_pl">{tmpl_var name='awstats_pl_txt'}</label>
        <input name="awstats_pl" id="awstats_pl" value="{tmpl_var name='awstats_pl'}" size="40" maxlength="255" type="text" class="textInput" />
	  </div>
	  <div class="ctrlHolder">
tbrehm's avatar
tbrehm committed
207 208
      	<label for="awstats_buildstaticpages_pl">{tmpl_var name='awstats_buildstaticpages_pl_txt'}</label>
        <input name="awstats_buildstaticpages_pl" id="awstats_buildstaticpages_pl" value="{tmpl_var name='awstats_buildstaticpages_pl'}" size="40" maxlength="255" type="text" class="textInput" />
209
	  </div>
210
	  </div>
211 212 213 214 215 216 217 218 219 220 221
    </fieldset>

    <input type="hidden" name="id" value="{tmpl_var name='id'}">

    <div class="buttonHolder buttons">
      <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
      <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
    </div>
  </div>
  
</div>
Falko Timme's avatar
Falko Timme committed
222 223
<script language="JavaScript" type="text/javascript">
		var serverType = jQuery('#server_type').val();
224
		jQuery('#server_type').replaceWith('<label for="server_Type">'+serverType+'</label><input type="hidden" name="server_type" value="'+serverType+'">');
Falko Timme's avatar
Falko Timme committed
225
		adjustForm();
Falko Timme's avatar
Falko Timme committed
226 227
		jQuery('#server_type').change(function(){
			serverType = $(this).val();
Falko Timme's avatar
Falko Timme committed
228
			adjustForm();
Falko Timme's avatar
Falko Timme committed
229 230
		});
		
Falko Timme's avatar
Falko Timme committed
231
		function adjustForm(){
Falko Timme's avatar
Falko Timme committed
232
			if(serverType == "nginx"){
233 234
				jQuery('.nginx').show();
				jQuery('.apache').hide();
Falko Timme's avatar
Falko Timme committed
235
			} else {
236 237
				jQuery('.nginx').hide();
				jQuery('.apache').show();
Falko Timme's avatar
Falko Timme committed
238 239 240
			}
		}
</script>