include ("/home/geoatlas/include/database.php");
if ($c)
{
$c=str_replace("../"," ",$c);
$c=str_replace("\\"," ",$c);
$directory="/home/geoatlas/www/maps/".$c;
if (!is_dir($directory))
{
echo "wrong way !\n";
exit;
}
$handle=opendir($directory);
echo $c;
$tmp=0;
$tab=array();
while (false!==($file = readdir($handle)))
{
if ($file != "." && $file != ".." && $file != "echantillons")
{
array_push($tab,$file);
}
}
$tmp=count($tab);
sort($tab);
}
elseif ($map)
{
$values=explode("/",$map);
$nbvalues=count($values);
$c=str_replace("../"," ",$c);
$c=str_replace("\\"," ",$c);
$directory= "/home/geoatlas/www/maps/".$map;
if (!is_dir($directory))
{
echo "wrong way !\n";
exit;
}
$handle=opendir($directory);
$tmp=0; $tab=array();
$chemin=$map;
while (false!==($file = readdir($handle)))
{
$path=$directory."/".$file;
if ($file != "." && $file != ".." && $file != "echantillons" && is_dir($path))
{
if ($file == "images")
{
$nom=$values[$nbvalues-1];
$res=db_query("select * from maps where nom like '$nom%'");
$nb=db_numrows($res);
if ($nb)
{
$map=db_result($res,0,0);
header("location:download3_cities.php?map=$map&where=$chemin");
}
exit;
}
array_push($tab,$file);
}
}
sort($tab);
$tmp=count($tab);
closedir($handle);
}
?>
Geoatlas.com________________________________________________________
|
|
|
continents >
europe
| |
|
|
|
|
|
| |
|
All
these maps are proposed in VECTOR EPS ILLUSTRATOR®
FORMAT
100% editable (EPS)
Layer Structured
Downloadable immediately
ROYALTY FREE for PAPER
and INTERNET uses.
|
|
|
 |
|
|
| . |
|
GEOATLAS
is registered trademark of the GRAPHI-OGRE company.
All the other brandnames are trademarks registered by their
respective owners and their protected character is indicated.
(c) 2009 Graphi-Ogre - All rights reserved
|
|
|