".basename(getcwd())."\n"; echo "

If you dont find an image for your router here, there are also untested images.

\n"; } else { echo "

".basename(getcwd())." - untested

\n"; } ?> 1; $i--) { if (strncmp($com,$s,$i) !== 0) { $same = False; $com = substr($com, 0, $i - 1); break; } } } } return $com; } $pkgs = array(); foreach (scandir(".") as $d) { if (is_dir($d) && $d != "." && $d != "..") { array_push( $pkgs, $d ); } } $arch = array(); foreach ($pkgs as $p) { foreach (scandir($p) as $d1) { if (is_dir($p."/".$d1) && $d1 != "." && $d1 != "..") { foreach (scandir($p."/".$d1) as $d2) { if (is_dir($p."/".$d1."/".$d2) && $d2 != "." && $d2 != "..") { array_push($arch,$d1."/".$d2); } } } } } $arch = array_unique($arch); foreach ($arch as $a) { echo "\n"; $files = array(); foreach ($pkgs as $p) { foreach (scandir($p."/".$a) as $f) { if (substr( $f, -4) === ".bin" ) { array_push($files,$f); } } } $files = array_unique($files); $c = commonprefix($files); foreach ($files as $f) { echo ""; foreach ($pkgs as $p) { echo ""; } echo "\n"; } } ?>
".$a."
".$c."".substr($f,strlen($c)).""; $path = $p."/".$a."/".$f; $fwpath = $p."/".$a."/".substr($f,strlen($c)); if (is_file($path)) { echo "".$p.""; } echo "