diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-09-25 19:51:44 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-09-25 19:51:44 +0000 |
| commit | afcfb72cea8baa954f5411772d3a2cb9929437e9 (patch) | |
| tree | 29c1dd1cc4bc56f418457fb2a46004ee44c5f4e5 /upload.php | |
| parent | 4d5cce2552ea07a9745d07db61d483f26cad3c7e (diff) | |
| download | fisheye-afcfb72cea8baa954f5411772d3a2cb9929437e9.tar.gz fisheye-afcfb72cea8baa954f5411772d3a2cb9929437e9.tar.bz2 fisheye-afcfb72cea8baa954f5411772d3a2cb9929437e9.zip | |
add display mode for inline uploader
Diffstat (limited to 'upload.php')
| -rw-r--r-- | upload.php | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.44 2009/07/04 13:35:21 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.45 2009/09/25 19:51:44 tylerbello Exp $ * @package fisheye * @subpackage functions */ @@ -22,7 +22,6 @@ require_once( FISHEYE_PKG_PATH.'upload_inc.php'); $gBitSystem->verifyPermission( 'p_fisheye_upload' ); if( !empty( $_REQUEST['save_image'] ) ) { - // first of all set the execution time for this process to unlimited set_time_limit(0); @@ -88,6 +87,13 @@ if( !empty( $_REQUEST['save_image'] ) ) { } } +if ( !empty($_REQUEST['on_complete'])){ + if($_REQUEST['on_complete'] == 'refreshparent'){ + $gBitSmarty->assign('onComplete','window.opener.location.reload(true);self.close();'); + } + +} + require_once( LIBERTY_PKG_PATH.'calculate_max_upload_inc.php' ); $gContent->invokeServices( 'content_edit_function' ); @@ -127,5 +133,8 @@ if( $gLibertySystem->hasService( 'upload' ) ) { $gBitThemes->loadJavascript( UTIL_PKG_PATH.'javascript/libs/multifile.js', TRUE ); } -$gBitSystem->display( 'bitpackage:fisheye/upload_fisheye.tpl', 'Upload Images' , array( 'display_mode' => 'edit' )); +$displayMode = !empty($_REQUEST['display_mode']) ? $_REQUEST['display_mode'] : 'edit'; + +$gBitSystem->display( 'bitpackage:fisheye/upload_fisheye.tpl', 'Upload Images' , array( 'display_mode' => $displayMode )); + ?> |
