]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - index.php
(c) vargenau, improve wording
[SourceForge/phpwiki.git] / index.php
1 <?php // -*-php-*-
2 // iso-8859-1
3
4 /*
5 Copyright 1999,2000,2001,2002,2003,2004,2009 $ThePhpWikiProgrammingTeam 
6 = array(
7 "Steve Wainstead", "Clifford A. Adams", "Lawrence Akka", 
8 "Scott R. Anderson", "Jon Åslund", "Neil Brown", "Jeff Dairiki",
9 "Stéphane Gourichon", "Jan Hidders", "Arno Hollosi", "John Jorgensen",
10 "Antti Kaihola", "Jeremie Kass", "Carsten Klapp", "Marco Milanesi",
11 "Grant Morgan", "Jan Nieuwenhuizen", "Aredridel Niothke", 
12 "Pablo Roca Rozas", "Sandino Araico Sánchez", "Joel Uckelman", 
13 "Reini Urban", "Marc-Etienne Vargenau", "Joby Walker", "Tim Voght", 
14 "Jochen Kalmbach");
15
16 This file is part of PhpWiki.
17
18 PhpWiki is free software; you can redistribute it and/or modify
19 it under the terms of the GNU General Public License as published by
20 the Free Software Foundation; either version 2 of the License, or
21 (at your option) any later version.
22
23 PhpWiki 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 PhpWiki; if not, write to the Free Software
30 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
31 */
32
33 require_once (dirname(__FILE__).'/lib/prepend.php');
34 rcs_id('$Id$');
35
36 require_once(dirname(__FILE__).'/lib/IniConfig.php');
37 IniConfig(dirname(__FILE__)."/config/config.ini");
38
39 ////////////////////////////////////////////////////////////////
40 // PrettyWiki
41 // Check if we were included by some other wiki version 
42 // (getimg.php, en, de, wiki, ...) or not. 
43 // If the server requested this index.php fire up the code by loading lib/main.php.
44 // Parallel wiki scripts can now simply include /index.php for the 
45 // main configuration, extend or redefine some settings and 
46 // load lib/main.php by themselves. See the file 'wiki'.
47 // This overcomes the IndexAsConfigProblem.
48 // Generally a simple 
49 //   define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);
50 // is enough in the wiki file, plus the action definition in a .htaccess file
51 ////////////////////////////////////////////////////////////////
52
53 // If every page is just empty, comment the if (@is_dir line out,
54 // to force include "lib/main.php".
55 // Without the dir check it might fail for index.php via DirectoryIndex 
56 if (@is_dir(SCRIPT_FILENAME) or realpath(SCRIPT_FILENAME) == realpath(__FILE__))
57     include(dirname(__FILE__)."/lib/main.php");
58
59 // (c-file-style: "gnu")
60 // Local Variables:
61 // mode: php
62 // tab-width: 8
63 // c-basic-offset: 4
64 // c-hanging-comment-ender-p: nil
65 // indent-tabs-mode: nil
66 // End:   
67 ?>