root/releases/0.601/includes.php

Revision 298, 2.4 kB (checked in by carmartin, 3 years ago)

Includes should use full path given that we know where things are. Patch 3. Deprecate the "path" constant.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // error_reporting(E_ERROR | E_WARNING | E_PARSE);
4
5     // All installation specific parameters should be in a file
6     // that is not part of the standard distribution.
7         require_once(dirname(__FILE__)."/config.php");
8
9     // Load datalib
10         require_once($CFG->dirroot.'lib/datalib.php');
11
12     // Load elgglib
13         require_once($CFG->dirroot.'lib/elgglib.php');
14
15     // Load setup.php which will initialize database connections and such like.
16         require_once($CFG->dirroot.'lib/setup.php');
17
18     // Load required system files: do not edit this line.
19         require_once(dirname(__FILE__)."/includes_system.php");
20
21     // Load constants
22         require_once($CFG->dirroot.'lib/constants.php');
23         
24     // Check database
25         require_once($CFG->dirroot.'lib/dbsetup.php');
26
27     /***************************************************************************
28     *    INSERT PLUGINS HERE
29     *    Eventually this should be replaced with plugin autodiscovery
30     ****************************************************************************/
31         
32     // XMLRPC
33     //    @include($CFG->dirroot . "units/rpc/main.php");
34     
35     /***************************************************************************
36     *    CONTENT MODULES
37     *    This should make languages easier, although some kind of
38     *    selection process will be required
39     ****************************************************************************/
40         
41     // General
42         include_once($CFG->dirroot . "content/general/main.php");
43     // Main index
44         include_once($CFG->dirroot . "content/mainindex/main.php");
45     // User-related
46         include_once($CFG->dirroot . "content/users/main.php");
47     
48     /***************************************************************************
49     *    HELP MODULES
50     ****************************************************************************/
51         
52     // Include main
53         include_once($CFG->dirroot . "help/mainindex/main.php");
54         
55     // Visual editor (tinyMCE)
56         @include($CFG->dirroot . "units/tinymce/main.php");
57     
58     // Calendaring system
59     //    require($CFG->dirroot . "units/calendar/main.php");
60     
61     /***************************************************************************
62     *    START-OF-PAGE RUNNING
63     ****************************************************************************/
64     
65         run("init");
66         
67 ?>
Note: See TracBrowser for help on using the browser.