[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/ -> 404.php (source)

   1  <?php
   2  
   3  /* Reminder: always indent with 4 spaces (no tabs). */
   4  // +---------------------------------------------------------------------------+
   5  // | Geeklog 1.3                                                               |
   6  // +---------------------------------------------------------------------------+
   7  // | 404.php                                                                   |
   8  // |                                                                           |
   9  // | Geeklog "404 Not Found" page                                              |
  10  // +---------------------------------------------------------------------------+
  11  // | Copyright (C) 2000-2005 by the following authors:                         |
  12  // |                                                                           |
  13  // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
  14  // |          Jason Whittenburg - jwhitten AT securitygeeks DOT com            |
  15  // |          Dirk Haun         - dirk AT haun-online DOT de                   |
  16  // +---------------------------------------------------------------------------+
  17  // |                                                                           |
  18  // | This program is free software; you can redistribute it and/or             |
  19  // | modify it under the terms of the GNU General Public License               |
  20  // | as published by the Free Software Foundation; either version 2            |
  21  // | of the License, or (at your option) any later version.                    |
  22  // |                                                                           |
  23  // | This program is distributed in the hope that it will be useful,           |
  24  // | but WITHOUT ANY WARRANTY; without even the implied warranty of            |
  25  // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
  26  // | GNU General Public License for more details.                              |
  27  // |                                                                           |
  28  // | You should have received a copy of the GNU General Public License         |
  29  // | along with this program; if not, write to the Free Software Foundation,   |
  30  // | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
  31  // |                                                                           |
  32  // +---------------------------------------------------------------------------+
  33  //
  34  // $Id: 404.php,v 1.10 2005/06/23 08:06:09 dhaun Exp $
  35  
  36  require_once  ('lib-common.php');
  37  
  38  $display = COM_siteHeader ('menu', $LANG_404[1]);
  39  $display .= COM_startBlock ($LANG_404[1]);
  40  if (isset ($_SERVER['SCRIPT_URI'])) {
  41      $url = strip_tags ($_SERVER['SCRIPT_URI']);
  42  } else {
  43      $pos = strpos ($_SERVER['REQUEST_URI'], '?');
  44      if ($pos === false) {
  45          $request = $_SERVER['REQUEST_URI'];
  46      } else {
  47          $request = substr ($_SERVER['REQUEST_URI'], 0, $pos);
  48      }
  49      $url = 'http://' . $_SERVER['HTTP_HOST'] . strip_tags ($request);
  50  }
  51  $display .= sprintf ($LANG_404[2], $url);
  52  $display .= $LANG_404[3];
  53  $display .= COM_endBlock ();
  54  $display .= COM_siteFooter ();
  55  
  56  echo $display
  57  
  58  ?>


Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics