[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/domit/ -> php_http_status_codes.php (source)

   1  <?php
   2  //*******************************************************************
   3  //php_http_status_codes list the http static codes as constants
   4  //*******************************************************************
   5  //by John Heinstein
   6  //johnkarl@nbnet.nb.ca
   7  //*******************************************************************
   8  //Version 0.1
   9  //copyright 2004 Engage Interactive
  10  //http://www.engageinteractive.com/dom_xmlrpc/
  11  //All rights reserved
  12  //*******************************************************************
  13  //Licensed under the GNU General Public License (GPL)
  14  //http://www.gnu.org/copyleft/gpl.html
  15  //*******************************************************************
  16  class php_http_status_codes {
  17      var $codes;
  18  
  19      function php_http_status_codes() {
  20          $this->codes = array(
  21              200 => 'OK',
  22              201 => 'CREATED',
  23              202 => 'Accepted',
  24              203 => 'Partial Information',
  25              204 => 'No Response',
  26              301 => 'Moved',
  27              302 => 'Found',
  28              303 => 'Method',
  29              304 => 'Not Modified',
  30              400 => 'Bad Request',
  31              401 => 'Unauthorized',
  32              402 => 'PaymentRequired',
  33              403 => 'Forbidden',
  34              404 => 'Not found',
  35              500 => 'Internal Error',
  36              501 => 'Not implemented',
  37              502 => 'Service temporarily overloaded',
  38              503 => 'Gateway timeout');
  39      } //php_http_status_codes
  40  
  41      function getCodes() {
  42          return $this->codes;
  43      } //getCodes
  44  
  45      function getCodeString($code) {
  46          return $this->codes[$code];
  47      } //getCodeString
  48  } //class php_http_status_codes
  49  
  50  ?>


Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics