Changeset 4895 for extensions/upload_form/upload.php
- Timestamp:
- Feb 15, 2010, 11:23:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/upload_form/upload.php
r4887 r4895 344 344 ); 345 345 346 $upload_modes = array('html', 'multiple'); 347 348 $upload_mode = 'multiple'; 349 $upload_switch = 'html'; 350 if (isset($_GET['upload_mode']) and in_array($_GET['upload_mode'], $upload_modes)) 351 { 352 $index_of_upload_mode = array_flip($upload_modes); 353 $upload_mode_index = $index_of_upload_mode[ $_GET['upload_mode'] ]; 354 355 $upload_mode = $_GET['upload_mode']; 356 $upload_switch = $upload_modes[ ($upload_mode_index + 1) % 2 ]; 357 } 358 346 359 $template->assign( 347 360 array( 348 'upload_mode' => 'multiple', 361 'upload_mode' => $upload_mode, 362 'switch_url' => $admin_base_url.'&upload_mode='.$upload_switch, 349 363 'upload_id' => md5(rand()), 350 364 'session_id' => session_id(), … … 394 408 // image level options 395 409 $tpl_options = array(); 396 foreach ( $conf['available_permission_levels']as $level)410 foreach (array_reverse($conf['available_permission_levels']) as $level) 397 411 { 398 412 $label = null; … … 423 437 } 424 438 425 $label = implode(', ', array_reverse($labels));439 $label = implode(', ', $labels); 426 440 } 427 441 $tpl_options[$level] = $label;
Note: See TracChangeset
for help on using the changeset viewer.