validate()){ require_once(BASEPATH . '/includes/plugins/login/login.php'); exit(); } } /****************************/ /* MANAGE DOWNLOADS */ /* */ if(strpos(Environment::get('PATH_INFO'), DOWNLOAD_ROUTE) === 1){ require_once(dirname(__FILE__) . '/includes/core/classes/download/download.php'); $download = new Download(str_replace(DOWNLOAD_ROUTE, '', $url)); echo $download->downloadFile(); /****************************/ /****************************/ }else{ /****************************/ /* MANAGE INDEX PAGE */ /* */ if($url == '' || Language::isAvailable($url)){ $page = new IndexPage($url); require_once(dirname(__FILE__).'/includes/themes/default/index-template.php'); //$page->show(); } /****************************/ /****************************/ /****************************/ /* MANAGE EVERYTHING ELSE */ /* */ else { $page = new Page($url); require_once(dirname(__FILE__).'/includes/themes/default/core-template.php'); //$page->show(); } /****************************/ /****************************/ }