25 lines
617 B
PHP
25 lines
617 B
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 19/apr/2016
|
|
*/
|
|
|
|
require_once(dirname(__FILE__)."/load.php");
|
|
|
|
if (array_key_exists("id", $_GET)){
|
|
$id = intval($_GET["id"]);
|
|
$notizia = $notizia = GlobalVariables::get("dao")->getFirst("NotiziaModel",array("oldId"=>$id));
|
|
|
|
if (!is_null($notizia)){
|
|
Header( "HTTP/1.1 301 Moved Permanently" );
|
|
Header( "Location: http://www.ifattidinapoli.it/articolo.php?id=".$notizia->id );
|
|
|
|
// GUIHandler::redirect("articolo.php?id=".$notizia->id);
|
|
}
|
|
else {
|
|
Header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
|
|
echo "Requested page not found";
|
|
}
|
|
}
|
|
|
|
?>
|