Changeset 458 for trunk/index.php
- Timestamp:
- 09/01/2007 12:22:23 PM (15 months ago)
- Files:
-
- 1 modified
-
trunk/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r450 r458 33 33 */ 34 34 // Absolute path names for include purposes 35 define('APPPATH', realpath($kohana_application).DIRECTORY_SEPARATOR); unset($kohana_application);36 define('SYSPATH', realpath($kohana_system).DIRECTORY_SEPARATOR); unset($kohana_system);35 define('APPPATH', str_replace('\\', '/', realpath($kohana_application)).'/'); unset($kohana_application); 36 define('SYSPATH', str_replace('\\', '/', realpath($kohana_system)).'/'); unset($kohana_system); 37 37 // Information about the front controller 38 38 define('KOHANA', pathinfo(__FILE__, PATHINFO_BASENAME)); 39 define('DOCROOT', pathinfo(__FILE__, PATHINFO_DIRNAME). DIRECTORY_SEPARATOR);39 define('DOCROOT', pathinfo(__FILE__, PATHINFO_DIRNAME).'/'); 40 40 define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION)); 41 41 // Validate APPPATH 42 (is_dir(APPPATH) AND is_dir(APPPATH. DIRECTORY_SEPARATOR.'config')) or die42 (is_dir(APPPATH) AND is_dir(APPPATH.'/config')) or die 43 43 ( 44 44 'Your <code>$application_path</code> does not exist. '. … … 46 46 ); 47 47 // Validate SYSPATH 48 (is_dir(SYSPATH) AND file_exists(SYSPATH. DIRECTORY_SEPARATOR.'core'.DIRECTORY_SEPARATOR.'Bootstrap'.EXT)) or die48 (is_dir(SYSPATH) AND file_exists(SYSPATH.'/core/'.'Bootstrap'.EXT)) or die 49 49 ( 50 50 'Your <code>$kohana_system</code> does not exist. '. … … 52 52 ); 53 53 // Buckle those bootstraps! 54 require_once SYSPATH.'core '.DIRECTORY_SEPARATOR.'Bootstrap'.EXT;54 require_once SYSPATH.'core/Bootstrap'.EXT;
