remove old readme
[atutor.git] / themes / default / admin / system_preferences / config_edit.tmpl.php
1 <?php global $_config, $languageManager, $_config_defaults, $stripslashes;?>
2
3 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
4 <div class="input-form">
5         <div class="row">
6                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="sitename"><?php echo _AT('site_name'); ?></label><br />
7                 <input type="text" name="site_name" size="40" maxlength="60" id="sitename" value="<?php if (!empty($_POST['site_name'])) { echo $stripslashes(htmlspecialchars($_POST['site_name'])); } else { echo $_config['site_name']; } ?>" />
8         </div>
9
10         <div class="row">
11                 <label for="home_url"><?php echo _AT('home_url'); ?></label><br />
12
13                 <input type="text" name="home_url" size="50" maxlength="60" id="home_url" value="<?php if (!empty($_POST['home_url'])) { echo $stripslashes(htmlspecialchars($_POST['home_url'])); } else { echo $_config['home_url']; } ?>"  />
14         </div>
15
16         <div class="row">
17                 <label for="default_lang"><?php echo _AT('default_language'); ?></label><br />
18
19                 <?php if (!empty($_POST['default_language'])) { 
20                                 $select_lang = $_POST['default_language']; 
21                         } else { 
22                                 $select_lang = $_config['default_language'];
23                         } ?>
24                 <?php if ($disabled): ?>
25                         <select name="default_language" id="default_lang" disabled="disabled"><option><?php echo $select_lang; ?></option></select>
26                 <?php else: ?>
27                         <?php $languageManager->printDropdown($select_lang, 'default_language', 'default_lang'); ?>
28                 <?php endif; ?>
29         </div>
30
31         <div class="row">
32                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="cemail"><?php echo _AT('contact_email'); ?></label><br />
33                 <input type="text" name="contact_email" id="cemail" size="40" value="<?php if (!empty($_POST['email'])) { echo $stripslashes(htmlspecialchars($_POST['email'])); } else { echo $_config['contact_email']; } ?>"  />
34         </div>
35
36         <div class="row">
37                 <label for="time_zone"><?php echo _AT('time_zone'); ?></label><br />
38
39                 <?php
40
41
42                 // Replace this hack to use the PHP timezone functions when the PHP requirement is raised to 5.3
43                 global $utc_timezones; // set in include/lib/constants.inc.php
44                 $local_offset = ((date(Z)/3600));
45                 echo '<select name="time_zone" id="time_zone">';        
46                         echo '<option value="0">'._AT('none').'</option>';
47                 foreach ($utc_timezones as $zone => $offset){
48                         if(($offset[1]) == $_config['time_zone']){
49                         echo '<option value="'.($offset[1]).'" selected="selected">'.$offset[1].'</option>';
50                         }else{
51                         echo '<option value="'.($offset[1]).'">'.$offset[1].'</option>';
52
53                         }
54                 }
55                 echo "</select>";
56
57
58                 //echo '<input type="text" name="time_zone" value="'.$_config['time_zone'].'" size="5" maxlength="5"/> ';
59
60                 // If PHP 5+ generate a list of timezones
61 /*
62                 if(phpversion() >= 5){
63                         $timezone_names = timezone_identifiers_list();
64                 }else{
65                 // if less than PHP version 5, read a text file to generate the menu
66                         $timezone_names = file("timezones.txt");
67                 }
68
69                 echo '<select name="time_zone">';
70                 foreach($timezone_names as $timezone_name){
71                         if($timezone_name == $_config{'time_zone'}){
72                                 $selected = ' selected="selected"';
73                         }
74                         echo '<option'.$selected.'>'.$timezone_name.'</option>';
75                         $selected = '';
76                 }
77                 echo '</select>';
78 */
79 echo AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME);
80 ?>
81         </div>
82
83         <div class="row">
84                 <label for="maxfile"><?php echo _AT('maximum_file_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_file_size']; ?>)<br />
85                 <input type="text" size="10" name="max_file_size" id="maxfile" value="<?php if (!empty($_POST['max_file_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_file_size'])); } else { echo $_config['max_file_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
86         </div>
87
88         <div class="row">
89                 <label for="maxcourse"><?php echo _AT('maximum_course_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_size']; ?>)<br />
90                 <input type="text" size="10" name="max_course_size" id="maxcourse" value="<?php if (!empty($_POST['max_course_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_size'])); } else { echo $_config['max_course_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
91         </div>
92
93         <div class="row">
94                 <label for="float"><?php echo _AT('maximum_course_float'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_float']; ?>)<br />
95                 <input type="text" size="10" name="max_course_float" id="float" value="<?php if (!empty($_POST['max_course_float'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_float'])); } else { echo $_config['max_course_float']; } ?>"  /> <?php echo _AT('bytes'); ?>
96         </div>
97
98         <div class="row">
99                 <label for="maximum_login_attempt"><?php echo _AT('maximum_login_attempt'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_login']; ?>)<br />
100                 <input type="text" size="10" name="max_login" id="maximum_login_attempt" value="<?php if (!empty($_POST['max_login'])) { echo $stripslashes(htmlspecialchars($_POST['max_login'])); } else { echo $_config['max_login']; } ?>"  /> <?php echo _AT('times'); ?>
101         </div>
102         
103         <div class="row">
104         <fieldset>
105                 <legend><?php echo _AT('display_name_format'); ?> </legend>
106                 (<?php echo _AT('default'); ?>: <?php echo _AT($this->display_name_formats[$_config_defaults['display_name_format']], _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?>)<br />
107                 <?php foreach ($this->display_name_formats as $key => $value): ?>
108                         <input type="radio" name="display_name_format" value="<?php echo $key; ?>" id="dnf<?php echo $key; ?>" <?php if ($_config['display_name_format'] == $key) { echo 'checked="checked"'; }?> /><label for="dnf<?php echo $key; ?>"><?php echo _AT($value, _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?></label><br />
109                 <?php endforeach; ?>
110         </fieldset>
111         </div>
112
113         <div class="row">
114         <fieldset>
115                 <legend><?php echo _AT('master_list_authentication'); ?></legend>
116                  (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['master_list'] ? _AT('enable') : _AT('disable')); ?>)<br />
117                 <input type="radio" name="master_list" value="1" id="ml_y" <?php if ($_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_y"><?php echo _AT('enable'); ?></label> 
118
119                 <input type="radio" name="master_list" value="0" id="ml_n" <?php if(!$_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_n"><?php echo  _AT('disable'); ?></label>
120         </fieldset>
121         </div>
122         
123         <div class="row">
124         <fieldset>
125                 <legend><?php echo _AT('allow_registration'); ?></legend> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
126                 <input type="radio" name="allow_registration" value="1" id="reg_y" <?php if($_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_registration" value="0" id="reg_n" <?php if(!$_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_n"><?php echo _AT('disable'); ?></label>
127         </fieldset>
128         </div>
129         
130         <div class="row">
131         <fieldset><legend>      <?php echo _AT('allow_browse'); ?> </legend>
132         (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_browse'] ? _AT('enable') : _AT('disable')); ?>)<br />
133                 <input type="radio" name="allow_browse" value="1" id="browse_y" <?php if($_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_browse" value="0" id="browse_n" <?php if(!$_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_n"><?php echo _AT('disable'); ?></label>
134         </fieldset>
135         </div>
136
137         <div class="row">
138         <fieldset>
139         <legend><?php echo _AT('allow_instructor_registration'); ?> </legend>
140         (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
141                 <input type="radio" name="allow_instructor_registration" value="1" id="enrollreg_y" <?php if($_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_registration" value="0" id="enrollreg_n" <?php if(!$_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_n"><?php echo _AT('disable'); ?></label>
142         </fieldset>
143         </div>
144         
145         <div class="row">               
146         <fieldset><legend><?php echo _AT('use_captcha'); ?> </legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['use_captcha'] ? _AT('enable') : _AT('disable')); ?>)<br />
147                 <?php if (extension_loaded('gd')): ?>
148                 <input type="radio" name="use_captcha" value="1" id="use_captcha_y" <?php if($_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" <?php if(!$_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
149                 <?php else: ?>
150                 <input type="radio" name="use_captcha" value="1" id="use_captcha_y" disabled="disabled" /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" checked="checked" /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
151                 <?php endif; ?>
152                 </fieldset>
153         </div>
154         
155         <div class="row">
156         <fieldset><legend><?php echo _AT('allow_unenroll'); ?></legend>
157                  (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_unenroll'] ? _AT('enable') : _AT('disable')); ?>)<br />
158                 <input type="radio" name="allow_unenroll" value="1" id="ene_y" <?php if($_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_unenroll" value="0" id="ene_n" <?php if(!$_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_n"><?php echo _AT('disable'); ?></label>
159         </fieldset>
160         </div>
161
162         <div class="row">
163         <fieldset>
164         <legend><?php echo _AT('require_email_confirmation'); ?></legend>
165          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_confirmation'] ? _AT('enable') : _AT('disable')); ?>)<br />
166                 <input type="radio" name="email_confirmation" value="1" id="ec_y" <?php if ($_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_confirmation" value="0" id="ec_n" <?php if(!$_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_n"><?php echo _AT('disable'); ?></label>
167         </fieldset>
168         </div>
169                 
170         <div class="row">
171         <fieldset><legend><?php echo _AT('allow_instructor_requests'); ?></legend>
172          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_requests'] ? _AT('enable') : _AT('disable')); ?>)<br />
173                 <input type="radio" name="allow_instructor_requests" value="1" id="air_y" <?php if($_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_requests" value="0" id="air_n" <?php if(!$_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_n"><?php echo _AT('disable'); ?></label>
174         </fieldset>
175         </div>
176
177         <div class="row">
178         <fieldset>
179         <legend><?php echo _AT('instructor_request_email_notification'); ?></legend>
180          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_notification'] ? _AT('enable') : _AT('disable')); ?>)<br />
181                 <input type="radio" name="email_notification" value="1" id="en_y" <?php if ($_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_notification" value="0" id="en_n" <?php if(!$_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_n"><?php echo _AT('disable'); ?></label>
182         </fieldset>
183         </div>
184
185         <div class="row">
186         <fieldset>
187         <legend><?php echo _AT('auto_approve_instructors'); ?></legend>
188          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_approve_instructors'] ? _AT('enable') : _AT('disable')); ?>)<br />
189                 <input type="radio" name="auto_approve_instructors" value="1" id="aai_y" <?php if($_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_approve_instructors" value="0" id="aai_n" <?php if(!$_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_n"><?php echo _AT('disable'); ?></label>
190         </fieldset>
191         </div>
192
193         <div class="row">
194         <fieldset>
195         <legend><?php echo _AT('theme_specific_categories'); ?></legend>
196          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['theme_categories'] ? _AT('enable') : _AT('disable')); ?>)<br />
197                 <input type="radio" name="theme_categories" value="1" id="tc_y" <?php if($_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="theme_categories" value="0" id="tc_n" <?php if(!$_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_n"><?php echo _AT('disable'); ?></label>
198         </fieldset>
199         </div>
200
201         <div class="row">
202         <fieldset>
203         <legend><?php echo _AT('user_contributed_notes'); ?> </legend>
204         (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['user_notes'] ? _AT('enable') : _AT('disable')); ?>)<br />
205                 <input type="radio" name="user_notes" value="1" id="un_y" <?php if($_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="user_notes" value="0" id="un_n" <?php if(!$_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_n"><?php echo _AT('disable'); ?></label>
206         </fieldset>
207         </div>
208
209         <div class="row">
210                 <label for="ext"><?php echo _AT('illegal_file_extensions'); ?></label><br />
211                 <textarea name="illegal_extentions" cols="24" id="ext" rows="2" class="formfield" ><?php if ($_config['illegal_extentions']) { echo str_replace('|',' ',$_config['illegal_extentions']); }?></textarea>
212         </div>
213
214         <div class="row">
215                 <label for="cache"><?php echo _AT('cache_directory'); ?></label><br />
216                 <input type="text" name="cache_dir" id="cache" size="40" value="<?php if (!empty($_POST['cache_dir'])) { echo $stripslashes(htmlspecialchars($_POST['cache_dir'])); } else { echo $_config['cache_dir']; } ?>"  />
217         </div>
218
219         <div class="row">
220                 <label for="latex_server"><?php echo _AT('latex_server'); ?></label><br />
221                 <input type="text" name="latex_server" id="latex_server" size="40" value="<?php if (!empty($_POST['latex_server'])) { echo $stripslashes(htmlspecialchars($_POST['latex_server'])); } else { echo $_config['latex_server']; } ?>"  />
222         </div>
223
224         <div class="row">
225                 <label for="course_backups"><?php echo _AT('course_backups'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['course_backups']; ?>)<br />
226                 <input type="text" size="2" name="course_backups" id="course_backups" value="<?php if (!empty($_POST['course_backups'])) { echo $stripslashes(htmlspecialchars($_POST['course_backups'])); } else { echo $_config['course_backups']; } ?>"  />
227         </div>
228
229         <div class="row">
230                 <label for="sent_msgs_ttl"><?php echo _AT('sent_msgs_ttl_text'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['sent_msgs_ttl']; ?>)<br />
231                 <input type="text" size="3" name="sent_msgs_ttl" id="sent_msgs_ttl" value="<?php if (!empty($_POST['sent_msgs_ttl'])) { echo intval($_POST['sent_msgs_ttl']); } else { echo $_config['sent_msgs_ttl']; } ?>"  />
232         </div>
233
234         <div class="row">
235                 <fieldset>
236                 <legend><?php echo _AT('auto_check_new_version'); ?></legend>
237                  (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['check_version'] ? _AT('enable') : _AT('disable')); ?>)<br />
238                 <input type="radio" name="check_version" value="1" id="cv_y" <?php if($_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="check_version" value="0" id="cv_n" <?php if(!$_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_n"><?php echo _AT('disable'); ?></label>
239                 </fieldset>
240         </div>
241
242         <div class="row">
243         <fieldset>
244         <legend><?php echo _AT('file_storage_version_control'); ?> </legend>
245         (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['fs_versioning'] ? _AT('enable') : _AT('disable')); ?>)<br />
246                 <input type="radio" name="fs_versioning" value="1" id="cf_y" <?php if($_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="fs_versioning" value="0" id="cf_n" <?php if(!$_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_n"><?php echo _AT('disable'); ?></label>
247         </fieldset>
248         </div>
249
250         <div class="row">
251         <fieldset>
252                 <input type="hidden" name="old_enable_mail_queue" value="<?php echo $_config['enable_mail_queue']; ?>" />
253                 <legend><?php echo _AT('enable_mail_queue'); ?></legend>
254                  (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['enable_mail_queue'] ? _AT('enable') : _AT('disable')); ?>)<br />
255                 <?php echo _AT('mail_queue_cron'); ?><br />
256                 <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
257                         
258                         <input type="radio" name="enable_mail_queue" id="mq_y" value="1" disabled="disabled" /><?php echo _AT('enable'); ?> 
259                         <label for="mq_y"><?php echo _AT('enable'); ?></label> 
260                         <input type="radio" name="enable_mail_queue" value="0" id="mq_n" checked="checked" />
261                         <label for="mq_n"><?php echo _AT('disable'); ?></label>
262                 <?php else: ?>
263         
264                         <input type="radio" name="enable_mail_queue" value="1" id="mq_y" <?php if($_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
265                         <label for="mq_y"><?php echo _AT('enable'); ?></label> 
266                         <input type="radio" name="enable_mail_queue" value="0" id="mq_n" <?php if(!$_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
267                         <label for="mq_n"><?php echo _AT('disable'); ?></label>
268                 <?php endif; ?>
269         </fieldset>
270         </div>
271
272         <div class="row">
273         <fieldset>
274                 <legend><?php echo _AT('auto_install_languages'); ?> </legend>
275                 (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_install_languages'] ? _AT('enable') : _AT('disable')); ?>)<br />
276                 <?php echo _AT('auto_install_languages_cron'); ?><br />
277                 <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
278                         <input type="radio" name="auto_install_languages" id="ai_y" value="1" disabled="disabled" />
279                         <label for="ai_y"><?php echo _AT('enable'); ?> </label>
280                         <input type="radio" name="auto_install_languages" value="0" id="ai_n" checked="checked" />
281                         <label for="ai_n"><?php echo _AT('disable'); ?></label>
282                 <?php else: ?>
283                         <input type="radio" name="auto_install_languages" value="1" id="ai_y" <?php if($_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_install_languages" value="0" id="ai_n" <?php if(!$_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_n"><?php echo _AT('disable'); ?></label>
284                 <?php endif; ?>
285                 </fieldset>
286         </div>
287
288         <div class="row">
289         <fieldset>
290         <legend><?php echo _AT('pretty_url'); ?></legend>
291          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['pretty_url'] ? _AT('enable') : _AT('disable')); ?>)<br />
292                 <input type="radio" name="pretty_url" value="1" id="pu_y" <?php if($_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(true);"/><label for="pu_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="pretty_url" value="0" id="pu_n" <?php if(!$_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(false);"/><label for="pu_n"><?php echo _AT('disable'); ?></label>
293         </fieldset>
294         </div>
295
296         <div class="row">
297         <fieldset>
298         <legend><?php echo _AT('course_dir_name'); ?></legend>
299          (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['course_dir_name'] ? _AT('enable') : _AT('disable')); ?>)<br />
300                 <input type="radio" name="course_dir_name" value="1" id="cdn_y" <?php if($_config['course_dir_name']) { echo 'checked="checked"'; }?> /><label for="cdn_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="course_dir_name" value="0" id="cdn_n" <?php if(!$_config['course_dir_name']) { echo 'checked="checked"'; }?>  /><label for="cdn_n"><?php echo _AT('disable'); ?></label>
301         </fieldset>
302         </div>
303
304         <div class="row">
305         <fieldset>
306         <legend><?php echo _AT('apache_mod_rewrite'); ?></legend>
307                 <?php if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())): ?>
308                         <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
309                         <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" <?php if($_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?> /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" <?php if(!$_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?>  /><label for="mr_n"><?php echo _AT('disable'); ?></label>
310                 <?php else: ?>
311                         <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
312                         <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" disabled="disabled" /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" checked="checked" /><label for="mr_n"><?php echo _AT('disable'); ?></label>
313                 <?php endif; ?>
314         </fieldset>
315         </div>
316
317         <div class="row buttons">
318                         <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
319                 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
320         </div>
321 </div>
322 </form>