plugins/SpecialAdmin.php
changeset 1352 d97cf005f674
parent 1288 bf59bcc79baf
child 1374 f99b9c5036d4
equal deleted inserted replaced
1351:a57727e67241 1352:d97cf005f674
   268 		}
   268 		}
   269 		
   269 		
   270 		setConfig('avatar_directory', 'files/avatars');
   270 		setConfig('avatar_directory', 'files/avatars');
   271 		
   271 		
   272 		setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' ));
   272 		setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' ));
       
   273 		setConfig('autofill_username_for_guests', ( isset($_POST['autofill_username_for_guests']) ? '1' : '0' ));
   273 		setConfig('gzip_output', ( isset($_POST['gzip_output']) ? '1' : '0' ));
   274 		setConfig('gzip_output', ( isset($_POST['gzip_output']) ? '1' : '0' ));
   274 		
   275 		
   275 		if ( isset($_POST['trust_xff']) )
   276 		if ( isset($_POST['trust_xff']) )
   276 		{
   277 		{
   277 			setConfig('trust_xff', $_POST['trust_xff_type']);
   278 			setConfig('trust_xff', $_POST['trust_xff_type']);
   971 				</td>
   972 				</td>
   972 				<td class="row1">
   973 				<td class="row1">
   973 					<label>
   974 					<label>
   974 						<input type="checkbox" name="userpage_grant_acl" <?php if ( getConfig('userpage_grant_acl', '1') == '1' ) echo 'checked="checked" '; ?>/>
   975 						<input type="checkbox" name="userpage_grant_acl" <?php if ( getConfig('userpage_grant_acl', '1') == '1' ) echo 'checked="checked" '; ?>/>
   975 						<?php echo $lang->get('acpgc_field_userpage_acl'); ?>
   976 						<?php echo $lang->get('acpgc_field_userpage_acl'); ?>
       
   977 					</label>
       
   978 				</td>
       
   979 			</tr>
       
   980 			
       
   981 			<tr>
       
   982 				<td class="row1">
       
   983 					<b><?php echo $lang->get('acpgc_field_guest_autofill_title'); ?></b><br />
       
   984 					<small>
       
   985 						<?php echo $lang->get('acpgc_field_guest_autofill_hint'); ?>
       
   986 					</small>
       
   987 				</td>
       
   988 				<td class="row1">
       
   989 					<label>
       
   990 						<input type="checkbox" name="autofill_username_for_guests" <?php if ( getConfig('autofill_username_for_guests', 0) == '1' ) echo 'checked="checked" '; ?>/>
       
   991 						<?php echo $lang->get('acpgc_field_guest_autofill'); ?>
   976 					</label>
   992 					</label>
   977 				</td>
   993 				</td>
   978 			</tr>
   994 			</tr>
   979 			
   995 			
   980 		<!-- Allow plugins to add code -->
   996 		<!-- Allow plugins to add code -->