<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     function
 * Name:     die
 * Version:     0.1
 * Date:     2003-04-09
 * Author:     Joscha Feth, joscha@feth.com, www.feth.com
 * Purpose:  Exits the template (script) with a die("message")
 * Params:
 *             optional    string    message    the die message to display
 * Usage:    {die}                -    exits
 *             {die message="foo"}    -    exits with output of a message called "foo"
 * Install: Drop into the plugin directory
 * -------------------------------------------------------------
 *        CHANGES:    2003-04-09        -    created
 *
 * -------------------------------------------------------------
 */
function smarty_function_die($params, &$smarty)
{
    die((string) 
$params["message"]);
}
?>