/** * Sends an HTML response to the browser * * @static * @return void */ public static function response() { $response = Response::getInstance(); chdir($response->getCWD()); $buffer = OutputBuffering::getInstance(); if (empty($response->_HTML)) { $response->_HTML = $buffer->getContents(); } if ($response->isAjax()) { $response->_ajaxResponse(); } else { $response->_htmlResponse(); } $buffer->flush(); exit; }
/** * This function will need to run at the bottom of all pages if output * buffering is turned on. It also needs to be passed $mode from the * PMA_outBufferModeGet() function or it will be useless. * * @return void */ public static function stop() { $buffer = OutputBuffering::getInstance(); if ($buffer->_on) { $buffer->_on = false; $buffer->_content = ob_get_contents(); ob_end_clean(); } }