2016-07-24 16:06:10 +00:00
|
|
|
<?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
|
|
|
|
*/
|
2016-07-24 16:06:10 +00:00
|
|
|
error_reporting (E_ALL ^ E_NOTICE);
|
|
|
|
require_once('community-config.inc.php');
|
|
|
|
require_once('config.inc.php');
|
|
|
|
require_once('ffrouter.class.php');
|
|
|
|
$community_id = $_REQUEST['id'];
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
2017-06-04 10:26:25 +00:00
|
|
|
<html lang="de" xmlns:target="http://www.w3.org/1999/xhtml">
|
2016-07-24 16:06:10 +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" />
|
|
|
|
<title><?php echo $community[$community_id]["head_titel"]?></title>
|
|
|
|
|
2017-06-04 10:26:25 +00:00
|
|
|
<meta name="author" content="Leo Maroni, Caspar Armster" />
|
2016-07-24 16:06:10 +00:00
|
|
|
|
2017-06-04 10:26:25 +00:00
|
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
|
|
<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="css/community.css">
|
|
|
|
|
|
|
|
<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/materialize/0.98.2/js/materialize.min.js" integrity="sha256-lVmbGVbzHBkNHCUK0y+z2AyJei/v7jSNYppXTcq2FtU=" crossorigin="anonymous"></script>
|
|
|
|
<script src="js/firmware.js"></script>
|
2016-07-24 16:06:10 +00:00
|
|
|
|
|
|
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
|
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
|
|
|
|
|
|
|
<?php
|
2017-06-04 21:17:24 +00:00
|
|
|
if($community[$community_id]["linktoseite"] != null) {
|
|
|
|
header("Location: ".$community[$community_id]['linktoseite']);
|
|
|
|
die();
|
|
|
|
}
|
2016-07-24 16:06:10 +00:00
|
|
|
$firmware_download_path = $community[$community_id]["download_path"];
|
|
|
|
|
|
|
|
try {
|
|
|
|
require_once('ffrouter_parsen.function.php');
|
|
|
|
} catch(Exception $e) {
|
|
|
|
echo("Fehler: ".$e->getMessage());
|
2017-10-23 10:25:44 +00:00
|
|
|
echo(" Bitte kontaktiere leo@freifunk-siegburg.de");
|
2016-07-24 16:06:10 +00:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<?php
|
|
|
|
echo "var router_json = ".json_encode($router)."\n";
|
|
|
|
echo "var texte_json = ".json_encode($texte)."\n";
|
|
|
|
echo "var anzahl_hersteller = ".$anzahl_hersteller."\n";
|
|
|
|
$manufacturer = array();
|
|
|
|
foreach ($hersteller as $i => $value) {
|
|
|
|
array_push($manufacturer, $value['name']);
|
|
|
|
}
|
|
|
|
echo "var herstellername = ".json_encode($manufacturer)."\n";
|
|
|
|
|
2017-06-04 10:26:25 +00:00
|
|
|
$modelle = array();
|
|
|
|
for ($i = 0; $anzahl_hersteller > $i; $i++) {
|
|
|
|
if($manufacturer == '<script>$("#hersteller").value</script>') {
|
|
|
|
$x = 0;
|
|
|
|
while ($x < sizeof($router)) {
|
|
|
|
if($manufacturer[$i] == $router[$x]['hersteller']) {
|
|
|
|
array_push($modelle, $router[$x]['modell']);
|
2016-07-24 16:06:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-06-04 10:26:25 +00:00
|
|
|
?>
|
2016-07-24 16:06:10 +00:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-06-04 10:26:25 +00:00
|
|
|
<div class="container z-depth-3" id="outer-container">
|
|
|
|
<header class="center">
|
|
|
|
<h3 class="thin"><?php echo $community[$community_id]['head_titel']?></h3>
|
|
|
|
<p>
|
|
|
|
<a id="backtohome" class="btn waves-effect waves-light" href="<?php echo $community[$community_id]['link_url']?>"><?php echo $community[$community_id]['link_text']?></a>
|
2017-06-05 12:48:35 +00:00
|
|
|
<a id="backtomap" class="btn waves-effect waves-light" href="/">Zurück zur Auswahl</a>
|
2017-06-04 10:26:25 +00:00
|
|
|
</p>
|
|
|
|
</header>
|
2016-07-24 16:06:10 +00:00
|
|
|
|
2017-06-04 10:26:25 +00:00
|
|
|
<div class="container row" id="inner-container">
|
|
|
|
<?php for ($i = 0; $i < $err; $i++): ?>
|
|
|
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
|
|
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Warning:</span>
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<strong>Warning!</strong> <?php echo $error_text[$i] ?>
|
|
|
|
</div>
|
|
|
|
<?php endfor ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12 m6">
|
|
|
|
<h5>Beschreibung</h5>
|
|
|
|
<p><?php echo $community[$community_id]["lang_text"]?></p>
|
|
|
|
</div>
|
|
|
|
<div class="col s12 m6">
|
|
|
|
<div class="row">
|
|
|
|
<img class="col s6 m12" src="router_images/keinbild.jpg" id="img_router_front" alt="Router Vorderseite" />
|
|
|
|
<img class="col s6 m12" src="router_images/keinbild.jpg" id="img_router_back" alt="Router Rückseite" />
|
2016-07-24 16:06:10 +00:00
|
|
|
</div>
|
2017-06-04 10:26:25 +00:00
|
|
|
<div class="row">
|
|
|
|
<img src="images/ccbyncsa.png" alt="CC BY-NC-SA" style="width: 60px; margin-right: 15px;" />
|
2016-07-24 16:06:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-26 13:42:51 +00:00
|
|
|
<div class="col s12 m6">
|
|
|
|
<h5>Hersteller</h5>
|
2017-06-28 15:45:20 +00:00
|
|
|
<select id="hersteller" onchange="change('hersteller', this)">
|
2017-06-26 13:42:51 +00:00
|
|
|
<option disabled selected value="">Hersteller auswählen</option>
|
|
|
|
<?php foreach ($hersteller as $value): ?>
|
|
|
|
<option value="<?php echo $value['name']?>"><?php echo $value['name']?></option>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</select>
|
2016-07-24 16:06:10 +00:00
|
|
|
</div>
|
2017-06-26 13:42:51 +00:00
|
|
|
<div class="col s12 m6">
|
|
|
|
<h5>Modell</h5>
|
|
|
|
<select disabled onchange="change('modell', this)" id="modell">
|
|
|
|
<option disabled selected value="">Modell auswählen</option>
|
|
|
|
</select>
|
2016-07-24 16:06:10 +00:00
|
|
|
</div>
|
2017-06-26 13:42:51 +00:00
|
|
|
<div class="col s12 m6">
|
|
|
|
<h5>Version</h5>
|
|
|
|
<select disabled onchange="change('version', this)" id="version">
|
|
|
|
<option disabled selected value="">Version auswählen</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="col s12 m6">
|
|
|
|
<h5>Erstinstallation</h5>
|
|
|
|
<select disabled onchange="change('erstinstallation', this)" id="erstinstallation">
|
|
|
|
<option disabled selected value="">Firmware Erstinstallation?</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="col s12 m6">
|
|
|
|
<h5>Entwicklungsstadium</h5>
|
|
|
|
<select disabled onchange="change('entwicklungsstadium', this)" id="entwicklungsstadium">
|
|
|
|
<option disabled selected value="">Entwicklungsstadium auswählen</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="col s12 center">
|
|
|
|
<a disabled id="download" class="waves-effect waves-light btn-large"><i class="material-icons left">file_download</i>Herunterladen</a>
|
2017-09-23 15:27:40 +00:00
|
|
|
<br><span>Passende Kernelmodule bitte seperat laden von <a class="blue-grey-text text-darken-4" href="<?php echo $community[$community_id]['modules_path']?>"><?php echo $community[$community_id]['modules_path']?></a></span>
|
2016-07-24 16:06:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-04 10:26:25 +00:00
|
|
|
<footer class="page-footer">
|
|
|
|
<div class="footer-copyright">
|
|
|
|
<div class="container">
|
2018-06-08 14:49:08 +00:00
|
|
|
© 2018 <a class="grey-text text-lighten-4" href="https://labcode.de">Leo Maroni</a>, Caspar Armster / Licensed under GPLv3 / Die Router Bilder sind von Daniel Krah und unter <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" class="grey-text text-lighten-4" target="_blank">Creative Commons Namensnennung - Nicht-kommerziell - Weitergabe unter gleichen Bedingungen 4.0 International Lizenz</a> lizensiert. 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>
|
2017-06-04 10:26:25 +00:00
|
|
|
</div>
|
2016-07-24 16:06:10 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|