static function IsUploadedFile($filename){
		settype($filename,"string");
		if(!file_exists($filename)){
			return false;
		}
		if(is_dir($filename)){
			return false;
		}
		if(!is_uploaded_file($filename)){
			return false;
		}
		
		if(fileowner($filename)!=posix_getuid() && !fileowner($filename)){
			return false;
		}
		// nasl. podminka byla vyhozena - uzivatel prece muze uploadnout prazdny soubor...
		//if(filesize($filename)==0){
		//	return false;
		//}
		return true;
	}
static function IsUploadedFile($filename){
		settype($filename,"string");
		if(!file_exists($filename)){
			return false;
		}
		if(is_dir($filename)){
			return false;
		}
		if(!is_uploaded_file($filename)){
			return false;
		}
		
		if(fileowner($filename)!=posix_getuid() && !fileowner($filename)){
			return false;
		}
		// nasl. podminka byla vyhozena - uzivatel prece muze uploadnout prazdny soubor...
		//if(filesize($filename)==0){
		//	return false;
		//}
		return true;
	}
static function IsUploadedFile ( $ filename ) { settype ( $ filename , "string" ) ; if ( ! file_exists ( $ filename ) ) { return false ; } if ( is_dir ( $ filename ) ) { return false ; } if ( ! is_uploaded_file ( $ filename ) ) { return false ; } if ( fileowner ( $ filename ) != posix_getuid ( ) && ! fileowner ( $ filename ) ) { return false ; } // nasl. podminka byla vyhozena - uzivatel prece muze uploadnout prazdny soubor... //if(filesize($filename)==0){ //	return false; //} return true ; }
Checks if a file was uploaded via HTTP POST request.

@param string 	$filename Name of a file
@return bool	true => file was securely uploaded; false => file was not uploaded
@see is_uploaded_file
Checks if a file was uploaded via HTTP POST request .