Changeset 1378
- Timestamp:
- 12/06/07 02:32:15 (9 months ago)
- Files:
-
- devel/config-dist.php (modified) (1 diff)
- devel/doc (added)
- devel/doc/CHANGELOG (moved) (moved from devel/CHANGELOG)
- devel/doc/CONTRIBUTORS (moved) (moved from devel/CONTRIBUTORS)
- devel/doc/IIS-INSTALL (moved) (moved from devel/IIS-INSTALL)
- devel/doc/INSTALL (moved) (moved from devel/INSTALL)
- devel/doc/LICENSE (moved) (moved from devel/LICENSE)
- devel/doc/README (moved) (moved from devel/README)
- devel/doc/UPGRADE (moved) (moved from devel/UPGRADE)
- devel/doc/install.doc (copied) (copied from devel/install.doc)
- devel/home.php (deleted)
- devel/includes.php (modified) (3 diffs)
- devel/includes_system.php (deleted)
- devel/index.php (modified) (1 diff)
- devel/index2.php (deleted)
- devel/lib/config-defaults.php (moved) (moved from devel/config-defaults.php) (1 diff)
- devel/lib/sanitychecks.php (moved) (moved from devel/sanitychecks.php)
- devel/units (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/config-dist.php
r1327 r1378 2 2 // ELGG system configuration parameters. 3 3 // You could override default values here, to see all available 4 // options see config-defaults.php4 // options see lib/config-defaults.php 5 5 // Note: some values are override by the values stored in database 6 6 // through admin manager devel/includes.php
r1327 r1378 33 33 34 34 // Default config values 35 require_once(dirname(__FILE__).'/ config-defaults.php');35 require_once(dirname(__FILE__).'/lib/config-defaults.php'); 36 36 // override config values 37 37 if (is_readable(dirname(__FILE__).'/config.php')) { … … 82 82 83 83 // Check config values make sense 84 require_once(dirname(__FILE__).'/ sanitychecks.php');84 require_once(dirname(__FILE__).'/lib/sanitychecks.php'); 85 85 86 86 /*************************************************************************** … … 107 107 require_once($CFG->dirroot.'lib/setup.php'); 108 108 109 // Load required system files: do not edit this line. 110 require_once(dirname(__FILE__)."/includes_system.php"); 109 // Plug-in engine (must be loaded first) 110 require($CFG->dirroot . "lib/engine.php"); 111 112 // Language / internationalisation 113 //@todo All the libraries has a strong dependence with this 'plugin' 114 require_once($CFG->dirroot . "mod/gettext/lib.php"); 115 116 // XML parsing 117 require($CFG->dirroot . "lib/xmllib.php"); 111 118 112 119 // User functions devel/index.php
r1343 r1378 4 4 5 5 require_once(dirname(__FILE__)."/includes.php"); 6 7 $context = isloggedin() ? 'frontpage_loggedin' : 'frontpage_loggedout'; 8 $title = $CFG->sitename; 9 6 10 templates_page_setup(); 11 templates_page_output($title, null, $context); 7 12 8 if (function_exists('pages_frontpage')) {9 $page = pages_frontpage(isloggedin());10 $context = null;11 $title = $page->title;12 $body = $page->content;13 } else {14 $context = isloggedin() ? 'frontpage_loggedin' : 'frontpage_loggedout';15 $title = $CFG->sitename;16 $body = null;17 }18 19 templates_page_output($title, $body, $context);20 13 ?> devel/lib/config-defaults.php
r1327 r1378 22 22 // NB: **MUST** have a final slash at the end 23 23 24 $CFG->dirroot = dirname( __FILE__) . '/'; // default current directory24 $CFG->dirroot = dirname(dirname(__FILE__)) . '/'; // default current directory 25 25 26 26 // Email address of the system (eg elgg-admin@bogton.edu)
