[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 // redirige vers l'URL canonique de l'article, 20 // en passant le parametre recalcul=oui 21 22 include ("ecrire/inc_version.php"); 23 24 if (file_exists("inc-urls.php")) { 25 include_local ("inc-urls.php"); 26 } 27 else { 28 include_local ("inc-urls-dist.php"); 29 } 30 31 if ($id_article) { 32 $url = generer_url_article($id_article); 33 } 34 else if ($id_breve) { 35 $url = generer_url_breve($id_breve); 36 } 37 else if ($id_forum) { 38 $url = generer_url_forum($id_forum); 39 } 40 else if ($id_rubrique) { 41 $url = generer_url_rubrique($id_rubrique); 42 } 43 else if ($id_mot) { 44 $url = generer_url_mot($id_mot); 45 } 46 else if ($id_auteur) { 47 $url = generer_url_auteur($id_auteur); 48 } 49 /****** Ajout elebescond@clever-age.com **********/ 50 else if ($id_article_pdf) { 51 $url = generer_url_article_pdf($id_article_pdf); 52 } 53 /****** Fin ajout elebescond@clever-age.com **********/ 54 else { 55 $url = 'ecrire/'; 56 } 57 58 if (strpos($url, '?')) { 59 $super = '&'; 60 } 61 else { 62 $super = '?'; 63 } 64 65 if ($recalcul) 66 $url .= $super . "recalcul=$recalcul"; 67 /******* Ajout PREVIEW guillaume.grason@diplomatie.gouv.fr *******/ 68 elseif ($preview) 69 $url .= $super."preview=$preview"; 70 /******* Fin Ajout PREVIEW guillaume.grason@diplomatie.gouv.fr *******/ 71 72 @header ("Location: $url"); 73 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |