loadVariables($_GET, $_POST);
try {
$controller->run();
$content = $controller->getContent();
} catch (ControllerException $e) {
$content = 'WYJATEK, NIE ZNANE DANE';
} catch (AuthorizationException $e) {
$content = 'WYJATEK, NIE MASZ UPRAWNIEŃ';
}
$mod = new ModBase();
$menu = $mod->menu(true);
$smarty = new Smarty();
$smarty->assign('url', $GLOBALS['conf']['url']);
$smarty->assign('frame', $content);
$smarty->assign('load', 'password');
$smarty->assign('menu', $menu);
$smarty->display('window.tpl');
?>