Advertisement
Justman10000

UltimateFlarumMaster | index.php

Dec 15th, 2021
48
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /*
  4. * This file is part of Flarum.
  5. *
  6. * For detailed copyright and license information, please view the
  7. * LICENSE file that was distributed with this source code.
  8. */
  9.  
  10. $site = require './site.php';
  11.  
  12. /*
  13. |-------------------------------------------------------------------------------
  14. | Accept incoming HTTP requests
  15. |-------------------------------------------------------------------------------
  16. |
  17. | Every HTTP request pointed to the web server that cannot be served by simply
  18. | responding with one of the files in the "public" directory will be sent to
  19. | this file. Now is the time to boot up Flarum's internal HTTP server, which
  20. | will try its best to interpret the request and return the appropriate
  21. | response, which could be a JSON document (for API responses) or a lot of HTML.
  22. |
  23. */
  24.  
  25. $server = new Flarum\Http\Server($site);
  26. $server->listen();
Advertisement
RAW Paste Data Copied
Advertisement