summaryrefslogtreecommitdiffstats
path: root/site/rsync/index.php
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-05-31 21:27:12 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-05-31 21:27:12 (EDT)
commit2d82c07afdcdbbe47e91868d47cc4cff53e09b90 (patch)
tree4d5e39f09ad185aaf022bb26d36246c86e228cfb /site/rsync/index.php
parentc23543a9a6603f4e5b8a6f2801c6ec8fd874f14c (diff)
downloadlibreboot.org-2d82c07afdcdbbe47e91868d47cc4cff53e09b90.zip
libreboot.org-2d82c07afdcdbbe47e91868d47cc4cff53e09b90.tar.gz
libreboot.org-2d82c07afdcdbbe47e91868d47cc4cff53e09b90.tar.bz2
Split up download page into separate pages
Diffstat (limited to 'site/rsync/index.php')
-rw-r--r--site/rsync/index.php66
1 files changed, 66 insertions, 0 deletions
diff --git a/site/rsync/index.php b/site/rsync/index.php
new file mode 100644
index 0000000..3e7629c
--- /dev/null
+++ b/site/rsync/index.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ Download page
+ Copyright (C) 2015 Francis Rowe <info@gluglug.org.uk>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+ header('Content-type: text/html; charset=utf-8');
+ ob_start();
+ include_once "../common/variables.php";
+ include_once "../common/functions.php";
+?>
+<!DOCTYPE html>
+<html>
+<head>
+ <style type="text/css">
+ <?php echo miniCss(file_get_contents("../common/css/main.css")); ?>
+ </style>
+ <title><?php echo gettext("Mirroring libreboot"); ?></title>
+</head>
+
+<body>
+
+ <div>
+
+ <h1><?php echo gettext("Mirroring libreboot"); ?></h1>
+ <p>
+ <?php echo gettext("Create a directory in your web directory (e.g. libreboot/) and put one of these in your crontab:"); ?>
+ </p>
+
+ <?php
+ echo rsyncList($lbRsyncServer, gettext("No mirrors available in this range."), 0, count($lbRsyncServer));
+ ?>
+
+ <p>
+ <?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."); ?>
+ </p>
+
+ <p>
+ <a href="../"><?php echo gettext("Back to home page"); ?></a>
+ </p>
+
+ </div>
+
+<?php
+ include "../common/ccs.php";
+ include "../common/footer.php";
+?>
+
+</body>
+</html>
+<?php
+ $strHtml = ob_get_clean();
+ echo miniHtml($strHtml);
+?> \ No newline at end of file