Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/public/index.php
7382 views
1
<?php
2
3
/**
4
* Laravel - A PHP Framework For Web Artisans.
5
*
6
* @author Taylor Otwell <[email protected]>
7
*/
8
define('LARAVEL_START', microtime(true));
9
10
/*
11
|--------------------------------------------------------------------------
12
| Check If Application Is Under Maintenance
13
|--------------------------------------------------------------------------
14
|
15
| If the application is maintenance / demo mode via the "down" command we
16
| will require this file so that any pre-rendered template can be shown
17
| instead of starting the framework, which could cause an exception.
18
|
19
*/
20
21
if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) {
22
require __DIR__ . '/../storage/framework/maintenance.php';
23
}
24
25
/*
26
|--------------------------------------------------------------------------
27
| Register The Auto Loader
28
|--------------------------------------------------------------------------
29
|
30
| Composer provides a convenient, automatically generated class loader for
31
| our application. We just need to utilize it! We'll simply require it
32
| into the script here so that we don't have to worry about manual
33
| loading any of our classes later on. It feels great to relax.
34
|
35
*/
36
37
require __DIR__ . '/../vendor/autoload.php';
38
39
/*
40
|--------------------------------------------------------------------------
41
| Turn On The Lights
42
|--------------------------------------------------------------------------
43
|
44
| We need to illuminate PHP development, so let us turn on the lights.
45
| This bootstraps the framework and gets it ready for use, then it
46
| will load up this application so that we can run it and send
47
| the responses back to the browser and delight our users.
48
|
49
*/
50
51
$app = require_once __DIR__ . '/../bootstrap/app.php';
52
53
/*
54
|--------------------------------------------------------------------------
55
| Run The Application
56
|--------------------------------------------------------------------------
57
|
58
| Once we have the application, we can handle the incoming request
59
| through the kernel, and send the associated response back to
60
| the client's browser allowing them to enjoy the creative
61
| and wonderful application we have prepared for them.
62
|
63
*/
64
65
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
66
67
$response = $kernel->handle(
68
$request = Illuminate\Http\Request::capture()
69
);
70
71
$response->send();
72
73
$kernel->terminate($request, $response);
74
75