diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-11-07 12:11:53 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-11-07 12:11:53 +0000 |
| commit | f59f469826274c94dbc27435fbf913adbc823b1f (patch) | |
| tree | 249f768a55391d2bb94d00a57b7df69be30e3f04 /upload.php | |
| parent | 9f3894003a688d8866d85b58e816a5738c5a62a7 (diff) | |
| download | fisheye-f59f469826274c94dbc27435fbf913adbc823b1f.tar.gz fisheye-f59f469826274c94dbc27435fbf913adbc823b1f.tar.bz2 fisheye-f59f469826274c94dbc27435fbf913adbc823b1f.zip | |
add option to set title and description at the time of uploading the images - unfortunately not compatible with gigaupload
Diffstat (limited to 'upload.php')
| -rw-r--r-- | upload.php | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.18 2006/08/29 14:48:02 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.19 2006/11/07 12:11:51 squareing Exp $ * @package fisheye * @subpackage functions */ @@ -29,12 +29,19 @@ if( !empty( $_REQUEST['save_image'] ) ) { $upArchives = array(); $upErrors = array(); + $i = 0; foreach( array_keys( $_FILES ) as $key ) { if( preg_match( '/(^image|pdf)/i', $_FILES[$key]['type'] ) ) { $upImages[$key] = $_FILES[$key]; + if( !empty( $_REQUEST['imagedata'][$i] ) ) { + $upData[$key] = $_REQUEST['imagedata'][$i]; + } else { + $upData[$key] = array(); + } } elseif( !empty( $_FILES[$key]['tmp_name'] ) && !empty( $_FILES[$key]['name'] ) ) { $upArchives[$key] = $_FILES[$key]; } + $i++; } $galleryAdditions = array(); @@ -50,7 +57,7 @@ if( !empty( $_REQUEST['save_image'] ) ) { $order = 100; foreach( array_keys( $upImages ) as $key ) { - fisheye_store_upload( $upImages[$key], $order ); + fisheye_store_upload( $upImages[$key], $order, $upData[$key] ); $order += 10; } @@ -89,5 +96,9 @@ if( $gBitSystem->isPackageActive( 'gigaupload' ) ) { $gBitSmarty->assign( 'loadMultiFile', TRUE ); } +$uploadSlots = array(); +$uploadSlots = array_pad( $uploadSlots, 9, 0 ); +$gBitSmarty->assign( 'uploadSlots', $uploadSlots ); + $gBitSystem->display( 'bitpackage:fisheye/upload_fisheye.tpl', 'Upload Images' ); ?> |
