Inizio dockerizzazione
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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"]." 410 Gone", true, 410);
|
||||
echo "Requested page not found";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user