Changeset 5293 for trunk/admin/configuration.php
- Timestamp:
- Mar 23, 2010, 10:19:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r5196 r5293 76 76 ); 77 77 78 $display_checkboxes = array( 79 'menubar_filter_icon', 80 'index_sort_order_input', 81 'index_flat_icon', 82 'index_posted_date_icon', 83 'index_created_date_icon', 84 'index_slideshow_icon', 85 'picture_metadata_icon', 86 'picture_slideshow_icon', 87 'picture_favorite_icon', 88 'picture_navigation_icons', 89 'picture_navigation_thumb', 90 ); 91 78 92 //------------------------------ verification and registration of modifications 79 93 if (isset($_POST['submit']) and !is_adviser()) … … 130 144 { 131 145 // Never go here 146 break; 147 } 148 case 'display' : 149 { 150 foreach( $display_checkboxes as $checkbox) 151 { 152 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; 153 } 132 154 break; 133 155 } … … 175 197 // TabSheet initialization 176 198 $tabsheet->add('main', l10n('Main'), $conf_link.'main'); 199 $tabsheet->add('display', l10n('Display'), $conf_link.'display'); 177 200 $tabsheet->add('history', l10n('History'), $conf_link.'history'); 178 201 $tabsheet->add('comments', l10n('Comments'), $conf_link.'comments'); 179 202 $tabsheet->add('upload', l10n('Upload'), $conf_link.'upload'); 180 $tabsheet->add('default', l10n(' Default display'), $conf_link.'default');203 $tabsheet->add('default', l10n('Guest Settings'), $conf_link.'default'); 181 204 // TabSheet selection 182 205 $tabsheet->select($page['section']); … … 299 322 break; 300 323 } 324 case 'display' : 325 { 326 foreach ($display_checkboxes as $checkbox) 327 { 328 $template->append( 329 'display', 330 array( 331 $checkbox => $conf[$checkbox] 332 ), 333 true 334 ); 335 } 336 break; 337 } 301 338 } 302 339
Note: See TracChangeset
for help on using the changeset viewer.