summaryrefslogtreecommitdiff
path: root/upload.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-05-02 11:24:52 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-05-02 11:24:52 +0000
commit10cdb334122457eb844602befa07bcfb0e880cbc (patch)
tree429d2cde5a4623ea62b0e7375afd9012a558212e /upload.php
parent976f1d8090ae1a279296771634c2eb1a5ebfbb78 (diff)
downloadfisheye-10cdb334122457eb844602befa07bcfb0e880cbc.tar.gz
fisheye-10cdb334122457eb844602befa07bcfb0e880cbc.tar.bz2
fisheye-10cdb334122457eb844602befa07bcfb0e880cbc.zip
get xupload working and make changes to liberty and fisheye to allow the use of xupload
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/upload.php b/upload.php
index 6e20a33..01b436a 100644
--- a/upload.php
+++ b/upload.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.11 2006/04/11 13:04:24 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.12 2006/05/02 11:24:52 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -28,6 +28,7 @@ if( !empty( $_REQUEST['save_image'] ) ) {
$upImages = array();
$upArchives = array();
$upErrors = array();
+
foreach( array_keys( $_FILES ) as $key ) {
if( preg_match( '/(^image|pdf)/i', $_FILES[$key]['type'] ) ) {
$upImages[$key] = $_FILES[$key];
@@ -102,7 +103,9 @@ $galleryList = $gFisheyeGallery->getList( $listHash );
$gBitSmarty->assign_by_ref( 'galleryList', $galleryList['data'] );
$gBitSmarty->assign( 'uploadMax', $uploadMax );
-$gBitSmarty->assign( 'loadMultiFile', TRUE );
+if( !$gBitSystem->isPackageActive( 'xupload' ) ) {
+ $gBitSmarty->assign( 'loadMultiFile', TRUE );
+}
$gBitSystem->display( 'bitpackage:fisheye/upload_fisheye.tpl', 'Upload Images' );
?>