lib/Minify.php
public function errorExit($header, $url = '', $msgHtml = '')
    {
        $url = htmlspecialchars($url, ENT_QUOTES);
        list(,$h1) = explode(' ', $header, 2);
        $h1 = htmlspecialchars($h1);
        // FastCGI environments require 3rd arg to header() to be set
        list(, $code) = explode(' ', $header, 3);
        header($header, true, $code);
        header('Content-Type: text/html; charset=utf-8');
        echo "<h1>$h1</h1>";
        if ($msgHtml) {
            echo $msgHtml;
        }
        if ($url) {
            echo "<p>Please see <a href='$url'>$url</a>.</p>";
        }
        exit;
    }
public function errorExit($header, $url = '', $msgHtml = '')
    {
        $url = htmlspecialchars($url, ENT_QUOTES);
        list(,$h1) = explode(' ', $header, 2);
        $h1 = htmlspecialchars($h1);
        // FastCGI environments require 3rd arg to header() to be set
        list(, $code) = explode(' ', $header, 3);
        header($header, true, $code);
        header('Content-Type: text/html; charset=utf-8');
        echo "<h1>$h1</h1>";
        if ($msgHtml) {
            echo $msgHtml;
        }
        if ($url) {
            echo "<p>Please see <a href='$url'>$url</a>.</p>";
        }
        exit;
    }
public function errorExit ( $ header , $ url = '' , $ msgHtml = '' ) { $ url = htmlspecialchars ( $ url , ENT_QUOTES ) ; list ( , $ h1 ) = explode ( ' ' , $ header , 2 ) ; $ h1 = htmlspecialchars ( $ h1 ) ; // FastCGI environments require 3rd arg to header() to be set list ( , $ code ) = explode ( ' ' , $ header , 3 ) ; header ( $ header , true , $ code ) ; header ( 'Content-Type: text/html; charset=utf-8' ) ; echo "<h1>$h1</h1>" ; if ( $ msgHtml ) { echo $ msgHtml ; } if ( $ url ) { echo "<p>Please see <a href='$url'>$url</a>.</p>" ; } exit ; }
Show an error page

@param string $header  Full header. E.g. 'HTTP/1.0 500 Internal Server Error'
@param string $url     URL to direct the user to
@param string $msgHtml HTML message for the client

@return void
@internal This is not part of the public API and is subject to change
@access private
Show an error page