2015-04-25 13:27:04 +00:00
|
|
|
<?php
|
2020-01-17 15:43:50 +00:00
|
|
|
|
2015-08-26 07:43:18 +00:00
|
|
|
/*
|
|
|
|
* This file is part of Flarum.
|
|
|
|
*
|
2020-01-05 21:31:04 +00:00
|
|
|
* For detailed copyright and license information, please view the
|
|
|
|
* LICENSE file that was distributed with this source code.
|
2015-08-26 07:43:18 +00:00
|
|
|
*/
|
|
|
|
|
2020-01-31 13:03:32 +00:00
|
|
|
$site = require '../site.php';
|
2015-04-25 13:27:04 +00:00
|
|
|
|
2020-01-31 13:03:32 +00:00
|
|
|
/*
|
|
|
|
|-------------------------------------------------------------------------------
|
|
|
|
| Accept incoming HTTP requests
|
|
|
|
|-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Every HTTP request pointed to the web server that cannot be served by simply
|
|
|
|
| responding with one of the files in the "public" directory will be sent to
|
|
|
|
| this file. Now is the time to boot up Flarum's internal HTTP server, which
|
|
|
|
| will try its best to interpret the request and return the appropriate
|
|
|
|
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
|
|
|
|
|
|
|
|
*/
|
2018-05-28 21:16:14 +00:00
|
|
|
|
2020-01-31 13:03:32 +00:00
|
|
|
$server = new Flarum\Http\Server($site);
|
2018-05-28 21:16:14 +00:00
|
|
|
$server->listen();
|