21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: erreur_http.php,v 1.2 2006-10-26 16:29:52 jp_milcent Exp $ |
// CVS : $Id: erreur_http.php,v 1.3 2007-04-19 16:53:20 neiluj Exp $ |
/** |
* Gestion des erreurs HTTP |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.2 $ $Date: 2006-10-26 16:29:52 $ |
*@version $Revision: 1.3 $ $Date: 2007-04-19 16:53:20 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
40,7 → 40,7 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// Définission de constantes |
// Définition de constantes |
/** Chemin et nom du fichier de configuration principal de Papyrus.*/ |
define('PAP_FICHIER_CONFIG', 'papyrus/configuration/pap_config.inc.php'); |
/** Chemin et nom du fichier de configuration avancée de Papyrus.*/ |
81,7 → 81,7 |
// Redirection vers le fichier erreur de Papyrus s'il existe |
$fichier_erreur = sprintf(PAP_FICHIER_ERREUR_HTTP, $i18n, $_GET['erreur']); |
if (file_exists($fichier_erreur)) { |
header ('Location: '.sprintf(PAP_URL_ERREUR_HTTP, $i18n, $_GET['erreur'], $_SERVER['REQUEST_URI'])); |
header ('Location: '.dirname(PAP_URL).sprintf(PAP_URL_ERREUR_HTTP, $i18n, $_GET['erreur'], $_SERVER['REQUEST_URI'])); |
} else { |
echo 'ERREUR Papyrus : Impossible de trouver le fichier de l\'erreur '.$_GET['erreur'].'<br />'. |
'Chemin fichier erreur : '.$fichier_erreur.' <br />'. |
94,6 → 94,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2006/10/26 16:29:52 jp_milcent |
* Correction erreur redirection en boucle. |
* |
* Revision 1.1 2006/10/18 10:18:05 jp_milcent |
* Gestion des erreurs HTTP par Papyrus. |
* |