Changeset 519
- Timestamp:
- 08/28/06 13:42:03 (2 years ago)
- Files:
-
- devel/includes.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/includes.php
r513 r519 14 14 die('Elgg configuration error: .htaccess is missing. Please see INSTALL file.'); 15 15 } 16 16 17 17 // Check config values make sense 18 18 require_once(dirname(__FILE__).'/sanitychecks.php'); … … 21 21 * HELPER LIBRARIES 22 22 ****************************************************************************/ 23 23 24 24 // Load datalib 25 25 require_once($CFG->dirroot.'lib/datalib.php'); … … 30 30 // Load constants 31 31 require_once($CFG->dirroot.'lib/constants.php'); 32 32 33 33 /*************************************************************************** 34 34 * CORE FUNCTIONALITY LIBRARIES … … 37 37 // Load setup.php which will initialize database connections and such like. 38 38 require_once($CFG->dirroot.'lib/setup.php'); 39 39 40 // Load required system files: do not edit this line. 41 require_once(dirname(__FILE__)."/includes_system.php"); 42 40 43 // User functions 41 44 require_once($CFG->dirroot.'lib/userlib.php'); 42 43 // Load required system files: do not edit this line. 44 require_once(dirname(__FILE__)."/includes_system.php"); 45 45 46 46 // Check database 47 47 require_once($CFG->dirroot.'lib/dbsetup.php'); … … 50 50 * PLUGIN INITIALISATION 51 51 ****************************************************************************/ 52 52 53 53 // XMLRPC 54 54 // @include($CFG->dirroot . "units/rpc/main.php"); 55 55 56 56 if ($allmods = get_list_of_plugins('mod') ) { 57 57 foreach ($allmods as $mod) { … … 62 62 } 63 63 } 64 64 65 65 /*************************************************************************** 66 66 * CONTENT MODULES … … 68 68 * selection process will be required 69 69 ****************************************************************************/ 70 70 71 71 // General 72 72 include_once($CFG->dirroot . "content/general/main.php"); … … 75 75 // User-related 76 76 include_once($CFG->dirroot . "content/users/main.php"); 77 77 78 78 /*************************************************************************** 79 79 * HELP MODULES 80 80 ****************************************************************************/ 81 81 82 82 // Include main 83 83 include_once($CFG->dirroot . "help/mainindex/main.php"); 84 84 85 85 // Visual editor (tinyMCE) 86 86 @include($CFG->dirroot . "units/tinymce/main.php"); 87 87 88 88 // Calendaring system 89 89 // require($CFG->dirroot . "units/calendar/main.php"); 90 90 91 91 /*************************************************************************** 92 92 * START-OF-PAGE RUNNING 93 93 ****************************************************************************/ 94 94 95 95 run("init"); 96 96 97 97 // Walled garden checking: if we're not logged in, 98 98 // and walled garden functionality is turned on, redirect to 99 99 // the logon screen 100 100 if (!empty($CFG->walledgarden) && context != "external" && !logged_on) { 101 102 101 header("Location: " . $CFG->wwwroot . "login/index.php"); 103 102 exit(); 104 105 103 } 106 104 107 105 ?>
