-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·74 lines (65 loc) · 2.38 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
/**
*------------------------------------------------------------------------------
* NOTICE
*------------------------------------------------------------------------------
* If you can't use the public/ folder as your Document Root, you may use
* this file instead. Make sure you also have a .htaccess along side this
* file.
*
* It is IMPORTANT to note that THIS IS LESS SECURE as the whole Pluma PHP Code
* is beaming across the universe.
*
* You MIGHT need to put an index(.php||.html) on every folder just to make sure.
*
* Anyway...
* Also note, you MIGHT need to change the files/folders permission.
* If the stylesheet and/or javascript files inside your module
* doesn't load, try to set the directory and files to 0777, or the equivalent
* on your system.
*
* END OF NOTICE
*------------------------------------------------------------------------------
*
* Pluma - A Web CMS
*
* @package Pluma
* @author John Lioneil P. Dionisio <john.dionisio1@gmail.com>
*
*------------------------------------------------------------------------------
* Register The Auto Loader
*------------------------------------------------------------------------------
*
* Composer provides a convenient, automatically generated class loader for
* our application. Code below will require it into the script here so that
* we don't have to worry about manual loading any of our classes later on.
*
*/
require __DIR__ . '/bootstrap/autoload.php';
/**
*------------------------------------------------------------------------------
* Error Reporting System & Exception Handlers
*------------------------------------------------------------------------------
*
* These files are for development environment only as it may print out
* sensitive information from the server.
*
*/
require __DIR__ . '/bootstrap/reporting.php';
require __DIR__ . '/bootstrap/exceptions.php';
/**
*------------------------------------------------------------------------------
* Application
*------------------------------------------------------------------------------
*
* Get the app instance.
*
*/
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->instance('path.public', realpath(__DIR__));
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);