Projekt

Obecné

Profil

Stáhnout (3 KB) Statistiky
| Větev: | Tag: | Revize:
1 6daefa8c Petr Lukašík
<?php
2
/* SVN FILE: $Id: index.php 4424 2007-02-03 02:55:49Z phpnut $ */
3
/**
4
 * Short description for file.
5
 *
6
 * Long description for file
7
 *
8
 * PHP versions 4 and 5
9
 *
10
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
11
 * Copyright 2005-2007, Cake Software Foundation, Inc.
12
 *								1785 E. Sahara Avenue, Suite 490-204
13
 *								Las Vegas, Nevada 89104
14
 *
15
 * Licensed under The MIT License
16
 * Redistributions of files must retain the above copyright notice.
17
 *
18
 * @filesource
19
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
20
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
21
 * @package			cake
22
 * @subpackage		cake.app.webroot
23
 * @since			CakePHP(tm) v 0.2.9
24
 * @version			$Revision: 4424 $
25
 * @modifiedby		$LastChangedBy: phpnut $
26
 * @lastmodified	$Date: 2007-02-02 20:55:49 -0600 (Fri, 02 Feb 2007) $
27
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
28
 */
29
/**
30
 * Do not change
31
 */
32
	if (!defined('DS')) {
33
		 define('DS', DIRECTORY_SEPARATOR);
34
	}
35
/**
36
 * These defines should only be edited if you have cake installed in
37
 * a directory layout other than the way it is distributed.
38
 * Each define has a commented line of code that explains what you would change.
39
 *
40
 */
41
	if (!defined('ROOT')) {
42
		 //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
43
		 //You should also use the DS define to seperate your directories
44
		 define('ROOT', dirname(dirname(dirname(__FILE__))));
45
	}
46
	if (!defined('APP_DIR')) {
47
		 //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION';
48
		 define('APP_DIR', basename(dirname(dirname(__FILE__))));
49
	}
50
/**
51
 * This only needs to be changed if the cake installed libs are located
52
 * outside of the distributed directory structure.
53
 */
54
	if (!defined('CAKE_CORE_INCLUDE_PATH')) {
55
		 //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
56
		 //You should also use the DS define to seperate your directories
57
		 define('CAKE_CORE_INCLUDE_PATH', ROOT);
58
	}
59
///////////////////////////////
60
//DO NOT EDIT BELOW THIS LINE//
61
///////////////////////////////
62
	if (!defined('WEBROOT_DIR')) {
63
		 define('WEBROOT_DIR', basename(dirname(__FILE__)));
64
	}
65
	if (!defined('WWW_ROOT')) {
66
		 define('WWW_ROOT', dirname(__FILE__) . DS);
67
	}
68
	if (!defined('CORE_PATH')) {
69
		 if (function_exists('ini_set')) {
70
			  ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'));
71
			  define('APP_PATH', null);
72
			  define('CORE_PATH', null);
73
		 } else {
74
			  define('APP_PATH', ROOT . DS . APP_DIR . DS);
75
			  define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
76
		 }
77
	}
78
	require CORE_PATH . 'cake' . DS . 'bootstrap.php';
79
	if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
80
	} else {
81
		 $Dispatcher = new Dispatcher();
82
		 $Dispatcher->dispatch($url);
83
	}
84
	if (Configure::read() > 0) {
85
		 echo "<!-- " . round(getMicrotime() - $TIME_START, 4) . "s -->";
86
	}
87
?>