Changeset 1894 for trunk/admin/configuration.php
- Timestamp:
- Mar 12, 2007, 12:02:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r1884 r1894 42 42 if (!isset($_GET['section'])) 43 43 { 44 $page['section'] = ' general';44 $page['section'] = 'main'; 45 45 } 46 46 else … … 49 49 } 50 50 51 $ general_checkboxes = array(51 $main_checkboxes = array( 52 52 'email_admin_on_new_user', 53 53 'allow_user_registration', … … 73 73 switch ($page['section']) 74 74 { 75 case ' general' :75 case 'main' : 76 76 { 77 77 if ( !url_is_remote($_POST['gallery_url']) ) … … 79 79 array_push($page['errors'], $lang['conf_gallery_url_error']); 80 80 } 81 foreach( $ general_checkboxes as $checkbox)81 foreach( $main_checkboxes as $checkbox) 82 82 { 83 83 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; … … 177 177 $page['tabsheet'] = array 178 178 ( 179 ' general' => array179 'main' => array 180 180 ( 181 'caption' => l10n('conf_ general_title'),182 'url' => $conf_link.' general'181 'caption' => l10n('conf_main_title'), 182 'url' => $conf_link.'main' 183 183 ), 184 184 'history' => array … … 194 194 'default' => array 195 195 ( 196 'caption' => l10n('conf_d efault'),196 'caption' => l10n('conf_display'), 197 197 'url' => $conf_link.'default' 198 198 ) … … 223 223 switch ($page['section']) 224 224 { 225 case ' general' :225 case 'main' : 226 226 { 227 227 $lock_yes = ($conf['gallery_locked']==true)?'checked="checked"':''; … … 229 229 230 230 $template->assign_block_vars( 231 ' general',231 'main', 232 232 array( 233 233 'GALLERY_LOCKED_YES'=>$lock_yes, … … 241 241 )); 242 242 243 foreach( $ general_checkboxes as $checkbox)243 foreach( $main_checkboxes as $checkbox) 244 244 { 245 245 $template->merge_block_vars( 246 ' general',246 'main', 247 247 array( 248 248 strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
Note: See TracChangeset
for help on using the changeset viewer.