Fitxers de firmware
Llistat de fitxers de l'actual versió estable:
include("/var/www/qmp.cat/include/thirdparty/simple_html_dom.php");
// MANUAL: http://simplehtmldom.sourceforge.net/manual.htm
$version = "stable";
$url = "http://fw.qmp.cat/".$version."/";
//$contents = file_get_contents($url);
$html = @file_get_html($url);
if (empty($html)) echo "no ".$version." files";
else {
echo "".$url."";
// Remake of table "th" Name, Last modified, Size, Description
// Work on apache directory listing.
$html->find("th",1)->innertext = "".$html->find("th",1)->children(0)->innertext."";
$html->find("th",1)->align = "left";
$html->find("th",2)->innertext = "".$html->find("th",2)->children(0)->innertext."";
$html->find("th",2)->align = "left";
$html->find("th",3)->innertext = "".$html->find("th",3)->children(0)->innertext."";
$html->find("th",3)->align = "left";
$html->find("th",4)->innertext = "".$html->find("th",4)->children(0)->innertext."";
$html->find("th",4)->align = "left";
// Remove parent directory and line fields
$html->find("tr",1)->outertext="";
$html->find("tr",2)->outertext="";
$html->find("tr",-1)->outertext="";
// Remove apache servername
$html->find("address",0)->outertext="";
// Replace with right repo URL
foreach($html->find("a") as $a) {
$a->href = $url.$a->href;
$a->target="_blank";
}
// Reduce icons to 16px
foreach($html->find("img") as $i) $i->width="16px";
// PRINT ALL (table only)
//echo $html;
echo $html->find("table",0);
}
echo "
";
";
Llistat de fitxers de l'actual versió de proves:
//include("/var/www/qmp.cat/include/thirdparty/simple_html_dom.php");
// MANUAL: http://simplehtmldom.sourceforge.net/manual.htm
$version = "testing";
$url = "http://fw.qmp.cat/".$version."/";
//$contents = file_get_contents($url);
$html = @file_get_html($url);
if (empty($html)) echo "no ".$version." files";
else {
echo "".$url."";
// Remake of table "th" Name, Last modified, Size, Description
// Work on apache directory listing.
$html->find("th",1)->innertext = "".$html->find("th",1)->children(0)->innertext."";
$html->find("th",1)->align = "left";
$html->find("th",2)->innertext = "".$html->find("th",2)->children(0)->innertext."";
$html->find("th",2)->align = "left";
$html->find("th",3)->innertext = "".$html->find("th",3)->children(0)->innertext."";
$html->find("th",3)->align = "left";
$html->find("th",4)->innertext = "".$html->find("th",4)->children(0)->innertext."";
$html->find("th",4)->align = "left";
// Remove parent directory and line fields
$html->find("tr",1)->outertext="";
$html->find("tr",2)->outertext="";
$html->find("tr",-1)->outertext="";
// Remove apache servername
$html->find("address",0)->outertext="";
// Replace with right repo URL
foreach($html->find("a") as $a) {
$a->href = $url.$a->href;
$a->target="_blank";
}
// Reduce icons to 16px
foreach($html->find("img") as $i) $i->width="16px";
// PRINT ALL (table only)
//echo $html;
echo $html->find("table",0);
}
echo "
";
";
Llistat de fitxers de l'actual versió experimental:
//include("/var/www/qmp.cat/include/thirdparty/simple_html_dom.php");
// MANUAL: http://simplehtmldom.sourceforge.net/manual.htm
$version = "experimental";
$url = "http://fw.qmp.cat/".$version."/";
//$contents = file_get_contents($url);
$html = @file_get_html($url);
if (empty($html)) echo "no ".$version." files";
else {
echo "".$url."";
// Remake of table "th" Name, Last modified, Size, Description
// Work on apache directory listing.
$html->find("th",1)->innertext = "".$html->find("th",1)->children(0)->innertext."";
$html->find("th",1)->align = "left";
$html->find("th",2)->innertext = "".$html->find("th",2)->children(0)->innertext."";
$html->find("th",2)->align = "left";
$html->find("th",3)->innertext = "".$html->find("th",3)->children(0)->innertext."";
$html->find("th",3)->align = "left";
$html->find("th",4)->innertext = "".$html->find("th",4)->children(0)->innertext."";
$html->find("th",4)->align = "left";
// Remove parent directory and line fields
$html->find("tr",1)->outertext="";
$html->find("tr",2)->outertext="";
$html->find("tr",-1)->outertext="";
// Remove apache servername
$html->find("address",0)->outertext="";
// Replace with right repo URL
foreach($html->find("a") as $a) {
$a->href = $url.$a->href;
$a->target="_blank";
}
// Reduce icons to 16px
foreach($html->find("img") as $i) $i->width="16px";
// PRINT ALL (table only)
//echo $html;
echo $html->find("table",0);
}
echo "
";
";