3 // error_reporting(E_ERROR | E_WARNING | E_PARSE);
5 // All installation specific parameters should be in a file
6 // that is not part of the standard distribution.
7 if (!file_exists(dirname(__FILE__
)."/config.php")) {
11 <title
>Elgg installation
</title
>
14 <h1
>Elgg isn
't ready to run just yet.</h1>
16 There isn't a whole lot of work to
do to get up
and running
, but
17 there is a bit
. Here
's what you have to do:
20 <li>Read the INSTALL file that came with your installation package.
21 <li><a href="_elggadmin/">Click here to use the visual installer</a>.</li>
24 If you have any problems, head over to the main Elgg site
25 at <a href="http://elgg.org/">Elgg.org</a>.
32 require_once(dirname(__FILE__)."/config.php");
34 // Check for .htaccess
35 if (!file_exists(dirname(__FILE__)."/.htaccess")) {
39 <title>Elgg installation</title>
42 <h1>Elgg still isn't ready to run just yet
. (Sorry
.)</h1
>
44 You
're going to need to rename the <i>htaccess-dist</i> file that
45 came with your installation (it's in the main installation directory
)
49 If you
're using a Windows <i>server</i>, this is a bit of a problem.
50 Windows doesn't like files starting in a period
,
51 but there
's a workaround: open htaccess-dist in Notepad, click Save As,
52 change the file type pulldown to all files (*.*), and type .htaccess
56 If you're using any other kind of server
, all is well with the world
.
57 (If you
're uncertain, try renaming the file: most servers run on Linux
58 or a similar operating system.)
61 Read the INSTALL file that came with your installation for more information
62 about installing Elgg.
70 // Check config values make sense
71 require_once(dirname(__FILE__).'/sanitychecks
.php
');
73 /***************************************************************************
75 ****************************************************************************/
78 require_once($CFG->dirroot.'lib
/cache
/lib
.php
');
81 require_once($CFG->dirroot.'lib
/datalib
.php
');
84 require_once($CFG->dirroot.'lib
/elgglib
.php
');
87 require_once($CFG->dirroot.'lib
/constants
.php
');
89 /***************************************************************************
90 * CORE FUNCTIONALITY LIBRARIES
91 ****************************************************************************/
93 // Load setup.php which will initialize database connections and such like.
94 require_once($CFG->dirroot.'lib
/setup
.php
');
96 // Load required system files: do not edit this line.
97 require_once(dirname(__FILE__)."/includes_system.php");
100 require_once($CFG->dirroot.'lib
/userlib
.php
');
103 require_once($CFG->dirroot.'lib
/dbsetup
.php
');
105 /***************************************************************************
106 * PLUGIN INITIALISATION
107 ****************************************************************************/
110 @include($CFG->dirroot . "units/rpc/main.php");
112 /***************************************************************************
114 * This should make languages easier, although some kind of
115 * selection process will be required
116 ****************************************************************************/
119 include_once($CFG->dirroot . "content/general/main.php");
121 include_once($CFG->dirroot . "content/mainindex/main.php");
123 include_once($CFG->dirroot . "content/users/main.php");
125 /***************************************************************************
127 ****************************************************************************/
130 // include_once($CFG->dirroot . "help/mainindex/main.php");
132 // Visual editor (tinyMCE)
133 @include($CFG->dirroot . "units/tinymce/main.php");
135 // Calendaring system
136 // require($CFG->dirroot . "units/calendar/main.php");
138 /***************************************************************************
139 * START-OF-PAGE RUNNING
140 ****************************************************************************/
144 if ($allmods = get_list_of_plugins('mod
') ) {
145 foreach ($allmods as $mod) {
146 $mod_init = $mod . '_init
';
147 if (function_exists($mod_init)) {
153 // Walled garden checking: if we're not logged in
,
154 // and walled garden functionality is turned on, redirect to
156 if (!empty($CFG->walledgarden
) && (context
!= "external" ||
!defined("context")) && !logged_on
) {
157 header("Location: " . $CFG->wwwroot
. "login/index.php");