Changeset 866 for trunk/index.php
- Timestamp:
- 10/22/2007 12:29:02 PM (14 months ago)
- Files:
-
- 1 modified
-
trunk/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r715 r866 1 1 <?php 2 2 /* 3 | ----------------------------------------------------------------------------- 4 | Kohana - The Swift PHP5 Framework 5 | ----------------------------------------------------------------------------- 6 | This file acts as the "front controller" to your application. If you do not 7 | understand the configuration parameters below, please consult the Kohana 8 | User Guide for more information. 9 | ----------------------------------------------------------------------------- 10 | User Guide: http://kohanaphp.com/user_guide/en/kohana/installation.html 11 | ----------------------------------------------------------------------------- 12 | License: http://kohanaphp.com/user_guide/en/license.html 13 | ----------------------------------------------------------------------------- 14 */ 3 * File: index.php 4 * This file acts as the "front controller" to your application. You can 5 * configure your application and system directories here, as well as error 6 * reporting and error display. 7 * 8 * Kohana Source Code: 9 * author - Kohana Team 10 * copyright - (c) 2007 Kohana Team 11 * license - <http://kohanaphp.com/license.html> 12 * 13 * Credits: 14 * - Kohana was originally a fork of CodeIgniter <http://codeigniter.com> (c) 2006 Ellis Labs 15 * - XSS cleaning from popoon <http://www.popoon.org> (c) 2001-2006 Bitflux GmbH 16 * - HTML cleaning from <http://htmlpurifier.org> (c) 2006-2007 Edward Z. Yang 17 */ 15 18 16 /** 17 * Set the error reporting level. E_ALL is a good default. 18 * NOTE: Kohana will always ignore E_STRICT errors 19 /* 20 * About: Error Reporting 21 * Set the error reporting level. By default, Kohana will ignore E_NOTICE 22 * messages. Unless you have a special need, E_ALL is a good level for 23 * error reporting. 19 24 */ 20 25 error_reporting(E_ALL); 21 26 22 /** 23 * Enable or disable error reporting. You should always disable this in production. 27 /* 28 * About: Display Errors 29 * Enable or disable error display. During development, it is very helpful 30 * to display errors. However, errors can give away information about your 31 * application. For greater security, it is recommended that you disable 32 * the displaying of errors in production. 24 33 */ 25 34 ini_set('display_errors', TRUE); 26 35 27 /** 28 * Kohana application directory. This directory must contain a config/ directory. 36 /* 37 * About: Application Directory 38 * Kohana website application directory. Most of your controllers, models, and 39 * views will by placed in this directory. This directory must contain the 40 * <config/config.php> file. 29 41 */ 30 42 $kohana_application = 'application'; 31 43 32 /** 33 * Kohana system directory. This directory must contain the core/ directory. 44 /* 45 * About: System Directory 46 * Kohana core resources, includes libraries, drivers, language files, helpers, 47 * and library-related views. 34 48 */ 35 49 $kohana_system = 'system'; 36 50 37 /** 38 * If you have to rename all of the .php files distributed with Kohana to a 39 * different filename, you set the new extension here. Most people will never 40 * use this option. 51 /* 52 * About: Filename Extension 53 * If you have to rename all of the .php files distributed with Kohana to a 54 * different filename, you set the new extension here. Most people will never 55 * use this option. 41 56 */ 42 57 define('EXT', '.php'); 43 58 44 59 /* 45 | ----------------------------------------------------------------------------- 46 | PLEASE DO NOT EDIT BELOW THIS LINE, unless you understand the repercussions! 47 | ----------------------------------------------------------------------------- 48 | User Guide: http://kohanaphp.com/user_guide/en/general/bootstrapping.html 49 | ----------------------------------------------------------------------------- 50 | $Id$ 51 */ 60 * PLEASE DO NOT EDIT BELOW THIS LINE, unless you understand the repercussions! 61 * ---------------------------------------------------------------------------- 62 * $Id$ 63 */ 52 64 $docroot = pathinfo(str_replace('\\', '/', realpath(__FILE__))); 53 65 66 // Define the docroot 54 67 define('KOHANA', $docroot['basename']); 55 68 define('DOCROOT', $docroot['dirname'].'/'); 56 69 70 // Define application and system paths 57 71 define('APPPATH', str_replace('\\', '/', realpath($kohana_application)).'/'); 58 72 define('SYSPATH', str_replace('\\', '/', realpath($kohana_system)).'/'); 59 73 74 // Clean up 60 75 unset($docroot, $kohana_application, $kohana_system); 61 76
