-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
68 lines (55 loc) · 1.71 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
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 'on');
/*
|--------------------------------------------------------------------------
| Statamic
|--------------------------------------------------------------------------
|
| Statamic is a flat-file, dynamic, and highly flexible publishing
| engine, built for developers, designers, and clients alike.
|
| @author Jack McDade ([email protected])
| @author Fred LeBlanc ([email protected])
| @copyright 2013 Statamic
|
*/
/*
|--------------------------------------------------------------------------
| Web Root
|--------------------------------------------------------------------------
|
| Lots of file level activities enjoy knowing right where web root is.
|
*/
define("BASE_PATH", str_replace('\\', '/', __DIR__));
/*
|--------------------------------------------------------------------------
| Running Above Web Root
|--------------------------------------------------------------------------
|
| To run Statamic above webroot, uncomment the following line. Make sure
| to update the public folder setting in your site config.
|
*/
// chdir('..');
/*
|--------------------------------------------------------------------------
| Autoloader
|--------------------------------------------------------------------------
|
| "Autoload" the application dependencies and libraries
|
*/
require_once BASE_PATH . '/_app/autoload.php';
/*
|--------------------------------------------------------------------------
| Start the Engine
|--------------------------------------------------------------------------
|
| All the heavy initialization and configuration happens right here.
| Let's get going!
|
*/
$app = require_once BASE_PATH . '/_app/start.php';
$app->run();