// // This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. // // To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/1.0/ // // or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. // // Francais (brouillon): http://creativecommons.org/projects/international/fr/translated-license // ////////////////////////////////////////////////////////////////////////////////////////////////////// // Gestion des Erreurs // v0.1.0 $cfg = $GLOBALS[cfg]; if(!function_exists('str_split')) { function str_split($str, $length = 1) { if (!is_string($str)|| !is_numeric($length) || $length == 0) return FALSE; $strArr = array(); for ($i = 0; $i < strlen($str); $i += $length) { if (strlen(substr($str, $i)) < $length) $strArr[] = substr($str, $i); else $strArr[] = substr($str, $i, $length); } return $strArr; } } if($statut == "FORBIDDEN" || $statut == "NOT_ALLOWED") header("HTTP/1.0 403 Forbidden"); elseif($statut == "NO_JOURNAL" || $statut == "NOT_FOUND") header("HTTP/1.0 404 Not Found"); else header("HTTP/1.0 200 OK"); echo '
Peut-être cherchez-vous un de ces journaux?
"; //print_r($GLOBALS); ?>