/* //print_r($_GET); // TEMP // INSTITUTION.CGOS.INFO // INSTITUTIONNEL.CGOS.INFO if ($_GET['lang']=="debug") { setcookie("debug_acess", "146a817ed86b4651238753121231", time()+(3600*24*360), "/", "cgos.info"); } if ( $_COOKIE['debug_acess']!="146a817ed86b4651238753121231" || $_GET['lang']!="debug") { header("Location: http://www.cgos.info/17/qui-sommes-nous/actualites/"); exit();; } //if ($_SERVER["REMOTE_ADDR"]=="194.250.38.174") { } $site_officiel = "institution.cgos.info"; if ($_SERVER["SERVER_NAME"]!=$site_officiel) { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://".$site_officiel.$_SERVER["REQUEST_URI"]); } */ if ($_SERVER["REMOTE_ADDR"]!='217.128.247.119' && $_SERVER["REMOTE_ADDR"]!='212.234.152.78') { // 212.234.152.78 // 194.250.38.174 header("Location: http://www.cgos.info/17/qui-sommes-nous/actualites/"); exit(); } if (!defined('ROOTDIR')) define("ROOTDIR", "."); require (ROOTDIR.'/config.php'); require (ROOTDIR.'/php/fonctions.php'); require (ROOTDIR.'/php/lang.php'); require (ROOTDIR.'/class/wavf/Images.php'); require (ROOTDIR.'/class/wavf/Fichiers.php'); require (ROOTDIR.'/class/wavf/Cache.php'); $cache = new Cache( ROOTDIR.'/cache', false, false ); $cache->rubrique_cache = "rubrique"; //$cache->region_cache = "17"; $cache->begin(); $lang = (!isset($_GET['lang']))?"fr":$_GET['lang']; $page = (!isset($_GET['page']))?"":$_GET['page']; $urlpage = $page . ((!isset($_GET['comm']))?"":"-".$_GET['comm']); $region = (!isset($_COOKIE['RegCgos']))?"":$_COOKIE['RegCgos']; $link = connectBDD( $DB_host_1, $DB_user_1, $DB_pass_1, $DB_bdd_1 ); ?>