. */ // ============================= // = Smarty (initialize class) = // ============================= require_once('libraries/smarty/Smarty.class.php'); $tpl = new Smarty(); $tpl->template_dir = 'templates/misc/'; $tpl->compile_dir = 'compile/'; if (!file_exists('includes/autoconf.php')) { $headline = "Fatal Error!"; $message = "No config-file found or it doesn't contain any data. Make sure your autoconf.php contains access-data for the database.

Die Konfigurations-Datei konnte nicht gefunden werden oder ist leer."; } else { if (!isset($_REQUEST['err'])) $_REQUEST['err'] = ''; switch ($_REQUEST['err']) { case 'db': $headline = $kga['lang']['errors'][0]['hdl']; $message = $kga['lang']['errors'][0]['txt']; break; default: $headline = "Unknown Error"; $message = "No error information was specified."; break; } } $tpl->assign('headline', $headline); $tpl->assign('message', $message); $tpl->display('error.tpl'); ?>