A simple template for quick and dirty PHP apps.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. require_once __DIR__ . "/required.php";
  6. require_once __DIR__ . "/routes.php";
  7. ?>
  8. <!DOCTYPE html>
  9. <meta charset="UTF-8">
  10. <title><?php echo SITE_TITLE; ?></title>
  11. <link rel="icon" href="<?php echo FAVICON; ?>" />
  12. <?php if (USE_CDN) { ?>
  13. <link href="https://static.netsyms.net/bootstrap/4/bootstrap.min.css" rel="stylesheet" />
  14. <script src="https://static.netsyms.net/jquery/jquery-3.3.1.slim.min.js"></script>
  15. <script src="https://static.netsyms.net/bootstrap/4/bootstrap.min.js"></script>
  16. <script async defer src="https://static.netsyms.net/fontawesome/5.0/fontawesome-all.min.js"></script>
  17. <?php } else { ?>
  18. <link href="assets/static/bootstrap.materia.min.css" rel="stylesheet" />
  19. <script src="assets/static/jquery-3.3.1.slim.min.js"></script>
  20. <script src="assets/static/bootstrap.min.js"></script>
  21. <script async defer src="assets/static/fontawesome-all.min.js"></script>
  22. <?php } ?>
  23. <?php
  24. if (empty($_GET['page'])) {
  25. include __DIR__ . "/routes/" . Routes::getRoute();
  26. } else {
  27. include __DIR__ . "/routes/" . Routes::getRoute($_GET['page']);
  28. }
  29. ?>