. */ if (!defined('IS_LOGIN')) define('IS_LOGIN', false); require_once dirname(dirname(__FILE__)) . '/include/init.php'; $tpl->cache = 0; $tpl->template_dir = BASE_PATH . '/admin/templates'; $tpl->compile_dir = BASE_PATH . '/cache/compiled_admin'; $nk->setWebPath(true); $tpl->assign('web_path', $nk->webPath); if (!IS_LOGIN && !$nk->is_logged()) { header('Location: ./login.php'); exit; } ?>