diff --git a/www/hardware.php b/www/hardware.php
deleted file mode 100644
index efd958e..0000000
--- a/www/hardware.php
+++ /dev/null
@@ -1,205 +0,0 @@
- /usr/local/src/www/htdocs/buildbot/.files.lzma.new
-// mv /usr/local/src/www/htdocs/buildbot/.files.lzma.new /usr/local/src/www/htdocs/buildbot/.files.lzma
-
-// Cronjob (util.berlin):
-// (cd /var/www/util.berlin.freifunk.net/www && curl -s https://buildbot.berlin.freifunk.net/buildbot/.files.lzma|lzcat|grep -v -F ".ipk">.files.txt.new && mv .files.txt.new .files.txt)
-
-$hardware = ($_GET["name"] ?? "");
-$complete = ($_GET["complete"] ?? "") === "true";
-
-header("Content-Type: text/html; charset=utf-8");
-
-// helper for array_filter
-function grepArray($line) {
- global $search;
- return (strpos($line, $search)!==false);
-}
-
-// fetched from buildbot by cronjob
-$bbfiles = file(".files.txt");
-
-// filter files list; make sure we match the right files (ubnt-nano-m vs. ubnt-nano-m-xw)
-$matchingFiles = [];
-if(strlen($hardware)>100) die("Ungültiger Gerätename.");
-$routerids = explode(",", $hardware);
-foreach($routerids as $routerid) {
- if(preg_match('/[^A-Za-z0-9\\.\\-\\_]/', $routerid) || strlen($routerid)<5 || strlen($routerid)>25 ) die("Ungültiger Gerätename.");
- $search = $routerid."-squashfs"; // pre-0.2.0
- $matchingFiles = array_merge($matchingFiles, array_filter($bbfiles, "grepArray"));
- $search = $routerid."-factory";
- $matchingFiles = array_merge($matchingFiles, array_filter($bbfiles, "grepArray"));
- $search = $routerid."-sysupgrade";
- $matchingFiles = array_merge($matchingFiles, array_filter($bbfiles, "grepArray"));
-}
-
-$search = "VERSION.txt:Firmware: git branch";
-$branchLines = array_filter($bbfiles, "grepArray");
-
-$search = "UNIXTIME ";
-$timeLines = array_filter($bbfiles, "grepArray");
-
-//echo implode("
", $matchingFiles);
-
-// convert files list into multi-dimensional array
-foreach($matchingFiles as $path) {
- $path = trim($path);
- $ext = substr($path, -4);
- if($ext !== ".img" && $ext !== ".bin" && $ext !== ".tar") continue; // 0.0.0 used .bin, ubnt-erx uses .tar
- if(strpos($path, "sysupgrade")!==false) {
- $imgType = "sysupgrade";
- } else if(strpos($path, "factory")!==false) {
- $imgType = "factory";
- } else {
- continue;
- }
- if(strpos($path, "-eu.bin")!==false) {
- $imgSubType = "eu";
- } else if(strpos($path, "-us.bin")!==false) {
- continue;
- } else {
- $imgSubType = "";
- }
- $matchingFile = explode("/", $path);
- // unstable/ramips/395/default_4MB/kathleen-0.2.0-beta+3232601-ramips-mt7620-ex2700-factory.bin
- // stable/0.2.0/ramips/default/kathleen-0.2.0-ramips-mt7620-wt3020-8M-factory.bin
- $releaseType = $matchingFile[0];
- $arch = $matchingFile[$releaseType=="stable"?2:1];
- $number = $matchingFile[$releaseType=="stable"?1:2];
- if($releaseType!="stable") $number = intval($number);
- $package = ($number!=="0.0.0") ? $matchingFile[3] : "default"; // 0.0.0 didn't have multiple package sets
- // unstable/ramips/400/VERSION.txt:Firmware: git branch "master"
- $search = "$releaseType/$arch/$number/VERSION.txt:Firmware: git branch";
- $branchNames = array_values(array_filter($branchLines, "grepArray"));
- if(sizeof($branchNames)>0) {
- $branchName = explode("\"", $branchNames[0])[1];
- } else {
- $branchName = $number;
- }
- // echo "$releaseType / $branchName / $number / $package / $imgType / $imgSubType / $path
";
- $images[$releaseType][$branchName][$number][$package][$imgType][$imgSubType] = $path;
-}
-
-// sort files array
-ksort($images); // sort releaseTypes
-foreach($images as $releaseType => $branchNames) {
- if($releaseType==="stable") {
- krsort($images[$releaseType]); // sort branchNames
- } else {
- ksort($images[$releaseType]); // sort branchNames
- }
- foreach($images[$releaseType] as $branchName => $numbers) {
- krsort($images[$releaseType][$branchName]); // sort numbers
- foreach($numbers as $number => $packages) {
- krsort($images[$releaseType][$branchName][$number]); // sort packages
- }
- }
-}
-
-//var_dump($images);
-
-$bburl = "https://buildbot.berlin.freifunk.net/buildbot/";
-
-echo "
Dieses Tool listet auf Basis eines Routermodels Informationen zur zugehörigen Firmware auf. Das Tool ist veraltet und es sollte stattdessen der neuere - Firmware-Selector verwendet werden. +
Der Freifunk Firmware Selector listet auf Basis der Eingabe eines Routermodels die passenden Firmware-Downloads nebst zugehöriger Prüfsummen auf.
-
- // https://util.berlin.freifunk.net/hardware?name=gl-ar150
- // name (sting): model of the router
-
-