Inizio dockerizzazione

This commit is contained in:
2022-08-29 23:20:16 +02:00
parent b348b3a83d
commit 3d22f4cc6a
851 changed files with 1117 additions and 904 deletions
+25
View File
@@ -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";
}
}
?>