1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +00:00
tcl_update_db/index_main.php

37 lines
747 B
PHP
Raw Normal View History

2017-12-16 17:17:57 +00:00
<!DOCTYPE html>
<html>
<head>
<title>BlackBerry/TCL Firmware List</title>
</head>
<body>
<?php
require_once __DIR__ . '/lib/autoloader.php';
use \TclUpdates\SQLiteReader;
$db = new SQLiteReader();
$allVars = $db->getAllVariants();
foreach ($allVars as $family => $models) {
foreach ($models as $model => $variants) {
echo '<h2>' . $family . ' ' . $model . '</h2>' . PHP_EOL;
echo '<table>';
foreach ($variants as $ref => $name) {
echo '<tr><td>' . $ref . '</td>' . '</tr>' . PHP_EOL;
}
echo '</table>';
}
}
print_r($db->getAllUpdates('PRD-63117-011', $db::BOTH));
print_r($db->getLatestUpdate('PRD-63117-011', $db::BOTH));
print_r($db->getUnknownPrds());
?>
</body>
</html>