2011-05-06 12:33:45 +02:00
|
|
|
<html>
|
|
|
|
<head><title>OsmAnd Indexes</title></head>
|
|
|
|
<?php
|
|
|
|
$update = $_GET['update'];
|
2011-12-28 00:39:36 +01:00
|
|
|
include 'update_indexes.php';
|
2011-05-06 12:33:45 +02:00
|
|
|
updateGoogleCodeIndexes($update);
|
|
|
|
$dom = new DomDocument();
|
|
|
|
$dom->load('indexes.xml');
|
|
|
|
$xpath = new DOMXpath($dom);
|
|
|
|
?>
|
|
|
|
<body>
|
|
|
|
<h1><?php echo "Table of multiindexes hosted on googlecode"; ?></h1>
|
|
|
|
<table border="1">
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$res = $xpath->query('//multiregion');
|
|
|
|
if($res && $res->length > 0) {
|
|
|
|
|
|
|
|
foreach($res as $node) {
|
|
|
|
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date').
|
|
|
|
"</td><td>".$node->getAttribute('size')."</td><td>".$node->getAttribute('parts')."</td><td>".
|
|
|
|
$node->getAttribute('description')."</td></tr>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
2012-01-02 22:44:26 +01:00
|
|
|
<h1><?php echo "Table of indexes hosted on osmand.net"; ?></h1>
|
|
|
|
<table border="1">
|
|
|
|
<?php
|
2012-01-08 13:51:30 +01:00
|
|
|
$res = $xpath->query('//region[@local]');
|
2012-01-02 22:44:26 +01:00
|
|
|
if($res && $res->length > 0) {
|
|
|
|
foreach($res as $node) {
|
2012-01-02 23:37:28 +01:00
|
|
|
if (file_exists('indexes/'.$node->getAttribute('name'))) {
|
2012-01-02 22:44:26 +01:00
|
|
|
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date').
|
|
|
|
"</td><td>".$node->getAttribute('size')."</td><td>".
|
|
|
|
$node->getAttribute('description')."</td></tr>";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
<h1><?php echo "Table of indexes on googlecode"; ?></h1>
|
2011-05-06 12:33:45 +02:00
|
|
|
<table border="1">
|
|
|
|
<?php
|
|
|
|
$res = $xpath->query('//region');
|
2012-01-08 13:51:30 +01:00
|
|
|
if($res && $res->length > 0) {
|
|
|
|
|
|
|
|
foreach($res as $node) {
|
|
|
|
if (!file_exists('indexes/'.$node->getAttribute('name') && !$node->getAttribute('local'))) {
|
|
|
|
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date').
|
2011-05-06 12:33:45 +02:00
|
|
|
"</td><td>".$node->getAttribute('size')."</td><td>".
|
2012-01-08 13:51:30 +01:00
|
|
|
$node->getAttribute('description')."</td></tr>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-05-06 12:33:45 +02:00
|
|
|
?>
|
|
|
|
</table>
|
2012-01-02 22:44:26 +01:00
|
|
|
|
2011-05-06 12:33:45 +02:00
|
|
|
</body>
|
|
|
|
</html>
|