[7054] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: GMaps |
---|
[7479] | 4 | Version: 1.2.0 |
---|
[7054] | 5 | Description: Display and manage (google) maps |
---|
[7178] | 6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=454 |
---|
[7054] | 7 | Author: grum@piwigo.org |
---|
| 8 | Author URI: http://photos.grum.fr |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@piwigo.com |
---|
| 15 | website : http://photos.grum.fr |
---|
| 16 | PWG user : http://forum.phpwebgallery.net/profile.php?id=3706 |
---|
| 17 | |
---|
| 18 | << May the Little SpaceFrog be with you ! >> |
---|
| 19 | -------------------------------------------------------------------------------- |
---|
| 20 | |
---|
| 21 | :: HISTORY |
---|
| 22 | |
---|
| 23 | | release | date | |
---|
| 24 | | 0.1.0 | 2010-08-22 | * first lines of code |
---|
| 25 | | | | . release not published |
---|
| 26 | | | | |
---|
[7308] | 27 | | 1.0.0 | 2010-09-30 | * first official release |
---|
[7054] | 28 | | | | |
---|
[7308] | 29 | | 1.1.0 | 2010-10-20 | * mantis bug:1926 |
---|
| 30 | | | | . key not translated |
---|
[7054] | 31 | | | | |
---|
[7308] | 32 | | | | * mantis bug:1927 |
---|
| 33 | | | | . Autozoom on categories maps : needs a min/max level |
---|
[7054] | 34 | | | | |
---|
[7308] | 35 | | | | * mantis bug:1929 |
---|
| 36 | | | | . allowing to set the size for automatic size |
---|
[7054] | 37 | | | | |
---|
[7308] | 38 | | | | * mantis bug:1930 |
---|
| 39 | | | | . Improve loading time for markers |
---|
[7054] | 40 | | | | |
---|
[7308] | 41 | | | | * mantis bug:1931 |
---|
| 42 | | | | . when an association is modified, it's possible to |
---|
| 43 | | | | set a category already associated |
---|
[7054] | 44 | | | | |
---|
[7308] | 45 | | | | * mantis bug:1939 |
---|
| 46 | | | | . compatibility with ExtendedDescription |
---|
[7054] | 47 | | | | |
---|
[7308] | 48 | | | | * mantis bug:1946 |
---|
| 49 | | | | . Save KML files in local directory |
---|
[7054] | 50 | | | | |
---|
[7479] | 51 | | 1.2.0 | 2010-10-28 | * mantis bug:1972 |
---|
[7453] | 52 | | | | . thumbnails are not displayed in maps bubble box |
---|
[7054] | 53 | | | | |
---|
[7479] | 54 | | | | * mantis bug:1950 |
---|
| 55 | | | | . Display map if a kml file is associated |
---|
[7054] | 56 | | | | |
---|
| 57 | | | | |
---|
| 58 | | | | |
---|
[7479] | 59 | | | | |
---|
| 60 | | | | |
---|
| 61 | | | | |
---|
[7054] | 62 | |
---|
| 63 | |
---|
| 64 | :: TO DO |
---|
| 65 | |
---|
| 66 | -------------------------------------------------------------------------------- |
---|
| 67 | |
---|
| 68 | :: NFO |
---|
| 69 | GMaps_root : common classe for admin and public classes |
---|
| 70 | GMaps_AIM : classe to manage plugin integration into plugin menu |
---|
| 71 | GMaps_AIP : classe to manage plugin admin pages |
---|
| 72 | GMaps_PIP : classe to manage plugin public pages |
---|
| 73 | |
---|
| 74 | -------------------------------------------------------------------------------- |
---|
| 75 | */ |
---|
| 76 | |
---|
| 77 | // pour faciliter le debug :o) |
---|
| 78 | //ini_set('error_reporting', E_ALL); |
---|
| 79 | //ini_set('display_errors', true); |
---|
| 80 | |
---|
| 81 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | define('GMAPS_DIR' , basename(dirname(__FILE__))); |
---|
| 85 | define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/'); |
---|
| 86 | |
---|
| 87 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
| 88 | include_once('gmaps_version.inc.php'); // => Don't forget to update this file !! |
---|
| 89 | |
---|
| 90 | global $prefixeTable; |
---|
| 91 | |
---|
| 92 | if(defined('IN_ADMIN')) |
---|
| 93 | { |
---|
| 94 | //GMaps admin interface loaded and active only if in admin page |
---|
| 95 | include_once("gmaps_aim.class.inc.php"); |
---|
| 96 | $obj=new GMaps_AIM($prefixeTable, __FILE__); |
---|
| 97 | $obj->initEvents(); |
---|
| 98 | } |
---|
| 99 | else |
---|
| 100 | { |
---|
| 101 | if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED)) |
---|
| 102 | { |
---|
| 103 | //GMaps public interface loaded and active only if in public page |
---|
| 104 | include_once("gmaps_pip.class.inc.php"); |
---|
| 105 | $obj=new GMaps_PIP($prefixeTable, __FILE__); |
---|
| 106 | } |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | set_plugin_data($plugin['id'], $obj); |
---|
| 110 | |
---|
| 111 | ?> |
---|