OsmAnd/config/site/indexes.php

80 lines
2.3 KiB
PHP
Raw Normal View History

2011-05-06 12:33:45 +02:00
<html>
<head><title>OsmAnd Indexes</title></head>
<?php
$update = $_GET['update'];
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-11-14 00:19:21 +01:00
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date')
2012-11-14 00:27:07 +01:00
."</td><td>".$node->getAttribute('size')
."</td><td>".$node->getAttribute('description')
2012-11-14 00:19:21 +01:00
;
2012-01-02 22:44:26 +01:00
}
}
}
?>
</table>
<h1><?php echo "Table of road indexes hosted on osmand.net"; ?></h1>
<table border="1">
<?php
$res = $xpath->query('//road_region[@local]');
if($res && $res->length > 0) {
foreach($res as $node) {
if (file_exists('road-indexes/'.$node->getAttribute('name'))) {
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date')
."</td><td>".$node->getAttribute('size')
."</td><td>".$node->getAttribute('description')
;
}
}
}
?>
</table>
2012-01-02 22:44:26 +01:00
<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) {
2012-01-08 14:58:53 +01:00
if (!file_exists('indexes/'.$node->getAttribute('name')) || !$node->getAttribute('local')) {
2012-11-14 00:19:21 +01:00
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date')
."</td><td>".$node->getAttribute('size')."</td><td>".$node->getAttribute('description')
2012-11-14 00:19:21 +01:00
;
2012-01-08 13:51:30 +01:00
}
}
}
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>