txtdb(DATADIR,CACHEDIR); $user->userIsLogged(); //---[Object Template Start]-------------------------------- $tpl=new Template('./template/'.$config['Style'],CACHEDIR); //---[Load Language]---------------------------------------- $langFile='./lang/'.$config['Lang'].'.lang.php'; $langCache=CACHEDIR.'/lang['.$config['Lang'].'].cache.php'; getCache($lang,$langFile,$langCache); //---[Set Module]------------------------------------------- $modFile='./mods/'.$modName.'.php'; if(!file_exists($modFile)) $modFile='./mods/index.php'; //---[Require Modules]-------------------------------------- require_once($modFile); require_once('./mods/header.php'); require_once('./mods/footer.php'); //---[Navigation As Rank]----------------------------------- if($user->logined){ $tpl->set_block_var('LOGINED'); }else{ $tpl->set_block_var('LOGIN'); } if($user->user['rank']==1) $tpl->set_block_var('ADMIN'); if($user->user['rank']<=$config['AddLog']) $tpl->set_block_var('ADDLOG'); //---[Parse Template]--------------------------------------- $tpl->pparse('tplHeader'); $tpl->pparse('tplModule'); $tpl->pparse('tplFooter'); //---[Output]----------------------------------------------- echo ''; ob_end_flush(); ?>