EOT;
try {
require_once('ffrouter_parsen.function.php');
} catch(Exception $e) {
echo("Fehler: ".$e->getMessage());
die();
}
echo <<
function populateA(){
var s1 = document.getElementById("fw-dl-1");
var s2 = document.getElementById("fw-dl-2");
var s3 = document.getElementById("fw-dl-3");
var s4 = document.getElementById("fw-dl-4");
var s5 = document.getElementById("fw-dl-5");
var s6 = document.getElementById("fw-dl-6");
var img_router_front = document.getElementById("img_router_front");
var img_router_back = document.getElementById("img_router_back");
s2.innerHTML = "";
EOT;
for( $i=0; $i<$anzahl_hersteller; $i++) {
echo("\n if(s1.value == \"".$hersteller[$i]['name']."\"){\n");
echo(" var optionArray = [\"|Modell auswählen\"");
$j=0;
while( $jhersteller == $hersteller[$i]['name']) {
echo(",\"".$router[$j]->modell."|".$router[$j]->modell."\"");
if( $jmodell == $router[$j+1]->modell) {
if( $j 1) {
s3.remove(s3.length-1);
}
while(s4.length > 1) {
s4.remove(s4.length-1);
}
while(s5.length > 1) {
s5.remove(s5.length-1);
}
s6.href = "#";
s6.className = s6.className.replace( /(?:^|\s)disabled(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-primary(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-danger(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-warning(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-success(?!\S)/g , '' );
s6.className += " btn-primary disabled";
s6.innerHTML = "Download Firmware";
img_router_front.src = "router_images/keinbild.jpg";
img_router_back.src = "router_images/keinbild.jpg";
}
function populateB(){
var s1 = document.getElementById("fw-dl-2");
var s2 = document.getElementById("fw-dl-3");
var s4 = document.getElementById("fw-dl-4");
var s5 = document.getElementById("fw-dl-5");
var s6 = document.getElementById("fw-dl-6");
var img_router_front = document.getElementById("img_router_front");
var img_router_back = document.getElementById("img_router_back");
s2.innerHTML = "";
switch(s1.value){\n
EOT;
$i=0;
while( $imodell."\":\n");
echo(" var optionArray = [\"|Version auswählen\"");
echo(",\"".$i."|".$router[$i]->version."\"");
if( $imodell == $router[$i+1]->modell) {
if( $iversion."\"");
} else {
break;
}
}
}
echo("];\n");
echo(" break;\n");
$i++;
}
echo << 1) {
s4.remove(s4.length-1);
}
while(s5.length > 1) {
s5.remove(s5.length-1);
}
s6.href = "#";
s6.className = s6.className.replace( /(?:^|\s)disabled(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-primary(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-danger(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-warning(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-success(?!\S)/g , '' );
s6.className += " btn-primary disabled";
s6.innerHTML = "Download Firmware";
img_router_front.src = "router_images/keinbild.jpg";
img_router_back.src = "router_images/keinbild.jpg";
}
function populateC(){
var s1 = document.getElementById("fw-dl-3");
var s2 = document.getElementById("fw-dl-4");
var s5 = document.getElementById("fw-dl-5");
var s6 = document.getElementById("fw-dl-6");
var img_router_front = document.getElementById("img_router_front");
var img_router_back = document.getElementById("img_router_back");
s2.innerHTML = "";
switch(s1.value){\n
EOT;
$i=0;
while( $iimagefront."\";\n");
echo(" var newImageBack = \"".$router[$i]->imageback."\";\n");
echo(" var optionArray = [\"|Erstinstallation?\"");
if( ($router[$i]->betafactory == 1) || ($router[$i]->brokenfactory == 1) || ($router[$i]->experimentalfactory == 1) || ($router[$i]->stablefactory == 1) ) {
echo(",\"".$i."J|Ja\"");
}
if( ($router[$i]->betasysupgrade == 1) || ($router[$i]->brokensysupgrade == 1) || ($router[$i]->experimentalsysupgrade == 1) || ($router[$i]->stablesysupgrade == 1) ) {
echo(",\"".$i."N|Nein\"");
}
echo("];\n");
echo(" break;\n");
$i++;
}
echo << 1) {
s5.remove(s5.length-1);
}
s6.href = "#";
s6.className = s6.className.replace( /(?:^|\s)disabled(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-primary(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-danger(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-warning(?!\S)/g , '' );
s6.className = s6.className.replace( /(?:^|\s)btn-success(?!\S)/g , '' );
s6.className += " btn-primary disabled";
s6.innerHTML = "Download Firmware";
img_router_front.src = newImageFront;
img_router_back.src = newImageBack;
}
function populateD(){
var s1 = document.getElementById("fw-dl-4");
var s2 = document.getElementById("fw-dl-5");
var s6 = document.getElementById("fw-dl-6");
s2.innerHTML = "";
switch(s1.value){\n
EOT;
$i=0;
while( $ibetafactory == 1) ) {
echo(",\"".$i."Jbeta|Beta\"");
}
if( ($router[$i]->brokenfactory == 1) ) {
echo(",\"".$i."Jbroken|Broken\"");
}
if( ($router[$i]->experimentalfactory == 1) ) {
echo(",\"".$i."Jexp|Experimental\"");
}
if( ($router[$i]->stablefactory == 1) ) {
echo(",\"".$i."Jstable|Stable\"");
}
echo("];\n");
echo(" break\n");
echo(" case \"".$i."N\":\n");
echo(" var optionArray = [\"|Entwicklungsstadium?\"");
if( ($router[$i]->betasysupgrade == 1) ) {
echo(",\"".$i."Nbeta|Beta\"");
}
if( ($router[$i]->brokensysupgrade == 1) ) {
echo(",\"".$i."Nbroken|Broken\"");
}
if( ($router[$i]->experimentalsysupgrade == 1) ) {
echo(",\"".$i."Nexp|Experimental\"");
}
if( ($router[$i]->stablesysupgrade == 1) ) {
echo(",\"".$i."Nstable|Stable\"");
}
echo("];\n");
echo(" break\n");
$i++;
}
echo <<betafactory == 1) ) {
echo(" case \"".$i."Jbeta\":\n");
echo(" var link = \"".$router[$i]->betafactorylink."\";\n");
echo(" var linkclass = \" btn-warning\";\n");
echo(" break;\n");
}
if( ($router[$i]->brokenfactory == 1) ) {
echo(" case \"".$i."Jbroken\":\n");
echo(" var link = \"".$router[$i]->brokenfactorylink."\";\n");
echo(" var linkclass = \" btn-danger\";\n");
echo(" break;\n");
}
if( ($router[$i]->experimentalfactory == 1) ) {
echo(" case \"".$i."Jexp\":\n");
echo(" var link = \"".$router[$i]->experimentalfactorylink."\";\n");
echo(" var linkclass = \" btn-warning\";\n");
echo(" break;\n");
}
if( ($router[$i]->stablefactory == 1) ) {
echo(" case \"".$i."Jstable\":\n");
echo(" var link = \"".$router[$i]->stablefactorylink."\";\n");
echo(" var linkclass = \" btn-success\";\n");
echo(" break;\n");
}
if( ($router[$i]->betasysupgrade == 1) ) {
echo(" case \"".$i."Nbeta\":\n");
echo(" var link = \"".$router[$i]->betasysupgradelink."\";\n");
echo(" var linkclass = \" btn-warning\";\n");
echo(" break;\n");
}
if( ($router[$i]->brokensysupgrade == 1) ) {
echo(" case \"".$i."Nbroken\":\n");
echo(" var link = \"".$router[$i]->brokensysupgradelink."\";\n");
echo(" var linkclass = \" btn-danger\";\n");
echo(" break;\n");
}
if( ($router[$i]->experimentalsysupgrade == 1) ) {
echo(" case \"".$i."Nexp\":\n");
echo(" var link = \"".$router[$i]->experimentalsysupgradelink."\";\n");
echo(" var linkclass = \" btn-warning\";\n");
echo(" break;\n");
}
if( ($router[$i]->stablesysupgrade == 1) ) {
echo(" case \"".$i."Nstable\":\n");
echo(" var link = \"".$router[$i]->stablesysupgradelink."\";\n");
echo(" var linkclass = \" btn-success\";\n");
echo(" break;\n");
}
$i++;
}
echo <<
Freifunk Hennef Firmware
Auf dieser Seite können Sie die passende Firmware für ihren Router in Hennef auswählen und herunterladen!
Zurück zur Startseite
Freifunk Hennef Firmware
Bitte suchen Sie den passenden Router aus, indem Sie den Hersteller, das Modell und die Version auswählen.
Legen Sie anschließend fest, ob sie den Router zum ersten Mal mit einer Freifunk Firmware flashen und welches Entwicklungsstadium die Firmware haben soll.
Router Hersteller
Hersteller auswählen
EOT;
for( $i=0; $i<$anzahl_hersteller; $i++) {
echo("".$hersteller[$i]['name']." ");
}
echo <<
Firmware Erstinstallation
Firmware Entwicklungsstadium