summaryrefslogtreecommitdiff
path: root/upload.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-01 18:40:27 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-01 18:40:27 +0000
commite0855901be732e522fb3e300b2e70af702124464 (patch)
tree8f6a68c00ad0bebdb986586ef5287242e2bd4cc6 /upload.php
parent18c7d1bed3043cbb682431cc297f4d235b137d1e (diff)
downloadfisheye-e0855901be732e522fb3e300b2e70af702124464.tar.gz
fisheye-e0855901be732e522fb3e300b2e70af702124464.tar.bz2
fisheye-e0855901be732e522fb3e300b2e70af702124464.zip
merge recent changes with HEAD - R1 and HEAD are identical now
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/upload.php b/upload.php
index d9d19c7..c8fbc9d 100644
--- a/upload.php
+++ b/upload.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.4 2005/07/25 20:02:04 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.5 2005/08/01 18:40:07 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -75,7 +75,7 @@ if (!empty($_REQUEST['save_image'])) {
header( 'Location: '.$gContent->getDisplayUrl() );
die;
} else {
- $smarty->assign( 'errors', $upErrors );
+ $gBitSmarty->assign( 'errors', $upErrors );
}
}
@@ -98,7 +98,7 @@ if( $gBitSystem->isPackageActive( 'quota' ) ) {
// Prevent people from uploading more than there quota
$q = $quota->getUserQuota( $gBitUser->mUserId );
$u = $quota->getUserUsage( $gBitUser->mUserId );
- $smarty->assign('quotaMessage', tra( 'Your remaining disk quota is' ).' '.round(($q-$u)/1000000, 2).' '.tra('Megabytes') );
+ $gBitSmarty->assign('quotaMessage', tra( 'Your remaining disk quota is' ).' '.round(($q-$u)/1000000, 2).' '.tra('Megabytes') );
$qMegs = round( $q / 1000000 );
if( $qMegs < $uploadMax ) {
$uploadMax = $qMegs;
@@ -110,9 +110,9 @@ if( $gBitSystem->isPackageActive( 'quota' ) ) {
$gFisheyeGallery = new FisheyeGallery();
$listHash = array( 'user_id' => $gBitUser->mUserId, 'show_empty' => true, 'max_records'=>-1, 'no_thumbnails'=>TRUE, 'sort_mode'=>'title_asc' );
$galleryList = $gFisheyeGallery->getList( $listHash );
-$smarty->assign_by_ref('galleryList', $galleryList);
+$gBitSmarty->assign_by_ref('galleryList', $galleryList);
-$smarty->assign( 'uploadMax', $uploadMax );
+$gBitSmarty->assign( 'uploadMax', $uploadMax );
$gBitSystem->display( 'bitpackage:fisheye/upload_fisheye.tpl', 'Upload Images' );
@@ -185,7 +185,9 @@ function liberty_process_archive( &$pFileHash ) {
} elseif( $upExt == 'rar' ) {
$shellResult = shell_exec( "rar x -w\"$destDir\" $pFileHash[tmp_name] " );
} elseif( $upExt == 'sit' || $upExt == 'sitx' ) {
- $shellResult = shell_exec( "unstuff -d=\"$destDir\" $pFileHash[tmp_name] " );
+ print( "unstuff -d=\"$destDir\" $pFileHash[tmp_name] " );
+ $shellResult = shell_exec( "unstuff -d=\"$destDir\" $pFileHash[tmp_name] " );
+ vd( $shellResult );
}
break;
}