plugins/SpecialPageFuncs.php
changeset 1373 851b91febb85
parent 1356 e80b5733ce9d
child 1377 fa2b0825bbc5
equal deleted inserted replaced
1372:947153b432ea 1373:851b91febb85
   714 		session_start();
   714 		session_start();
   715 		header('Content-type: text/javascript');
   715 		header('Content-type: text/javascript');
   716 		$key = "upload_progress_{$_GET['uploadstatus']}";
   716 		$key = "upload_progress_{$_GET['uploadstatus']}";
   717 		$info = isset($_SESSION[$key]) ? $_SESSION[$key] : array();
   717 		$info = isset($_SESSION[$key]) ? $_SESSION[$key] : array();
   718 		if ( isset($_SESSION[$key]) && $_SESSION[$key]['done'] )
   718 		if ( isset($_SESSION[$key]) && $_SESSION[$key]['done'] )
       
   719 		{
   719 			unset($_SESSION[$key]);
   720 			unset($_SESSION[$key]);
       
   721 		}
       
   722 		
       
   723 		if ( !isset($_SESSION[$key]) )
       
   724 		{
       
   725 			// workaround to cause stuck uploads on the client side to shut up
       
   726 			$info['done'] = true;
       
   727 		}
   720 		
   728 		
   721 		if ( is_array($info) )
   729 		if ( is_array($info) )
   722 		{
   730 		{
   723 			$info['current_time'] = time();
   731 			$info['current_time'] = time();
   724 			if ( !empty($_GET['cancel']) )
   732 			if ( !empty($_GET['cancel']) )