-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (27 loc) · 1011 Bytes
/
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
<?php
/** GoldenCMS Index File */
/**
* GoldenCMS Index File
*
* The first file runs the system
*
* @package Index
* @copyright http://goldencms.com
* @license http://goldencms.com/license.txt MIT License
*/
/** Current Working Directory */
define('CW_DIR', str_replace('\\', '/', getcwd()));
/** Content management framework directory, Can be inaccessible by visitors */
define('CMF_DIR', CW_DIR . '/cmf/');
/** Content management system data directory, Can be inaccessible by visitors */
define('CMS_DIR', CW_DIR . '/cms/');
/** Content management system public directory, Should be accessible by visitors */
define('PUB_DIR', CW_DIR . '/public/');
/** Load Framework */
$fw = require( CMF_DIR . 'libs/f3/base.php' );
/** Search path for user-defined PHP classes that the framework will attempt to autoload at runtime.
Accepts a pipe (|), comma (,), or semi-colon (;) as path separator. */
$fw['AUTOLOAD'] = CMF_DIR . '; ';
/** Bootstrap application */
CMF::bootstrap();
$fw->run();