3 * Copyright 1999-2010 $ThePhpWikiProgrammingTeam
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", "Marc-Etienne Vargenau", "Joby Walker", "Tim Voght",
14 * This file is part of PhpWiki.
16 * PhpWiki is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
21 * PhpWiki is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License along
27 * with PhpWiki; if not, write to the Free Software Foundation, Inc.,
28 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 require_once (dirname(__FILE__) . '/lib/prepend.php');
32 require_once(dirname(__FILE__) . '/lib/IniConfig.php');
33 IniConfig(dirname(__FILE__) . "/config/config.ini");
35 ////////////////////////////////////////////////////////////////
37 // Check if we were included by some other wiki version
38 // (getimg.php, en, de, wiki, ...) or not.
39 // If the server requested this index.php fire up the code by loading lib/main.php.
40 // Parallel wiki scripts can now simply include /index.php for the
41 // main configuration, extend or redefine some settings and
42 // load lib/main.php by themselves. See the file 'wiki'.
43 // This overcomes the IndexAsConfigProblem.
45 // define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);
46 // is enough in the wiki file, plus the action definition in a .htaccess file
47 ////////////////////////////////////////////////////////////////
49 // If every page is just empty, comment the if (@is_dir line out,
50 // to force include "lib/main.php".
51 // Without the dir check it might fail for index.php via DirectoryIndex
52 if (@is_dir(SCRIPT_FILENAME) or realpath(SCRIPT_FILENAME) == realpath(__FILE__))
53 include(dirname(__FILE__) . "/lib/main.php");
59 // c-hanging-comment-ender-p: nil
60 // indent-tabs-mode: nil