]> git.sur5r.net Git - contagged/blobdiff - index.php
hide counter reset
[contagged] / index.php
index 521d2e69a1d862b5fd9b60beee0ec1f1ab564e48..ef38ad4fd66f4e3d7790466238e295ce12be0de3 100644 (file)
--- a/index.php
+++ b/index.php
       $smarty->display('list_csv.tpl');
       exit;
     }elseif($_REQUEST['export'] == 'map'){
+        require_once 'inc/Geocoder.php';
+        $geocoder = new Geocoder();
+        $coords = array();
+        foreach ($result as $ldapEntry) {
+            tpl_entry($ldapEntry);
+            $entry = $smarty->get_template_vars('entry');
+            addCoords($coords, $entry, $geocoder);
+        }
+        $smarty->assign('coords', $coords);
+
       header('Content-Type: text/html; charset=utf-8');
       $smarty->display('list_map.tpl');
       exit;