$smarty->addPluginsDir($path . '/libs/plugins/'); // $smarty->template_dir = $path.'/themes/v2/'; $smarty->template_dir = $path . '/themes/' . $conf['theme'] . '/'; $smarty->compile_dir = $path . '/libs/cache/compile_tpl/'; $smarty->cache_dir = $path . '/libs/cache/'; $smarty->debugging = false; //$smarty->caching = $conf['timecache']; $smarty->caching = false; $smarty->force_compile = false; $smarty->cache_lifetime = $conf['timecache']; $smarty->config_dir = $path . '/libs/lang/'; $smarty->assign("lang", $lang); $userId = $startUp->isLogged(); $userData = $startUp->getMydata(); if ($userId && isset($_COOKIE['tokenAdmin'])) { $isAdmin = $startUp->checkAdmin($_COOKIE['tokenAdmin']); } else { $isAdmin = false; } $smarty->assign('name', $conf['title']); $smarty->assign("userId", $userId); $smarty->assign("userData", $userData); $smarty->assign("userName", $startUp->session_username); $smarty->assign("Admin", $isAdmin); $smarty->assign('userUpload', $userData->upload); $smarty->assign('userDownload', $userData->download); if (!isset($_GET["catid"])) { $_GET["catid"] = 'NULL'; } $cat_id = $_GET["catid"]; $smarty->assign('getCategoriescollapsed', $startUp->Categories('getlistcollapsed', $cat_id));