dynamap pas obligatoire
[platal.git] / htdocs / geoloc / dynamap.php
index 1d3ecc5..3e4755b 100644 (file)
@@ -38,6 +38,7 @@ if (urlencode(Env::get('initfile')) != $initfile)
 
 header("Content-type: application/x-shockwave-flash");
 
-readfile("../../plugins/geoloc/dynamap.swf");
+if ($globals->geoloc->use_map())
+       readfile($globals->geoloc->dynamap_path);
 
 ?>