Location: PHPKode > projects > Polaring > view/errorReport.php
<?php 
// vim: sw=4:ts=4
/**
* @version 00.04.09
* @package polaring
* @license This component in released under the GNU/GPL License
*
* Package is based upon `Polar Hrm Webbased Application',
* found at http://users.pandora.be/oppiekes/polar/
*
* File: view/errorReport.php
* Role: Report errors to user
*
**/

class errorReport {

    function noDir($dir, $setting) {
	echo "<h3>".strings::expression("error", "Error")."!</h3>\n".
	    "<p>".$setting." ".strings::expression(
		"error", "notFound").
		"<br />".$dir.
	    "</p>\n".	
	    "<p>".strings::expression("error", "loadCancelled").
	    "<br />".strings::expression("error", "checkSettings").
	    "</p>\n";

	die;
    } // end function noDir


    function notValidIp($ip) {
	echo "<h3>".strings::expression("error", "Error").
	    "!</h3>\n".
	    "<p>".strings::expression("error", "notValidIp").
	    " (".$ip.") <br />".strings::expression("error",
		"loadCancelled")."</p>\n";

	return(false);
    } // end function notValidIp


} // end class errorReport

?>
Return current item: Polaring