-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
74 lines (64 loc) · 2.49 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Cygnite PHP Framework
*
* An open source application development framework for PHP 5.3x or newer
*
* License
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* http://www.cygniteframework.com/license.txt
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so I can send you a copy immediately.
*
* @Package : Cygnite Framework
* @Filename : index.php
* @Description : This index file is entry point of
* the framework to define framework base paths.
* @Author : Cygnite Dev Team
* @Copyright : Copyright (c) 2013 - 2014,
* @Link : http://www.cygniteframework.com
* @Since : Version 1.0
* @Filesource
* @Warning : Any changes in this library can cause
* abnormal behaviour of the framework
*/
/**
* ---------------------------------------------------------------
* Define Directory Separator
* ---------------------------------------------------------------
*/
define('DS', DIRECTORY_SEPARATOR);
/**
*---------------------------------------------------------------
* Define PHP file extension
* ---------------------------------------------------------------
*/
defined('EXT') or define('EXT', '.php');
/*---------------------------------------------------------------
* Now that we know the path, set the main path constants
* path to the packages folder.
* ---------------------------------------------------------------
*/
defined('CF_SYSTEM') or define('CF_SYSTEM', 'packages');
defined('CF_BOOTSTRAP') or define('CF_BOOTSTRAP', 'boot');
/* --------------------------------------------------------------
* Define application folder name
* ---------------------------------------------------------------
*/
defined('APPPATH') or define('APPPATH', 'apps');
//chdir(dirname(__DIR__));
/* --------------------------------------------------------------
* Define `root` directory name
* ---------------------------------------------------------------
*/
$dir = explode(DS, dirname(__FILE__));
defined('ROOTDIR') or define('ROOTDIR', rtrim(end($dir)));
defined('CYGNITE_BASE') or define('CYGNITE_BASE', dirname(__FILE__));
/* ---------------------------------------------------------------
* Lets start by include default core files
* ----------------------------------------------------------------
*/
require_once CF_BOOTSTRAP.DS.'init'.EXT;