plugins/SpecialAdmin.php
changeset 1352 d97cf005f674
parent 1288 bf59bcc79baf
child 1374 f99b9c5036d4
--- a/plugins/SpecialAdmin.php	Fri Jul 22 23:14:06 2011 -0400
+++ b/plugins/SpecialAdmin.php	Sun Sep 04 02:32:49 2011 -0400
@@ -270,6 +270,7 @@
 		setConfig('avatar_directory', 'files/avatars');
 		
 		setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' ));
+		setConfig('autofill_username_for_guests', ( isset($_POST['autofill_username_for_guests']) ? '1' : '0' ));
 		setConfig('gzip_output', ( isset($_POST['gzip_output']) ? '1' : '0' ));
 		
 		if ( isset($_POST['trust_xff']) )
@@ -977,6 +978,21 @@
 				</td>
 			</tr>
 			
+			<tr>
+				<td class="row1">
+					<b><?php echo $lang->get('acpgc_field_guest_autofill_title'); ?></b><br />
+					<small>
+						<?php echo $lang->get('acpgc_field_guest_autofill_hint'); ?>
+					</small>
+				</td>
+				<td class="row1">
+					<label>
+						<input type="checkbox" name="autofill_username_for_guests" <?php if ( getConfig('autofill_username_for_guests', 0) == '1' ) echo 'checked="checked" '; ?>/>
+						<?php echo $lang->get('acpgc_field_guest_autofill'); ?>
+					</label>
+				</td>
+			</tr>
+			
 		<!-- Allow plugins to add code -->
 			<?php
 			$code = $plugins->setHook('acp_general_users');