Location: PHPKode > projects > pkZoos Website > includes/error.php
<?php
	if(!defined('PK_MAGIC'))
		die('hack or what?');





	/* */

	$errors = 0;





	/* */

	function error_clear()
	{
    	global $errors;
    	global $tpl;

        $errors = 0;
        $tpl->add_vars(array('ERRORS' => 0));
	}





	/* */

    function error_add($title, $text)
    {
    	global $errors;
    	global $tpl;

    	$errors++;
		$tpl->add_vars(array('ERRORS' => $errors));
		$tpl->add_block_vars('errors', array('TITLE' => $title, 'TEXT' => $text));
    }
?>
Return current item: pkZoos Website