From: web Date: Fri, 8 Oct 2004 19:47:01 +0000 (+0000) Subject: déplacement X-Git-Tag: xorg/old~1405 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cd3679a37d717530aaea3cd78675dd4061bb4ff2;p=platal.git déplacement --- diff --git a/htdocs/redirect/error.php b/htdocs/redirect/error.php deleted file mode 100644 index 53fb9d4..0000000 --- a/htdocs/redirect/error.php +++ /dev/null @@ -1,35 +0,0 @@ - - - - -404 Not Found - -

Not Found

-The requested URL was not found on this server.

-


-
Apache Server at www.carva.org Port 80
- diff --git a/htdocs/redirect/redirect.php b/htdocs/redirect/redirect.php deleted file mode 100644 index 31fb355..0000000 --- a/htdocs/redirect/redirect.php +++ /dev/null @@ -1,68 +0,0 @@ -"; -var_dump($_SERVER); -echo "";*/ - -// on coupe la chaîne REQUEST_URI selon les / et on ne garde que -// le premier non vide et éventuellement le second -// la config d'apache impose la forme suivante pour REQUEST_URI : -// REQUEST_URI = /prenom.nom(/path/fichier.hmtl)? -list($user, $path) = preg_split('/\//', $_SERVER["REQUEST_URI"], 2, PREG_SPLIT_NO_EMPTY); - -$result = $globals->db->query(" - SELECT redirecturl - FROM auth_user_md5 AS u -INNER JOIN aliases AS a ON (u.user_id=a.id AND type!='homonyme') - WHERE a.alias='$user'"); -if ($result and list($url) = mysql_fetch_row($result) and $url != '') { - // on envoie un redirect (PHP met automatiquement le code de retour 302 - if (!empty($path)) { - if (substr($url, -1, 1) == "/") - $url .= $path; - else - $url .= "/" . $path; - } - header("Location: http://$url"); - exit(); -} - -// si on est ici, il y a eu un erreur ou on n'a pas trouvé le redirect -header("HTTP/1.0 404 Not Found"); - -?> - - - -404 Not Found - -

Not Found

-The requested URL was not found on this server.

-


-
Apache Server at www.carva.org Port 80
-