Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1040 → Rev 1041

/trunk/erreur_http.php
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.1 2006-10-18 10:18:05 jp_milcent Exp $
// CVS : $Id: erreur_http.php,v 1.2 2006-10-26 16:29:52 jp_milcent Exp $
/**
* Gestion des erreurs HTTP
*
33,7 → 33,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2006-10-18 10:18:05 $
*@version $Revision: 1.2 $ $Date: 2006-10-26 16:29:52 $
// +------------------------------------------------------------------------------------------------------+
*/
 
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, $chemin_papyrus, $i18n, $_GET['erreur'], $_SERVER['REQUEST_URI']));
header ('Location: '.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.1 2006/10/18 10:18:05 jp_milcent
* Gestion des erreurs HTTP par Papyrus.
*
* Revision 1.5 2006/10/18 09:27:32 jp_milcent
* Gestion des erreurs 404 uniquement.
*
/trunk/papyrus/configuration/pap_config_avancee.inc.php
22,7 → 22,7
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// | |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: pap_config_avancee.inc.php,v 1.24 2006-10-18 10:18:04 jp_milcent Exp $
// CVS : $Id: pap_config_avancee.inc.php,v 1.25 2006-10-26 16:29:52 jp_milcent Exp $
/**
* Page de configuration avancée de Papyrus
*
36,7 → 36,7
*@author Alexandre GRANIER <alex@tela-botanica.org>
*@author Laurent COUDOUNEAU <laurent.coudouneau@ema.fr>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.24 $ $Date: 2006-10-18 10:18:04 $
*@version $Revision: 1.25 $ $Date: 2006-10-26 16:29:52 $
// +------------------------------------------------------------------------------------------------------+
*/
 
124,8 → 124,8
define('PAP_URL_REECRITURE_SEP', ':');
/** Chemin et nom du fichier affichant une erreur HTTP.*/
define('PAP_FICHIER_ERREUR_HTTP', PAP_CHEMIN_RACINE.'sites/commun/%s/http_erreurs/erreur%s.php');
/** Chemin et nom du fichier affichant une erreur HTTP.*/
define('PAP_URL_ERREUR_HTTP', '%ssites/commun/%s/http_erreurs/erreur%s.php?url=%s');
/** URL absolue du fichier affichant une erreur HTTP.*/
define('PAP_URL_ERREUR_HTTP', '/sites/commun/%s/http_erreurs/erreur%s.php?url=%s');
 
// +------------------------------------------------------------------------------------------------------+
/** Séparateur dans les chemins d'accès aux fichiers.*/
212,6 → 212,9
);
/* +--Fin du code ---------------------------------------------------------------------------------------+
* $Log: not supported by cvs2svn $
* Revision 1.24 2006/10/18 10:18:04 jp_milcent
* Gestion des erreurs HTTP par Papyrus.
*
* Revision 1.23 2006/10/11 18:04:11 jp_milcent
* Gestion avancée de la réecriture d'URL.
*