/** * This is the "soft" error handler as well as a general "Hey Link!" notifier. * Will cancel execution, wipe the buffer and display a message instead (Eg. "You have watched Username"). * * @param string $msg The message to be displayed * @param string $return An URL. Page will autoredirect (and offer a clickable link) to the url specified. * @return void */ function SysMessage($msg, $return) { require_once $_SERVER['DOCUMENT_ROOT'] . '/sys/Render.php'; // Just incase it hasn't already been included. ob_clean(); // Remove whatever output already present, we won't need it. echo Renderer::GetSysMessageHTML(); //Ask the renderer to render a complete SysMessage HTML template, and output it. exit; // This should boot us directly to FatalErrorHandler which will output everything. }