Changeset 2325 for trunk/admin/configuration.php
- Timestamp:
- May 2, 2008, 11:56:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r2299 r2325 52 52 'rate_anonymous', 53 53 'email_admin_on_new_user', 54 'email_admin_on_picture_uploaded',55 54 ); 56 55 … … 59 58 'history_admin', 60 59 'history_guest' 60 ); 61 62 $upload_checkboxes = array( 63 'upload_link_everytime', 64 'email_admin_on_picture_uploaded', 61 65 ); 62 66 … … 106 110 } 107 111 foreach( $comments_checkboxes as $checkbox) 112 { 113 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; 114 } 115 break; 116 } 117 case 'upload' : 118 { 119 foreach( $upload_checkboxes as $checkbox) 108 120 { 109 121 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; … … 161 173 $tabsheet->add('history', l10n('conf_history_title'), $conf_link.'history'); 162 174 $tabsheet->add('comments', l10n('conf_comments_title'), $conf_link.'comments'); 175 $tabsheet->add('upload', l10n('conf_upload_title'), $conf_link.'upload'); 163 176 $tabsheet->add('default', l10n('conf_display'), $conf_link.'default'); 164 177 // TabSheet selection … … 188 201 )); 189 202 190 foreach ($main_checkboxes as $checkbox)203 foreach ($main_checkboxes as $checkbox) 191 204 { 192 205 $template->append( … … 203 216 { 204 217 //Necessary for merge_block_vars 205 foreach ($history_checkboxes as $checkbox)218 foreach ($history_checkboxes as $checkbox) 206 219 { 207 220 $template->append( … … 223 236 )); 224 237 225 foreach ($comments_checkboxes as $checkbox)238 foreach ($comments_checkboxes as $checkbox) 226 239 { 227 240 $template->append( … … 235 248 break; 236 249 } 250 case 'upload' : 251 { 252 $template->assign( 253 'upload', 254 array( 255 'upload_user_access_options'=> get_user_access_level_html_options(ACCESS_GUEST), 256 'upload_user_access_options_selected' => array($conf['upload_user_access']) 257 ) 258 ); 259 //Necessary for merge_block_vars 260 foreach ($upload_checkboxes as $checkbox) 261 { 262 $template->append( 263 'upload', 264 array( 265 $checkbox => $conf[$checkbox] 266 ), 267 true 268 ); 269 } 270 break; 271 } 237 272 case 'default' : 238 273 {
Note: See TracChangeset
for help on using the changeset viewer.