From b3ba905afc289294ed1509b5b2a9d496b3da3917 Mon Sep 17 00:00:00 2001 From: CasparA Date: Thu, 12 May 2016 09:57:11 +0200 Subject: [PATCH] =?UTF-8?q?[FEAT]=20Hersteller=208devices=20und=20Meraki?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.inc.php | 30 +++++++------- ffrouter_parsen.function.php | 80 ++++++++++++++++++++++++++++++++++++ index.php | 12 +++--- 3 files changed, 102 insertions(+), 20 deletions(-) diff --git a/config.inc.php b/config.inc.php index 8ed8ec4..8c29963 100644 --- a/config.inc.php +++ b/config.inc.php @@ -18,19 +18,21 @@ $variante['stable']['sysupgrade'] = 0; $hersteller = array( - 0 => "Alfa", - 1 => "Allnet", - 2 => "Buffalo", - 3 => "D-Link", - 4 => "GL-Inet", - 5 => "LeMaker", - 6 => "Linksys", - 7 => "Netgear", - 8 => "Onion", - 9 => "Raspberry Pi", - 10 => "TP-Link", - 11 => "Ubiquiti", - 12 => "Western Digital", - 13 => "x86", + 0 => "8devices", + 1 => "Alfa", + 2 => "Allnet", + 3 => "Buffalo", + 4 => "D-Link", + 5 => "GL-Inet", + 6 => "LeMaker", + 7 => "Linksys", + 8 => "Meraki", + 9 => "Netgear", + 10 => "Onion", + 11 => "Raspberry Pi", + 12 => "TP-Link", + 13 => "Ubiquiti", + 14 => "Western Digital", + 15 => "x86", ); ?> \ No newline at end of file diff --git a/ffrouter_parsen.function.php b/ffrouter_parsen.function.php index 10dd263..ace1ed1 100644 --- a/ffrouter_parsen.function.php +++ b/ffrouter_parsen.function.php @@ -159,6 +159,11 @@ if($variante['stable']['factory'] == 1) { } if($variante['beta']['factory'] == 1) { for( $i=0; $ihersteller == $hersteller[$i]) { @@ -110,7 +110,7 @@ EOT; $i=0; while( $imodell."\"){\n"); - echo("var optionArray = [\"|\""); + echo("var optionArray = [\"|Version auswählen\""); echo(",\"".$i."|".$router[$i]->version."\""); if( $imodell == $router[$i+1]->modell) { @@ -165,7 +165,7 @@ EOT; echo("\nif(s1.value == \"".$i."\"){\n"); echo("var newImageFront = \"".$router[$i]->imagefront."\";\n"); echo("var newImageBack = \"".$router[$i]->imageback."\";\n"); - echo("var optionArray = [\"|\""); + 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\""); } @@ -207,7 +207,7 @@ EOT; $i=0; while( $ibetafactory == 1) ) { echo(",\"".$i."Jbeta|Beta\""); } @@ -223,7 +223,7 @@ EOT; echo("];\n"); echo("}\n"); echo("\nif(s1.value == \"".$i."N\"){\n"); - echo("var optionArray = [\"|\""); + echo("var optionArray = [\"|Entwicklungsstadium?\""); if( ($router[$i]->betasysupgrade == 1) ) { echo(",\"".$i."Nbeta|Beta\""); } @@ -372,7 +372,7 @@ EOT;