]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - index2.php
more theme and templates docs
[SourceForge/phpwiki.git] / index2.php
1 <?php // -*-php-*-
2
3 /*
4 Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam = array(
5 "Steve Wainstead", "Clifford A. Adams", "Lawrence Akka", 
6 "Scott R. Anderson", "Jon Åslund", "Neil Brown", "Jeff Dairiki",
7 "Stéphane Gourichon", "Jan Hidders", "Arno Hollosi", "John Jorgensen",
8 "Antti Kaihola", "Jeremie Kass", "Carsten Klapp", "Marco Milanesi",
9 "Grant Morgan", "Jan Nieuwenhuizen", "Aredridel Niothke", 
10 "Pablo Roca Rozas", "Sandino Araico Sánchez", "Joel Uckelman", 
11 "Reini Urban", "Tim Voght", "Joseph (Joby) Walker");
12
13 This file is part of PhpWiki.
14
15 PhpWiki is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
19
20 PhpWiki is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with PhpWiki; if not, write to the Free Software
27 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28 */
29
30 define ('DEBUG', 1);
31 /////////////////////////////////////////////////////////////////////
32 // Part Null: Don't touch this!
33
34 define ('PHPWIKI_VERSION', '1.3.4pre');
35 require "lib/prepend.php";
36 rcs_id('$Id: index2.php,v 1.2 2002-10-16 18:09:14 zorloc Exp $');
37
38 require "config/config-user.php";
39 require "config/config-dist.php";
40
41 // Tested: Works with CGI also.
42 if (defined('VIRTUAL_PATH') and defined('USE_PATH_INFO')) {
43     if ($HTTP_SERVER_VARS['SCRIPT_NAME'] == VIRTUAL_PATH) {
44         include "lib/main.php";
45     }
46 } else {
47     if (defined('SCRIPT_NAME') and 
48         ($HTTP_SERVER_VARS['SCRIPT_NAME'] == SCRIPT_NAME)) {
49         include "lib/main.php";
50     } elseif (strstr($HTTP_SERVER_VARS['PHP_SELF'],'index.php')) {
51         include "lib/main.php";
52     }
53 }
54
55 // (c-file-style: "gnu")
56 // Local Variables:
57 // mode: php
58 // tab-width: 8
59 // c-basic-offset: 4
60 // c-hanging-comment-ender-p: nil
61 // indent-tabs-mode: nil
62 // End:   
63 ?>