[FEAT] Bilder der Router hinzugefügt und eine Klasse für die Router in PHP angelegt (ffrouter), sowie den Großteil des PHP-Codes ausgelagert in eine eigene Datei.
@ -1,36 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @author Caspar Armster
|
* @author Caspar Armster
|
||||||
* @copyright 2016 Caspar Armster, Freifunk Hennef
|
* @copyright 2016 Caspar Armster, Freifunk Hennef
|
||||||
* @license Licensed under GPLv3
|
* @license Licensed under GPLv3
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$firmware_download_path = "../firmware/";
|
$firmware_download_path = "../firmware/";
|
||||||
|
|
||||||
$variante['beta']['factory'] = 0;
|
$variante['beta']['factory'] = 0;
|
||||||
$variante['beta']['sysupgrade'] = 0;
|
$variante['beta']['sysupgrade'] = 0;
|
||||||
$variante['broken']['factory'] = 0;
|
$variante['broken']['factory'] = 0;
|
||||||
$variante['broken']['sysupgrade'] = 0;
|
$variante['broken']['sysupgrade'] = 0;
|
||||||
$variante['experimental']['factory'] = 0;
|
$variante['experimental']['factory'] = 0;
|
||||||
$variante['experimental']['sysupgrade'] = 0;
|
$variante['experimental']['sysupgrade'] = 0;
|
||||||
$variante['stable']['factory'] = 0;
|
$variante['stable']['factory'] = 0;
|
||||||
$variante['stable']['sysupgrade'] = 0;
|
$variante['stable']['sysupgrade'] = 0;
|
||||||
|
|
||||||
$hersteller = array(
|
$hersteller = array(
|
||||||
0 => "Alfa",
|
0 => "Alfa",
|
||||||
1 => "Allnet",
|
1 => "Allnet",
|
||||||
2 => "Buffalo",
|
2 => "Buffalo",
|
||||||
3 => "D-Link",
|
3 => "D-Link",
|
||||||
4 => "GL-Inet",
|
4 => "GL-Inet",
|
||||||
5 => "LeMaker",
|
5 => "LeMaker",
|
||||||
6 => "Linksys",
|
6 => "Linksys",
|
||||||
7 => "Netgear",
|
7 => "Netgear",
|
||||||
8 => "Onion",
|
8 => "Onion",
|
||||||
9 => "Raspberry Pi",
|
9 => "Raspberry Pi",
|
||||||
10 => "TP-Link",
|
10 => "TP-Link",
|
||||||
11 => "Ubiquiti",
|
11 => "Ubiquiti",
|
||||||
12 => "Western Digital",
|
12 => "Western Digital",
|
||||||
13 => "x86",
|
13 => "x86",
|
||||||
);
|
);
|
||||||
?>
|
?>
|
1174
css/bootstrap-theme.css
vendored
10
css/bootstrap-theme.min.css
vendored
14352
css/bootstrap.css
vendored
20
css/bootstrap.min.css
vendored
1054
css/bootswatch.less
13520
css/orig/bootstrap.css
vendored
10
css/orig/bootstrap.min.css
vendored
@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* @author Caspar Armster
|
* @author Caspar Armster
|
||||||
* @copyright 2016 Caspar Armster, Freifunk Hennef
|
* @copyright 2016 Caspar Armster, Freifunk Hennef
|
||||||
* @license Licensed under GPLv3
|
* @license Licensed under GPLv3
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
.panel-footer {
|
.panel-footer {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
background-color: #dc0067 !important;
|
background-color: #dc0067 !important;
|
||||||
border-color: #cc0057 !important;
|
border-color: #cc0057 !important;
|
||||||
}
|
}
|
||||||
.panel-primary > .panel-heading {
|
.panel-primary > .panel-heading {
|
||||||
background-color: #000000 !important;
|
background-color: #000000 !important;
|
||||||
}
|
}
|
1738
css/variables.less
36
ffrouter.class.php
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @author Caspar Armster
|
||||||
|
* @copyright 2016 Caspar Armster, Freifunk Hennef
|
||||||
|
* @license Licensed under GPLv3
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
class ffrouter {
|
||||||
|
|
||||||
|
function __construct() {
|
||||||
|
$this->hersteller = "";
|
||||||
|
$this->modell = "";
|
||||||
|
$this->version = "";
|
||||||
|
$this->imagefront = "";
|
||||||
|
$this->imageback = "";
|
||||||
|
|
||||||
|
$this->betafactory = 0;
|
||||||
|
$this->betasysupgrade = 0;
|
||||||
|
$this->brokenfactory = 0;
|
||||||
|
$this->brokensysupgrade = 0;
|
||||||
|
$this->experimentalfactory = 0;
|
||||||
|
$this->experimentalsysupgrade = 0;
|
||||||
|
$this->stablefactory = 0;
|
||||||
|
$this->stablesysupgrade = 0;
|
||||||
|
|
||||||
|
$this->betafactorylink = "";
|
||||||
|
$this->betasysupgradelink = "";
|
||||||
|
$this->brokenfactorylink = "";
|
||||||
|
$this->brokensysupgradelink = "";
|
||||||
|
$this->experimentalfactorylink = "";
|
||||||
|
$this->experimentalsysupgradelink = "";
|
||||||
|
$this->stablefactorylink = "";
|
||||||
|
$this->stablesysupgradelink = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
887
ffrouter_parsen.function.php
Normal file
@ -0,0 +1,887 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @author Caspar Armster
|
||||||
|
* @copyright 2016 Caspar Armster, Freifunk Hennef
|
||||||
|
* @license Licensed under GPLv3
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
if(!is_dir($firmware_download_path)) {
|
||||||
|
throw new Exception("Firmwareverzeichnis existiert nicht!");
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."beta/")) {
|
||||||
|
if(is_dir($firmware_download_path."beta/factory/")) {
|
||||||
|
$variante['beta']['factory'] = 1;
|
||||||
|
$files['beta']['factory'] = array_slice(scandir($firmware_download_path."beta/factory/"), 2);
|
||||||
|
for( $i=0; $i<count($files['beta']['factory']); $i++ ) {
|
||||||
|
$pos = stripos($files['beta']['factory'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['beta']['factory'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."beta/sysupgrade/")) {
|
||||||
|
$variante['beta']['sysupgrade'] = 1;
|
||||||
|
$files['beta']['sysupgrade'] = array_slice(scandir($firmware_download_path."beta/sysupgrade/"), 2);
|
||||||
|
for( $i=0; $i<count($files['beta']['sysupgrade']); $i++ ) {
|
||||||
|
$pos = stripos($files['beta']['sysupgrade'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['beta']['sysupgrade'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."broken/")) {
|
||||||
|
if(is_dir($firmware_download_path."broken/factory/")) {
|
||||||
|
$variante['broken']['factory'] = 1;
|
||||||
|
$files['broken']['factory'] = array_slice(scandir($firmware_download_path."broken/factory/"), 2);
|
||||||
|
for( $i=0; $i<count($files['broken']['factory']); $i++ ) {
|
||||||
|
$pos = stripos($files['broken']['factory'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['broken']['factory'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."broken/sysupgrade/")) {
|
||||||
|
$variante['broken']['sysupgrade'] = 1;
|
||||||
|
$files['broken']['sysupgrade'] = array_slice(scandir($firmware_download_path."broken/sysupgrade/"), 2);
|
||||||
|
for( $i=0; $i<count($files['broken']['sysupgrade']); $i++ ) {
|
||||||
|
$pos = stripos($files['broken']['sysupgrade'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['broken']['sysupgrade'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."experimental/")) {
|
||||||
|
if(is_dir($firmware_download_path."experimental/factory/")) {
|
||||||
|
$variante['experimental']['factory'] = 1;
|
||||||
|
$files['experimental']['factory'] = array_slice(scandir($firmware_download_path."experimental/factory/"), 2);
|
||||||
|
for( $i=0; $i<count($files['experimental']['factory']); $i++ ) {
|
||||||
|
$pos = stripos($files['experimental']['factory'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['experimental']['factory'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."experimental/sysupgrade/")) {
|
||||||
|
$variante['experimental']['sysupgrade'] = 1;
|
||||||
|
$files['experimental']['sysupgrade'] = array_slice(scandir($firmware_download_path."experimental/sysupgrade/"), 2);
|
||||||
|
for( $i=0; $i<count($files['experimental']['sysupgrade']); $i++ ) {
|
||||||
|
$pos = stripos($files['experimental']['sysupgrade'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['experimental']['sysupgrade'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."stable/")) {
|
||||||
|
if(is_dir($firmware_download_path."stable/factory/")) {
|
||||||
|
$variante['stable']['factory'] = 1;
|
||||||
|
$files['stable']['factory'] = array_slice(scandir($firmware_download_path."stable/factory/"), 2);
|
||||||
|
for( $i=0; $i<count($files['stable']['factory']); $i++ ) {
|
||||||
|
$pos = stripos($files['stable']['factory'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['stable']['factory'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(is_dir($firmware_download_path."stable/sysupgrade/")) {
|
||||||
|
$variante['stable']['sysupgrade'] = 1;
|
||||||
|
$files['stable']['sysupgrade'] = array_slice(scandir($firmware_download_path."stable/sysupgrade/"), 2);
|
||||||
|
for( $i=0; $i<count($files['stable']['sysupgrade']); $i++ ) {
|
||||||
|
$pos = stripos($files['stable']['sysupgrade'][$i], 'manifest');
|
||||||
|
if($pos !== false) {
|
||||||
|
array_splice($files['stable']['sysupgrade'], $i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($variante['stable']['factory'] == 1) {
|
||||||
|
$i = 0;
|
||||||
|
while($files['stable']['factory'][$i] !== false) {
|
||||||
|
$pos_hersteller = stripos($files['stable']['factory'][$i], "tp-link");
|
||||||
|
if ($pos_hersteller !== false) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
throw new Exception("Konnte nicht herausfinden wo sich der Hersteller im Dateinamen befindet!");
|
||||||
|
}
|
||||||
|
if($variante['beta']['factory'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['beta']['factory']); $i++) {
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "alfa", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+3, strlen($files['beta']['factory'][$i])-$pos_hersteller-7));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "allnet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+5, strlen($files['beta']['factory'][$i])-$pos_hersteller-9));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "buffalo", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+6, strlen($files['beta']['factory'][$i])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "d-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['beta']['factory'][$i], strripos($files['beta']['factory'][$i], "rev"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+5, strlen($files['beta']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "gl-inet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['beta']['factory'][$i], strripos($files['beta']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+6, strlen($files['beta']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-11));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "lemaker", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+6, strlen($files['beta']['factory'][$i])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "linksys", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+6, strlen($files['beta']['factory'][$i])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "netgear", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+6, strlen($files['beta']['factory'][$i])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "onion", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+4, strlen($files['beta']['factory'][$i])-$pos_hersteller-8));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "raspberry-pi", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], strripos($files['beta']['factory'][$i], "-")+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "tp-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['beta']['factory'][$i], strripos($files['beta']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+6, strlen($files['beta']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-11));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "ubiquiti", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+7, strlen($files['beta']['factory'][$i])-$pos_hersteller-11));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "-wd-", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+1, strlen($files['beta']['factory'][$i])-$pos_hersteller-5));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['factory'][$i], "x86", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['factory'][$i], $pos_hersteller+2, stripos($files['beta']['factory'][$i], ".", $pos_hersteller+2)-$pos_hersteller-2));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router[$i] = new ffrouter();
|
||||||
|
$router[$i]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$i]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$i]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$i]->betafactory = 1;
|
||||||
|
$router[$i]->betafactorylink = $firmware_download_path."beta/factory/".$files['beta']['factory'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['beta']['sysupgrade'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['beta']['sysupgrade']); $i++) {
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "alfa", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+3, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-18));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "allnet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-20));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "buffalo", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "d-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['beta']['sysupgrade'][$i], strripos($files['beta']['sysupgrade'][$i], "rev"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['beta']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "gl-inet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['beta']['sysupgrade'][$i], strripos($files['beta']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['beta']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-22));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "lemaker", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "linksys", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "netgear", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "onion", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+4, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-19));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "raspberry-pi", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], strripos($files['beta']['sysupgrade'][$i], "-", -18)+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "tp-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['beta']['sysupgrade'][$i], strripos($files['beta']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['beta']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-22));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "ubiquiti", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+7, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-22));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "-wd-", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+1, strlen($files['beta']['sysupgrade'][$i])-$pos_hersteller-16));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['beta']['sysupgrade'][$i], "x86", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['beta']['sysupgrade'][$i], $pos_hersteller+2, stripos($files['beta']['sysupgrade'][$i], ".", $pos_hersteller+2)-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->betasysupgrade = 1;
|
||||||
|
$router[$j]->betasysupgradelink = $firmware_download_path."beta/sysupgrade/".$files['beta']['sysupgrade'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->betasysupgrade = 1;
|
||||||
|
$router[$j]->betasysupgradelink = $firmware_download_path."beta/sysupgrade/".$files['beta']['sysupgrade'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['broken']['factory'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['broken']['factory']); $i++) {
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "alfa", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+5, strlen($files['broken']['factory'][$i])-$pos_hersteller-9));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "allnet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+7, strlen($files['broken']['factory'][$i])-$pos_hersteller-11));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "buffalo", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+8, strlen($files['broken']['factory'][$i])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "d-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['broken']['factory'][$i], strripos($files['broken']['factory'][$i], "rev"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+7, strlen($files['broken']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "gl-inet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['broken']['factory'][$i], strripos($files['broken']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+8, strlen($files['broken']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "lemaker", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+8, strlen($files['broken']['factory'][$i])-$pos_hersteller-15));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "linksys", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+8, strlen($files['broken']['factory'][$i])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "netgear", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+8, strlen($files['broken']['factory'][$i])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "onion", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+6, strlen($files['broken']['factory'][$i])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "raspberry-pi", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], strripos($files['broken']['factory'][$i], "-")+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "tp-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['broken']['factory'][$i], strripos($files['broken']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+8, strlen($files['broken']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "ubiquiti", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+9, strlen($files['broken']['factory'][$i])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "-wd-", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+3, strlen($files['broken']['factory'][$i])-$pos_hersteller-7));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['factory'][$i], "x86", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['factory'][$i], $pos_hersteller+4, stripos($files['broken']['factory'][$i], ".", $pos_hersteller+2)-$pos_hersteller-4));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->brokenfactory = 1;
|
||||||
|
$router[$j]->brokenfactorylink = $firmware_download_path."broken/factory/".$files['broken']['factory'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->brokenfactory = 1;
|
||||||
|
$router[$j]->brokenfactorylink = $firmware_download_path."broken/factory/".$files['broken']['factory'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['broken']['sysupgrade'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['broken']['sysupgrade']); $i++) {
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "alfa", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-20));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "allnet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+7, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-22));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "buffalo", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "d-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['broken']['sysupgrade'][$i], strripos($files['broken']['sysupgrade'][$i], "rev"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+7, strlen($files['broken']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "gl-inet", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['broken']['sysupgrade'][$i], strripos($files['broken']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['broken']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "lemaker", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-26));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "linksys", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "netgear", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "onion", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "raspberry-pi", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], strripos($files['broken']['sysupgrade'][$i], "-", -19)+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "tp-link", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['broken']['sysupgrade'][$i], strripos($files['broken']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['broken']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "ubiquiti", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+9, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "-wd-", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+3, strlen($files['broken']['sysupgrade'][$i])-$pos_hersteller-18));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['broken']['sysupgrade'][$i], "x86", $pos_hersteller-2) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['broken']['sysupgrade'][$i], $pos_hersteller+4, stripos($files['broken']['sysupgrade'][$i], ".", $pos_hersteller+2)-$pos_hersteller-15));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->brokensysupgrade = 1;
|
||||||
|
$router[$j]->brokensysupgradelink = $firmware_download_path."broken/sysupgrade/".$files['broken']['sysupgrade'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->brokensysupgrade = 1;
|
||||||
|
$router[$j]->brokensysupgradelink = $firmware_download_path."broken/sysupgrade/".$files['broken']['sysupgrade'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['experimental']['factory'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['experimental']['factory']); $i++) {
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "alfa", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+2, strlen($files['experimental']['factory'][$i])-$pos_hersteller-6));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "allnet", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+4, strlen($files['experimental']['factory'][$i])-$pos_hersteller-8));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "buffalo", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+5, strlen($files['experimental']['factory'][$i])-$pos_hersteller-11));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "d-link", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['experimental']['factory'][$i], strripos($files['experimental']['factory'][$i], "rev"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+4, strlen($files['experimental']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-9));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "gl-inet", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['experimental']['factory'][$i], strripos($files['experimental']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+5, strlen($files['experimental']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "lemaker", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+5, strlen($files['experimental']['factory'][$i])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "linksys", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+5, strlen($files['experimental']['factory'][$i])-$pos_hersteller-9));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "netgear", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+5, strlen($files['experimental']['factory'][$i])-$pos_hersteller-9));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "onion", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+3, strlen($files['experimental']['factory'][$i])-$pos_hersteller-7));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "raspberry-pi", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], strripos($files['experimental']['factory'][$i], "-")+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "tp-link", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['experimental']['factory'][$i], strripos($files['experimental']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+5, strlen($files['experimental']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "ubiquiti", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+6, strlen($files['experimental']['factory'][$i])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "-wd-", $pos_hersteller-4) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+0, strlen($files['experimental']['factory'][$i])-$pos_hersteller-4));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "x86", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+1, stripos($files['experimental']['factory'][$i], ".", $pos_hersteller+2)-$pos_hersteller-1));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->experimentalfactory = 1;
|
||||||
|
$router[$j]->experimentalfactorylink = $firmware_download_path."experimental/factory/".$files['experimental']['factory'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->experimentalfactory = 1;
|
||||||
|
$router[$j]->experimentalfactorylink = $firmware_download_path."experimental/factory/".$files['experimental']['factory'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['experimental']['sysupgrade'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['experimental']['sysupgrade']); $i++) {
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "alfa", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+2, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-17));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "allnet", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+4, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-19));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "buffalo", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-22));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "d-link", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['experimental']['sysupgrade'][$i], strripos($files['experimental']['sysupgrade'][$i], "rev"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+4, strlen($files['experimental']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-20));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "gl-inet", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['experimental']['sysupgrade'][$i], strripos($files['experimental']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['experimental']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "lemaker", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "linksys", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-20));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "netgear", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-20));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "onion", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+3, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-18));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "raspberry-pi", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], strripos($files['experimental']['sysupgrade'][$i], "-")+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "tp-link", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['experimental']['sysupgrade'][$i], strripos($files['experimental']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['experimental']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "ubiquiti", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "-wd-", $pos_hersteller-4) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+0, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-15));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "x86", $pos_hersteller-3) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+1, stripos($files['experimental']['sysupgrade'][$i], ".", $pos_hersteller+2)-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->experimentalsysupgrade = 1;
|
||||||
|
$router[$j]->experimentalsysupgradelink = $firmware_download_path."experimental/sysupgrade/".$files['experimental']['sysupgrade'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->experimentalsysupgrade = 1;
|
||||||
|
$router[$j]->experimentalsysupgradelink = $firmware_download_path."experimental/sysupgrade/".$files['experimental']['sysupgrade'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['stable']['factory'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['stable']['factory']); $i++) {
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "alfa", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+5, strlen($files['stable']['factory'][$i])-$pos_hersteller-9));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "allnet", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+7, strlen($files['stable']['factory'][$i])-$pos_hersteller-11));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "buffalo", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+8, strlen($files['stable']['factory'][$i])-$pos_hersteller-14));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "d-link", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['stable']['factory'][$i], strripos($files['stable']['factory'][$i], "rev"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+7, strlen($files['stable']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "gl-inet", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['stable']['factory'][$i], strripos($files['stable']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+8, strlen($files['stable']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['factory'][$i], "lemaker", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['factory'][$i], $pos_hersteller+8, strlen($files['experimental']['factory'][$i])-$pos_hersteller-15));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "linksys", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+8, strlen($files['stable']['factory'][$i])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "netgear", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+8, strlen($files['stable']['factory'][$i])-$pos_hersteller-12));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "onion", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+6, strlen($files['stable']['factory'][$i])-$pos_hersteller-10));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "raspberry-pi", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], strripos($files['stable']['factory'][$i], "-")+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "tp-link", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['stable']['factory'][$i], strripos($files['stable']['factory'][$i], "v"), -4);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+8, strlen($files['stable']['factory'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "ubiquiti", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+9, strlen($files['stable']['factory'][$i])-$pos_hersteller-13));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "-wd-", $pos_hersteller-1) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+3, strlen($files['stable']['factory'][$i])-$pos_hersteller-7));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['factory'][$i], "x86", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['factory'][$i], $pos_hersteller+4, stripos($files['stable']['factory'][$i], ".", $pos_hersteller+2)-$pos_hersteller-4));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->stablefactory = 1;
|
||||||
|
$router[$j]->stablefactorylink = $firmware_download_path."stable/factory/".$files['stable']['factory'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->stablefactory = 1;
|
||||||
|
$router[$j]->stablefactorylink = $firmware_download_path."stable/factory/".$files['stable']['factory'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//print_r($files['stable']['sysupgrade']);
|
||||||
|
$router_tmp = array();
|
||||||
|
if($variante['stable']['sysupgrade'] == 1) {
|
||||||
|
for( $i=0; $i<count($files['stable']['sysupgrade']); $i++) {
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "alfa", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Alfa";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+5, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-20));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "allnet", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Allnet";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+7, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-22));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "buffalo", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Buffalo";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-25));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "d-link", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "D-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['stable']['sysupgrade'][$i], strripos($files['stable']['sysupgrade'][$i], "rev"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+7, strlen($files['stable']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "gl-inet", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "GL-Inet";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['stable']['sysupgrade'][$i], strripos($files['stable']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['stable']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['experimental']['sysupgrade'][$i], "lemaker", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "LeMaker";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['experimental']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['experimental']['sysupgrade'][$i])-$pos_hersteller-26));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "linksys", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Linksys";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "netgear", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Netgear";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-23));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "onion", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Onion";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+6, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-21));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "raspberry-pi", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Raspberry Pi";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], strripos($files['stable']['sysupgrade'][$i], "-")+1, 1));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "tp-link", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "TP-Link";
|
||||||
|
$router_tmp[$i]['version'] = substr($files['stable']['sysupgrade'][$i], strripos($files['stable']['sysupgrade'][$i], "v"), -15);
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+8, strlen($files['stable']['sysupgrade'][$i])-strlen($router_tmp[$i]['version'])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "ubiquiti", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Ubiquiti";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+9, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-24));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "-wd-", $pos_hersteller-1) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "Western Digital";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+3, strlen($files['stable']['sysupgrade'][$i])-$pos_hersteller-18));
|
||||||
|
}
|
||||||
|
if($pos = stripos($files['stable']['sysupgrade'][$i], "x86", $pos_hersteller) !== false) {
|
||||||
|
$router_tmp[$i]['hersteller'] = "x86";
|
||||||
|
$router_tmp[$i]['version'] = "Alle";
|
||||||
|
$router_tmp[$i]['modell'] = strtoupper(substr($files['stable']['sysupgrade'][$i], $pos_hersteller+4, stripos($files['stable']['sysupgrade'][$i], ".", $pos_hersteller+2)-$pos_hersteller-15));
|
||||||
|
}
|
||||||
|
if(isset($router_tmp[$i]['hersteller']) != true) {
|
||||||
|
echo("Unbekannten Hersteller im Dateinamen gefunden, bitte Script updaten!");
|
||||||
|
} else {
|
||||||
|
$router_neu = 1;
|
||||||
|
//echo("Hersteller: ".$router_tmp[$i]['hersteller']." Modell: ".$router_tmp[$i]['modell']." Version: ".$router_tmp[$i]['version']."<br />");
|
||||||
|
for( $j=0; $j<count($router); $j++) {
|
||||||
|
if((strcasecmp($router[$j]->hersteller, $router_tmp[$i]['hersteller']) == 0) && (strcasecmp($router[$j]->modell, $router_tmp[$i]['modell']) == 0) && (strcasecmp($router[$j]->version, $router_tmp[$i]['version']) == 0)) {
|
||||||
|
$router[$j]->stablesysupgrade = 1;
|
||||||
|
$router[$j]->stablesysupgradelink = $firmware_download_path."stable/sysupgrade/".$files['stable']['sysupgrade'][$i];
|
||||||
|
$router_neu = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($router_neu == 1) {
|
||||||
|
$router[$j] = new ffrouter();
|
||||||
|
$router[$j]->hersteller = $router_tmp[$i]['hersteller'];
|
||||||
|
$router[$j]->version = $router_tmp[$i]['version'];
|
||||||
|
$router[$j]->modell = $router_tmp[$i]['modell'];
|
||||||
|
$router[$j]->stablesysupgrade = 1;
|
||||||
|
$router[$j]->stablesysupgradelink = $firmware_download_path."stable/sysupgrade/".$files['stable']['sysupgrade'][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for( $i=0; $i<count($router); $i++ ) { // Routerbilder einbauen
|
||||||
|
if(is_dir(strtolower("router_images/".$router[$i]->hersteller))) {
|
||||||
|
if(is_file(strtolower("router_images/".$router[$i]->hersteller."/".$router[$i]->modell."-".$router[$i]->version.".jpg"))) {
|
||||||
|
$router[$i]->imagefront = strtolower("router_images/".$router[$i]->hersteller."/".$router[$i]->modell."-".$router[$i]->version.".jpg");
|
||||||
|
} else {
|
||||||
|
$router[$i]->imagefront = "router_images/keinbild.jpg";
|
||||||
|
}
|
||||||
|
if(is_file(strtolower("router_images/".$router[$i]->hersteller."/".$router[$i]->modell."-".$router[$i]->version."_back.jpg"))) {
|
||||||
|
$router[$i]->imageback = strtolower("router_images/".$router[$i]->hersteller."/".$router[$i]->modell."-".$router[$i]->version."_back.jpg");
|
||||||
|
} else {
|
||||||
|
$router[$i]->imageback = "router_images/keinbild.jpg";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$router[$i]->imagefront = "router_images/keinbild.jpg";
|
||||||
|
$router[$i]->imageback = "router_images/keinbild.jpg";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
BIN
images/ccbyncsa.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
@ -4,7 +4,7 @@ Freifunk Hennef Firmware Downloader
|
|||||||
Beschreibung
|
Beschreibung
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Der Freifunk Hennef Firmware Downloader soll es Laien ermöglichen schneller und sicherer die zu ihrem Router passende Firmware zu finden. Der Freifunker kann nacheinander aus automatisch generierten Listen seinen Router auswählen: Hersteller -> Modell -> Version und dann festlegen ob es eine Erstinstallation ist oder nicht, sowie am Ende wählen welches Entwicklungsstadium die Firmware haben soll. Dabei wird automatisch gewarnt (Download Button verändert die Farbe) falls nicht "stable" ausgewählt wird.
|
Der Freifunk Hennef Firmware Downloader soll es Laien ermöglichen schneller und sicherer die zu ihrem Router passende Firmware zu finden. Der Freifunker kann nacheinander aus automatisch generierten Listen seinen Router auswählen: Hersteller -> Modell -> Version und dann festlegen ob es eine Erstinstallation ist oder nicht, sowie am Ende wählen welches Entwicklungsstadium die Firmware haben soll. Dabei wird automatisch gewarnt (Download Button verändert die Farbe) falls nicht "stable" ausgewählt wird. Zusätzlich werden etliche der Router auch als Grafik (Front & Back Ansicht) gezeigt, so dass der Freifunker auf den ersten Blick erkennen kann wenn er den falschen Router ausgewählt hat.
|
||||||
|
|
||||||
Technik
|
Technik
|
||||||
-------
|
-------
|
||||||
@ -30,10 +30,15 @@ Bisher werden Router der folgenden Hersteller automatisch erkannt:
|
|||||||
|
|
||||||
Soll eine Firmware für Router von anderen Herstellern angeboten werden muss erst das Script geändert werden!
|
Soll eine Firmware für Router von anderen Herstellern angeboten werden muss erst das Script geändert werden!
|
||||||
|
|
||||||
|
Bilder
|
||||||
|
------
|
||||||
|
|
||||||
|
Die Bilder der Router kommen von Daniel Krah und sind lizensiert unter einer Creative Commons Namensnennung - Nicht-kommerziell - Weitergabe unter gleichen Bedingungen 4.0 International Lizenz (CC-BY NC SA).
|
||||||
|
|
||||||
Code
|
Code
|
||||||
----
|
----
|
||||||
|
|
||||||
Der Code ist grausam und generiert einen Haufen Variablen/Arrays in PHP aus denen dann "on the fly" ein Javascript Code erzeugt wird. Das geht sicher besser (JSON erzeugen in PHP und wieder ins Javascript einladen) und Fehlertoleranter - aber es ist die erste Version, die erstmal "läuft".
|
Der Code ist grausam und generiert einen Haufen Variablen/Arrays in PHP aus denen dann "on the fly" ein Javascript Code erzeugt wird. Das geht sicher besser (JSON erzeugen in PHP und wieder ins Javascript einladen) und Fehlertoleranter - aber es ist die erste Version, die erstmal "läuft". Mittlerweile existiert wenigstens eine ffrouter Klasse, die über die ganzen Eigenschaften (Hersteller, Modell, etc.) verfügt und der Großteil des PHP Codes ist ausgelagert.
|
||||||
|
|
||||||
Lizenz
|
Lizenz
|
||||||
------
|
------
|
||||||
|
BIN
router_images/gl-inet/6408a-v1.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
router_images/gl-inet/6408a-v1_back.jpg
Normal file
After Width: | Height: | Size: 199 KiB |
BIN
router_images/gl-inet/6416a-v1.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
router_images/gl-inet/6416a-v1_back.jpg
Normal file
After Width: | Height: | Size: 199 KiB |
BIN
router_images/keinbild.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
router_images/linksys/wrt160nl-alle.jpg
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
router_images/netgear/wndr3700-alle.jpg
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
router_images/netgear/wndr3700-alle_back.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
router_images/netgear/wndr3700v2-alle.jpg
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
router_images/netgear/wndr3700v2-alle_back.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
router_images/netgear/wndr3700v4-alle.jpg
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
router_images/netgear/wndr3700v4-alle_back.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
router_images/netgear/wndr3800-alle.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
router_images/netgear/wndr3800-alle_back.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
router_images/netgear/wndr4300-alle.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
router_images/netgear/wndr4300-alle_back.jpg
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
router_images/netgear/wndrmacv2-alle.jpg
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
router_images/netgear/wndrmacv2-alle_back.jpg
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
router_images/tp-link/cpe210-v1.0.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe210-v1.0_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe210-v1.1.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe210-v1.1_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe220-v1.0.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe220-v1.0_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe220-v1.1.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe220-v1.1_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe510-v1.0.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe510-v1.0_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe510-v1.1.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe510-v1.1_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe520-v1.0.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe520-v1.0_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/cpe520-v1.1.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
router_images/tp-link/cpe520-v1.1_back.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
router_images/tp-link/tl-mr3020-v1.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
router_images/tp-link/tl-mr3020-v1_back.jpg
Normal file
After Width: | Height: | Size: 234 KiB |
BIN
router_images/tp-link/tl-mr3040-v1.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
router_images/tp-link/tl-mr3040-v1_back.jpg
Normal file
After Width: | Height: | Size: 172 KiB |
BIN
router_images/tp-link/tl-mr3040-v2.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
router_images/tp-link/tl-mr3040-v2_back.jpg
Normal file
After Width: | Height: | Size: 172 KiB |
BIN
router_images/tp-link/tl-mr3220-v1.jpg
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
router_images/tp-link/tl-mr3220-v1_back.jpg
Normal file
After Width: | Height: | Size: 158 KiB |
BIN
router_images/tp-link/tl-mr3220-v2.jpg
Normal file
After Width: | Height: | Size: 137 KiB |
BIN
router_images/tp-link/tl-mr3220-v2_back.jpg
Normal file
After Width: | Height: | Size: 169 KiB |
BIN
router_images/tp-link/tl-mr3420-v1.jpg
Normal file
After Width: | Height: | Size: 143 KiB |
BIN
router_images/tp-link/tl-mr3420-v1_back.jpg
Normal file
After Width: | Height: | Size: 165 KiB |
BIN
router_images/tp-link/tl-mr3420-v2.jpg
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
router_images/tp-link/tl-mr3420-v2_back.jpg
Normal file
After Width: | Height: | Size: 181 KiB |
BIN
router_images/tp-link/tl-wa701n-nd-v1.jpg
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
router_images/tp-link/tl-wa701n-nd-v1_back.jpg
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
router_images/tp-link/tl-wa701n-nd-v2.jpg
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
router_images/tp-link/tl-wa701n-nd-v2_back.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
router_images/tp-link/tl-wa750re-v1.jpg
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
router_images/tp-link/tl-wa750re-v1_back.jpg
Normal file
After Width: | Height: | Size: 96 KiB |
BIN
router_images/tp-link/tl-wa801n-nd-v1.jpg
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
router_images/tp-link/tl-wa801n-nd-v1_back.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
router_images/tp-link/tl-wa801n-nd-v2.jpg
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
router_images/tp-link/tl-wa801n-nd-v2_back.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
router_images/tp-link/tl-wa830re-v1.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
router_images/tp-link/tl-wa830re-v1_back.jpg
Normal file
After Width: | Height: | Size: 134 KiB |
BIN
router_images/tp-link/tl-wa830re-v2.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
router_images/tp-link/tl-wa830re-v2_back.jpg
Normal file
After Width: | Height: | Size: 134 KiB |
BIN
router_images/tp-link/tl-wa850re-v1.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
router_images/tp-link/tl-wa850re-v1_back.jpg
Normal file
After Width: | Height: | Size: 96 KiB |
BIN
router_images/tp-link/tl-wa860re-v1.jpg
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
router_images/tp-link/tl-wa860re-v1_back.jpg
Normal file
After Width: | Height: | Size: 229 KiB |
BIN
router_images/tp-link/tl-wa901n-nd-v2.jpg
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
router_images/tp-link/tl-wa901n-nd-v2_back.jpg
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
router_images/tp-link/tl-wa901n-nd-v3.jpg
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
router_images/tp-link/tl-wa901n-nd-v3_back.jpg
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
router_images/tp-link/tl-wdr3500-v1.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
router_images/tp-link/tl-wdr3500-v1_back.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
router_images/tp-link/tl-wdr3600-v1.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
router_images/tp-link/tl-wdr3600-v1_back.jpg
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
router_images/tp-link/tl-wdr4300-v1.jpg
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
router_images/tp-link/tl-wdr4300-v1_back.jpg
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
router_images/tp-link/tl-wdr4900-v1.jpg
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
router_images/tp-link/tl-wdr4900-v1_back.jpg
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
router_images/tp-link/tl-wr1043n-nd-v1.jpg
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
router_images/tp-link/tl-wr1043n-nd-v1_back.jpg
Normal file
After Width: | Height: | Size: 171 KiB |
BIN
router_images/tp-link/tl-wr1043n-nd-v2.jpg
Normal file
After Width: | Height: | Size: 112 KiB |
BIN
router_images/tp-link/tl-wr1043n-nd-v2_back.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
router_images/tp-link/tl-wr2543n-nd-v1.jpg
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
router_images/tp-link/tl-wr2543n-nd-v1_back.jpg
Normal file
After Width: | Height: | Size: 163 KiB |
BIN
router_images/tp-link/tl-wr703n-v1.jpg
Normal file
After Width: | Height: | Size: 117 KiB |