* @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles */ /** * Error Class * * Standardized error reporting, mostly used to display fatal errors. */ class Error { /** * Fatal Error * * Displays a friendly error to the user via HTML, logs it then exits. * * @static * @param string $message the message to be displayed to the user */ public static function fatal($message) { $config = Config::getInstance(); if ($config->pickles['logging'] === true) { if (Log::error($message) == false) { $message .= '

This error message could not be logged as the log path or log file is not writable'; } } ?> <?php echo $_SERVER['SERVER_NAME']; ?> - error

Powered by PICKLES