# Copyright (c) 2007 Erwan Briand # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # ***** END LICENSE BLOCK ***** include("include/erreurs.inc.php"); switch ($_SERVER['REDIRECT_STATUS']) { case 400: GenerateErrorPage ("400","Bad Request",$txt); break; case 401: GenerateErrorPage ("401","Unauthorized",$txt); break; case 403: GenerateErrorPage ("403","Forbidden",$txt); break; case 404: GenerateErrorPage ("404","Not Found",$txt); break; case 500: GenerateErrorPage ("500","Internal Server Error",$txt); break; case 503: GenerateErrorPage ("503","Service Unavailable",$txt); } ?>