Changeset 866 for trunk/index.php

Show
Ignore:
Timestamp:
10/22/2007 12:29:02 PM (14 months ago)
Author:
Shadowhand
Message:

Switching comments to Natural Docs. If you have ND installed, you can run makedocs.sh to generate a /user_guide/ directory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r715 r866  
    11<?php 
    22/* 
    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 */ 
    1518 
    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. 
    1924 */ 
    2025error_reporting(E_ALL); 
    2126 
    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. 
    2433 */ 
    2534ini_set('display_errors', TRUE); 
    2635 
    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. 
    2941 */ 
    3042$kohana_application = 'application'; 
    3143 
    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. 
    3448 */ 
    3549$kohana_system = 'system'; 
    3650 
    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. 
    4156 */ 
    4257define('EXT', '.php'); 
    4358 
    4459/* 
    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 */ 
    5264$docroot = pathinfo(str_replace('\\', '/', realpath(__FILE__))); 
    5365 
     66// Define the docroot 
    5467define('KOHANA',  $docroot['basename']); 
    5568define('DOCROOT', $docroot['dirname'].'/'); 
    5669 
     70// Define application and system paths 
    5771define('APPPATH', str_replace('\\', '/', realpath($kohana_application)).'/'); 
    5872define('SYSPATH', str_replace('\\', '/', realpath($kohana_system)).'/'); 
    5973 
     74// Clean up 
    6075unset($docroot, $kohana_application, $kohana_system); 
    6176