OsmAnd/config/site/indexes.php

62 lines
1.7 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
$res = $xpath->query('//region');
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');
if($res && $res->length > 0) {
foreach($res as $node) {
2012-01-02 23:37:28 +01:00
if (!file_exists('indexes/'.$node->getAttribute('name'))) {
2011-05-06 12:33:45 +02:00
echo "<tr><td>".$node->getAttribute('name')."</td><td>".$node->getAttribute('date').
"</td><td>".$node->getAttribute('size')."</td><td>".
$node->getAttribute('description')."</td></tr>";
2012-01-02 22:44:26 +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>