[ PHPXref.com ] [ Generated: Sun Jul 20 21:03:08 2008 ] [ WiClear 0.9.0 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/admin/ -> index.php (source)

   1  <?php
   2  # ***** BEGIN LICENSE BLOCK *****
   3  # This file is part of WiClear.
   4  # Copyright (c) 2004 David Jobet. All rights
   5  # reserved.
   6  #
   7  # WiClear is free software; you can redistribute it and/or modify
   8  # it under the terms of the GNU General Public License as published by
   9  # the Free Software Foundation; either version 2 of the License, or
  10  # (at your option) any later version.
  11  #
  12  # WiClear is distributed in the hope that it will be useful,
  13  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15  # GNU General Public License for more details.
  16  #
  17  # You should have received a copy of the GNU General Public License
  18  # along with DotClear; if not, write to the Free Software
  19  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20  #
  21  # ***** END LICENSE BLOCK *****
  22  #
  23  # This file is heavily based on index.php of the dotclear project
  24  $file_path = __FILE__;
  25  $path      = dirname(__FILE__).'/../';
  26  
  27  require $path."/inc/classes/util.class.php";
  28  util::sessionWorkaround($path);
  29  
  30  require $path."admin/inc/prepend.inc.php";
  31  
  32  // Send HTTP headers
  33  $accept_xml =
  34          !empty($_SERVER['HTTP_ACCEPT']) &&
  35          strpos($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml') !== false;
  36  
  37  if ($accept_xml)
  38  {
  39    header('Content-Type: application/xhtml+xml');
  40  }
  41  else
  42  {
  43    header('Content-Type: text/html; charset='.wc_charset);
  44  }
  45  
  46  echo '<?xml version="1.0" encoding="'.wc_charset.'"?>';
  47  
  48  require $path."admin/inc/template.inc.php";
  49  
  50  require $path."admin/inc/append.inc.php";
  51  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]