index.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. Download page
  4. Copyright (C) 2015 Leah Woods <info@minifree.org>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Affero General Public License as
  7. published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Affero General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. header('Content-type: text/html; charset=utf-8');
  17. ob_start();
  18. include_once "../common/variables.php";
  19. include_once "../common/functions.php";
  20. ?>
  21. <!DOCTYPE html>
  22. <html>
  23. <head>
  24. <link rel="stylesheet" type="text/css" href="../common/css/main.css" />
  25. <title><?php echo gettext("Mirroring libreboot"); ?></title>
  26. </head>
  27. <body>
  28. <div>
  29. <h1><?php echo gettext("Mirroring libreboot"); ?></h1>
  30. <p>
  31. <?php echo gettext("Create a directory in your web directory (e.g. libreboot/) and put one of these in your crontab:"); ?>
  32. </p>
  33. <?php
  34. echo rsyncList($lbRsyncServer, gettext("No mirrors available in this range."), 0, count($lbRsyncServer));
  35. ?>
  36. <p>
  37. <?php echo gettext("Are you running a mirror? Contact the libreboot project, and the link will be added to the <a href='../download/'>download</a> page."); ?>
  38. </p>
  39. <p>
  40. <a href="../"><?php echo gettext("Back to home page"); ?></a>
  41. </p>
  42. </div>
  43. <?php
  44. include "../common/ccs.php";
  45. include "../common/footer.php";
  46. ?>
  47. </body>
  48. </html>
  49. <?php
  50. $strHtml = ob_get_clean();
  51. echo miniHtml($strHtml);
  52. ?>