-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
35 lines (30 loc) · 1.07 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
<?php
/**
* This is the main file of Spitfire, it is in charge of loading
* system settings (for custom operation) and also of summoning
* spitfire and loading the adequate controller for every single
* request. It also makes sure that error logging is sent to
* terminal / log file instead of to the user.
*
* @package Spitfire
* @author César de la Cal <[email protected]>
* @copyright 2012 Magic3W - All rights reserved
*/
/* Set error handling directives. AS we do not want Apache / PHP
* to send the data to the user but to our terminal we will tell
* it to output the errors. Thanks to this linux command:
* # tail -f *logfile*
* We can watch errors happening live. Grepping them can also help
* filtering.
*/
ini_set("log_errors", "1");
ini_set("error_log", "logs/error_log.log");
ini_set("display_errors", "0");
/* Include Spitfire core.
*/
include __DIR__ . '/bin/constants.php';
include 'spitfire/bootstrap.php';
include './vendor/autoload.php';
ini_set('memory_limit', '4G');/**/
/* Call the selected controller with the selected method. */
spitfire()->fire();