if (!isset($_SESSION['connected'])) { header('Location: auth.php'); } if (file_exists("components/custom/" . $page . ".php")) { require_once "components/custom/" . $page . ".php"; } else { $globalInfosClass = new globalInfos(); $globalInfosClass->requireModel($page); //the model include 'libs/php/inclusion_' . $page . '.php'; //the file that instanciate the model, creates $datasManager and $oneElement $xml = $oneElement->getXmlConfig(); $myTools = new myTools(); $globalInfosClass->setGlobalXmlConfig(simplexml_load_file("config/global_config.xml")); $globalInfosClass->setGlobalXmlHierarchy(simplexml_load_file("config/hierarchy.xml")); $hierarchyInfos = $globalInfosClass->getHierarchyInfos($page, isset($_SESSION['hierarchy']) ? $_SESSION['hierarchy'] : false); //we get the session if exist, and turn it into a json object if (isset($_SESSION['searchFilters'][$page])) { $sessionJson = json_encode($_SESSION['searchFilters'][$page]); } ?> <!-- container --> <div class="container" id="content"> <div id="ariane"><?php if ($hierarchyInfos['ariane']) { echo $hierarchyInfos['ariane']; } ?> </div> <div class="hero-unit" id="gridContainer">