Location: PHPKode > projects > Druid Defect Control > defectcontrol_0.9.4/tts/errors.php
<?php

/*  This module provides uniform error presentation. 
 *  Usually, a call to this functions will be followed by exit().
 */

/*
 *
 */
function tter_error($msg)
{
    echo "<br>".$msg."<br>";
}

/*
 *
 */
function tter_errorWithHeader($header, $msg)
{
    echo "<p><h3>".$header."</h3></p>";
    echo $msg."<br>";
}

/* This one will be used to reaplce echo/exit pairs. Will include some 
 * formatting, like a back button. 
 */
function tter_errorWithBackButton($msg, $header = "Error")
{
    echo "<link rel='stylesheet' href='style.css'>\n";
    echo "<p><h3 align='center'>".$header."</h3></p>";
    echo "<p align='center'>$msg</p>";
}

?>
Return current item: Druid Defect Control