ffrs-fw-dl/index.php

85 lines
4.0 KiB
PHP
Raw Normal View History

<?php
/**
2017-06-04 10:26:25 +00:00
* @author Leo Maroni, Caspar Armster
* @copyright 2017 Leo Maroni, Caspar Armster, Freifunk Hennef/Freie Netzwerker e.V. (www.freifunk-hennef.de / www.freie-netzwerker.de)
* @license Licensed under GPLv3
*/
error_reporting (E_ALL ^ E_NOTICE);
require_once('community-config.inc.php');
require_once('config.inc.php');
if (count($community) == 1) {
header('Location: firmware.php?id=0');
exit;
}
?>
<!DOCTYPE html>
<html lang="de">
2017-06-04 10:26:25 +00:00
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2017-06-05 10:13:17 +00:00
<title>Freifunk Rhein-Sieg Firmware Downloader</title>
2017-06-04 10:26:25 +00:00
<meta name="author" content="Leo Maroni, Caspar Armster" />
2017-06-04 10:26:25 +00:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css" integrity="sha256-xbQIJkhfOw0Dry1H9lawvXRi9XcqdE8jDBZx1Op/mz8=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" integrity="sha256-bOWY8F32FGGbNDMPAnwWl/Lv9CKen4IQsNZ4RU9rcs0=" crossorigin="anonymous" />
<link rel="stylesheet" href="css/index.css">
2017-06-04 10:26:25 +00:00
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<script>
function selectChangeCommunity(x) {
var id = $(x).find('option:selected').attr("id")
2017-06-26 13:42:51 +00:00
location.href = 'subauswahl.php?id=' + id
2017-06-04 10:26:25 +00:00
}
</script>
</head>
<body>
<div class="container z-depth-3" id="outer-container">
<div id="inner-container">
<header class="center">
<h3 class="thin">Freifunk Rhein-Sieg Firmware Downloader</h3>
</header>
<div class="row">
2017-06-04 21:17:24 +00:00
<h5>W&auml;hle von der Karte: </h5>
2017-06-04 10:26:25 +00:00
<div id="map"></div>
</div>
2017-06-04 10:26:25 +00:00
<div class="row">
2017-06-04 21:17:24 +00:00
<h5>oder :</h5>
2017-06-04 10:26:25 +00:00
<div class="input-field col s12">
<select onchange="selectChangeCommunity(this)">
<option disabled selected value=""><?php echo $texte["ebene1_text"]?></option>
<?php $lastName = "" ?>
<?php foreach (array_slice($community, 0) as $i => $value): ?>
2017-06-26 13:42:51 +00:00
<?php if ($value['name'] != $lastName and $value['show']): ?>
2017-06-04 10:26:25 +00:00
<option id="<?php echo $value['community_id'] ?>" value="<?php echo $value['name']?>"><?php echo $value['name']?></option>
<?php endif ?>
<?php $lastName = $value['name'] ?>
<?php endforeach ?>
</select>
</div>
2017-06-04 10:26:25 +00:00
</div>
</div>
<footer class="page-footer">
<div class="footer-copyright">
<div class="container">
2018-03-01 06:13:21 +00:00
© 2017 <a class="grey-text text-lighten-4" href="https://labcode.de">Leo Maroni</a>, Caspar Armster / Licensed under GPLv3. Dies ist ein Community-Projekt von Freifunk Siegburg und Freifunk Troisdorf. Alle Firmwares sind Eigenentwicklungen der jeweiligen Communities.
<a href="http://www.freifunk-siegburg.de/impressum/" class="grey-text text-lighten-4">Impressum</a>
</div>
</div>
2017-06-04 10:26:25 +00:00
</footer>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js" integrity="sha256-GXUdrV9FHGDyzoSGD3O+jR3eYZaZZsjbsMvFhK3C0qg=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/js/materialize.min.js" integrity="sha256-lVmbGVbzHBkNHCUK0y+z2AyJei/v7jSNYppXTcq2FtU=" crossorigin="anonymous"></script>
<script>
var communityiesGeoJson = []
<?php foreach (array_slice($community, 0) as $i => $value):?>
2017-06-04 21:36:58 +00:00
communityiesGeoJson.push({"geojson": "<?php echo $value['geojson'] ?>", "name": "<?php echo $value['name'] ?>"})
2017-06-04 10:26:25 +00:00
<?php endforeach ?>
</script>
<script src="js/comunitychoose.js"></script>
</body>
</html>