Changeset 1884 for trunk/admin/configuration.php
- Timestamp:
- Mar 9, 2007, 11:52:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r1881 r1884 50 50 51 51 $general_checkboxes = array( 52 'email_admin_on_new_user', 53 'allow_user_registration', 54 ); 55 56 $history_checkboxes = array( 52 57 'log', 53 58 'history_admin', 54 'history_guest', 55 'email_admin_on_new_user', 56 'allow_user_registration', 59 'history_guest' 57 60 ); 58 61 … … 77 80 } 78 81 foreach( $general_checkboxes as $checkbox) 82 { 83 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; 84 } 85 break; 86 } 87 case 'history' : 88 { 89 foreach( $history_checkboxes as $checkbox) 79 90 { 80 91 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; … … 170 181 'caption' => l10n('conf_general_title'), 171 182 'url' => $conf_link.'general' 183 ), 184 'history' => array 185 ( 186 'caption' => l10n('conf_history_title'), 187 'url' => $conf_link.'history' 172 188 ), 173 189 'comments' => array … … 229 245 $template->merge_block_vars( 230 246 'general', 247 array( 248 strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:'' 249 ) 250 ); 251 } 252 break; 253 } 254 case 'history' : 255 { 256 //Necessary for merge_block_vars 257 $template->assign_block_vars('history', array()); 258 259 foreach( $history_checkboxes as $checkbox) 260 { 261 $template->merge_block_vars( 262 'history', 231 263 array( 232 264 strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
Note: See TracChangeset
for help on using the changeset viewer.