Source for file pnuser.php
Documentation is available at pnuser.php
* Zikula Application Framework
* @copyright (c) 2001, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pnuser.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_System_Modules
* This function displays a generic error form
* The template used is based on the error type passed
* @param string $args['type'] error type ''404' or 'module'
* @param string $args['message'] custom error message
* @return string HTML string
// create an output object
// perform any error specific tasks
header("{ $protocol} 301 Moved Permanently");
header("{ $protocol} 403 Access Denied");
header("{ $protocol} 404 Not Found");
// assign the document info
// assign the list of registered errors
// return the template output
if ($pnRender->template_exists($template = "errors_user_{$type}.htm")) {
return $pnRender->fetch($template);
return $pnRender->fetch('errors_user_main.htm');
$pnRender->assign($args);
return $pnRender->fetch('errors_user_system.htm');
|