예제 #1
0
function openpne_display_error($errors = array(), $notfound = false)
{
    $smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']);
    $smarty->setOutputCharset('SJIS');
    $smarty->assign('notfound', $notfound);
    if (OPENPNE_DEBUGGING) {
        $smarty->assign('errors', (array) $errors);
        $smarty->assign('debug_backtrace', util_filter_backtrace(debug_backtrace()));
    }
    $smarty->ext_display('error.tpl');
    exit;
}
예제 #2
0
function ktai_display_error($errors)
{
    $smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']);
    $smarty->setOutputCharset('SJIS');
    $smarty->templates_dir = 'ktai/templates';
    $smarty->assign('inc_ktai_header', fetch_inc_ktai_header());
    $smarty->assign('inc_ktai_footer', fetch_inc_ktai_footer());
    $smarty->assign('errors', (array) $errors);
    $smarty->assign('ktai_color_config', util_get_color_config_ktai());
    $smarty->ext_display('error.tpl');
    exit;
}