public function Display ()
	{
		
		// Send headers
		
		header ("Expires: Sun, 23 Nov 1984 03:13:37 GMT");
		header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");
		header ("Cache-Control: no-store, no-cache, must-revalidate");
		header ("Cache-Control: post-check=0, pre-check=0", FALSE);
		header ("Pragma: no-cache");
		
		// Remove auth error if the user is authenticated
		// This is created during the user init even if they are later authenticated
		
		if (Parser::_ak ($this->result, 'authenticated', FALSE) !== 0)
		{
			unset ($this->result['auth_error']);
		}
		
		//ob_start ('ob_gzhandler');
		
		// Return
		
		switch ($this->returnType)
		{
				
			// XML
			
			case 'xml':
				
				header ('Content-Type: application/xml');
				echo $this->outputXML ();
				break;
			
			// Serialized
			
			case 'serialized':
				
				header ('Content-Type: application/vnd.php.serialized');
				echo $this->outputSerialized ();
				break;
				
			// ExtJS
			
			case 'extjs':
				
				// ExtJS must return success status, so convert the status variable
				
				$this->result['success']	= $this->result['status'] == 'ok';
				unset ($this->result['status']);
				
				header ('Content-Type: application/json');
				echo $this->outputJSON ();
				break;
                            
			// Special case for file uploads as chrome cannot handle JSON content type responses
                            
			case 'fileupload':
				
				// ExtJS must return success status, so convert the status variable
				
				$this->result['success']	= $this->result['status'] == 'ok';
				unset ($this->result['status']);
				
				header ('Content-Type: text/html');
				echo $this->outputJSON ();
				break;
				
                            
			// JSON
			
			case 'json':
			default:
				
				header ('Content-Type: application/json');
				echo $this->outputJSON ();
				break;
				
		}
		
		//ob_end_flush ();
		
	}