move banana things into the banana module.
[platal.git] / hooks / geoloc.inc.php
index 0165c29..89dd7e1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
 class GeolocConfig
 {
     var $webservice_url = '';
+    var $dynamap_path = false;
+    var $icon_path = false;
+
+    function use_map() {
+        static $use_map;
+        if (!isset($use_map))
+            $use_map = $this->dynamap_path != false && is_file($this->dynamap_path) && is_file($this->icon_path);
+        return $use_map;
+    }
 }
 
 // }}}