EOT;
try {
require_once('ffrouter_parsen.function.php');
} catch(Exception $e) {
echo("Fehler: ".$e->getMessage());
die();
}
echo <<
function populateA(s1,s2){
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
var s3 = document.getElementById("slct3");
var s4 = document.getElementById("slct4");
var s5 = document.getElementById("slct5");
var s6 = document.getElementById("slct6");
var img_router_front = document.getElementById("img_router_front");
var img_router_back = document.getElementById("img_router_back");
s2.innerHTML = "";
EOT;
for( $i=0; $ihersteller == $hersteller[$i]) {
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(s1,s2){
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
var s4 = document.getElementById("slct4");
var s5 = document.getElementById("slct5");
var s6 = document.getElementById("slct6");
var img_router_front = document.getElementById("img_router_front");
var img_router_back = document.getElementById("img_router_back");
s2.innerHTML = "";
EOT;
$i=0;
while( $imodell."\"){\n");
echo("var optionArray = [\"|\"");
echo(",\"".$i."|".$router[$i]->version."\"");
if( $imodell == $router[$i+1]->modell) {
if( $iversion."\"");
} else {
break;
}
}
}
echo("];\n");
echo("}\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(s1,s2){
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
var s5 = document.getElementById("slct5");
var s6 = document.getElementById("slct6");
var img_router_front = document.getElementById("img_router_front");
var img_router_back = document.getElementById("img_router_back");
s2.innerHTML = "";
EOT;
$i=0;
while( $iimagefront."\";\n");
echo("var newImageBack = \"".$router[$i]->imageback."\";\n");
echo("var optionArray = [\"|\"");
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("}\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(s1,s2){
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
var s6 = document.getElementById("slct6");
s2.innerHTML = "";
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("}\n");
echo("\nif(s1.value == \"".$i."N\"){\n");
echo("var optionArray = [\"|\"");
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("}\n");
$i++;
}
echo <<betafactory == 1) ) {
echo("\nif(s1.value == \"".$i."Jbeta\"){\n");
echo("var link = \"".$router[$i]->betafactorylink."\";\n");
echo("var linkclass = \" btn-warning\";\n");
echo("}\n");
}
if( ($router[$i]->brokenfactory == 1) ) {
echo("\nif(s1.value == \"".$i."Jbroken\"){\n");
echo("var link = \"".$router[$i]->brokenfactorylink."\";\n");
echo("var linkclass = \" btn-danger\";\n");
echo("}\n");
}
if( ($router[$i]->experimentalfactory == 1) ) {
echo("\nif(s1.value == \"".$i."Jexp\"){\n");
echo("var link = \"".$router[$i]->experimentalfactorylink."\";\n");
echo("var linkclass = \" btn-warning\";\n");
echo("}\n");
}
if( ($router[$i]->stablefactory == 1) ) {
echo("\nif(s1.value == \"".$i."Jstable\"){\n");
echo("var link = \"".$router[$i]->stablefactorylink."\";\n");
echo("var linkclass = \" btn-success\";\n");
echo("}\n");
}
if( ($router[$i]->betasysupgrade == 1) ) {
echo("\nif(s1.value == \"".$i."Nbeta\"){\n");
echo("var link = \"".$router[$i]->betasysupgradelink."\";\n");
echo("var linkclass = \" btn-warning\";\n");
echo("}\n");
}
if( ($router[$i]->brokensysupgrade == 1) ) {
echo("\nif(s1.value == \"".$i."Nbroken\"){\n");
echo("var link = \"".$router[$i]->brokensysupgradelink."\";\n");
echo("var linkclass = \" btn-danger\";\n");
echo("}\n");
}
if( ($router[$i]->experimentalsysupgrade == 1) ) {
echo("\nif(s1.value == \"".$i."Nexp\"){\n");
echo("var link = \"".$router[$i]->experimentalsysupgradelink."\";\n");
echo("var linkclass = \" btn-warning\";\n");
echo("}\n");
}
if( ($router[$i]->stablesysupgrade == 1) ) {
echo("\nif(s1.value == \"".$i."Nstable\"){\n");
echo("var link = \"".$router[$i]->stablesysupgradelink."\";\n");
echo("var linkclass = \" btn-success\";\n");
echo("}\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
EOT;
for( $i=0; $i".$hersteller[$i]."");
}
echo <<
Firmware Erstinstallation
Firmware Entwicklungsstadium