1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: GMaps |
---|
4 | Version: 1.2.4 |
---|
5 | Description: Display and manage (google) maps |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=454 |
---|
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 | | | | |
---|
27 | | 1.0.0 | 2010-09-30 | * first official release |
---|
28 | | | | |
---|
29 | | 1.1.0 | 2010-10-20 | * mantis bug:1926 |
---|
30 | | | | . key not translated |
---|
31 | | | | |
---|
32 | | | | * mantis bug:1927 |
---|
33 | | | | . Autozoom on categories maps : needs a min/max level |
---|
34 | | | | |
---|
35 | | | | * mantis bug:1929 |
---|
36 | | | | . allowing to set the size for automatic size |
---|
37 | | | | |
---|
38 | | | | * mantis bug:1930 |
---|
39 | | | | . Improve loading time for markers |
---|
40 | | | | |
---|
41 | | | | * mantis bug:1931 |
---|
42 | | | | . when an association is modified, it's possible to |
---|
43 | | | | set a category already associated |
---|
44 | | | | |
---|
45 | | | | * mantis bug:1939 |
---|
46 | | | | . compatibility with ExtendedDescription |
---|
47 | | | | |
---|
48 | | | | * mantis bug:1946 |
---|
49 | | | | . Save KML files in local directory |
---|
50 | | | | |
---|
51 | | 1.2.0 | 2010-10-28 | * mantis bug:1972 |
---|
52 | | | | . thumbnails are not displayed in maps bubble box |
---|
53 | | | | |
---|
54 | | | | * mantis bug:1950 |
---|
55 | | | | . Display map if a kml file is associated |
---|
56 | | | | |
---|
57 | | | | * mantis bug:1967 |
---|
58 | | | | . Maps are not displayed if user navigate with tag |
---|
59 | | | | |
---|
60 | | | | * mantis bug:1937 |
---|
61 | | | | . add possibility to add maps in descriptions |
---|
62 | | | | |
---|
63 | | | | * mantis bug:1985 |
---|
64 | | | | . KML/KMZ files with spaces in file name are not |
---|
65 | | | | managed |
---|
66 | | | | |
---|
67 | | 1.2.1 | 2010-11-01 | * mantis bug:1989 |
---|
68 | | | | . Incompatibility with ExtendedDescription |
---|
69 | | | | |
---|
70 | | | | * mantis bug:1991 |
---|
71 | | | | . [gmaps] markup, kmlId is not functionnal |
---|
72 | | | | |
---|
73 | | | | * mantis bug:1987 |
---|
74 | | | | . Add an interface allowing to know ID for maps and |
---|
75 | | | | kml files |
---|
76 | | | | |
---|
77 | | 1.2.2 | 2010-11-02 | * mantis bug:1996 |
---|
78 | | | | . Incompatibility with PHP prior than 5.2.2 |
---|
79 | | | | |
---|
80 | | 1.2.3 | 2010-11-04 | * mantis bug:2004 |
---|
81 | | | | . Cache table becomes very huge |
---|
82 | | | | |
---|
83 | | | | * mantis bug:2005 |
---|
84 | | | | . Category map is not displayed when a [gmaps] map is |
---|
85 | | | | inserted in category description |
---|
86 | | | | |
---|
87 | | 1.2.4 | 2010-11-05 | * mantis bug:2009 |
---|
88 | | | | . MySQL error on search tab |
---|
89 | | | | |
---|
90 | | | | * mantis bug:2012 |
---|
91 | | | | . MySQL 5.1 incompatibility |
---|
92 | | | | |
---|
93 | | | | |
---|
94 | | | | |
---|
95 | | | | |
---|
96 | | | | |
---|
97 | | | | |
---|
98 | | | | |
---|
99 | | | | |
---|
100 | |
---|
101 | |
---|
102 | :: TO DO |
---|
103 | |
---|
104 | -------------------------------------------------------------------------------- |
---|
105 | |
---|
106 | :: NFO |
---|
107 | GMaps_root : common classe for admin and public classes |
---|
108 | GMaps_AIM : classe to manage plugin integration into plugin menu |
---|
109 | GMaps_AIP : classe to manage plugin admin pages |
---|
110 | GMaps_PIP : classe to manage plugin public pages |
---|
111 | |
---|
112 | -------------------------------------------------------------------------------- |
---|
113 | */ |
---|
114 | |
---|
115 | // pour faciliter le debug :o) |
---|
116 | //ini_set('error_reporting', E_ALL); |
---|
117 | //ini_set('display_errors', true); |
---|
118 | |
---|
119 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
120 | |
---|
121 | |
---|
122 | define('GMAPS_DIR' , basename(dirname(__FILE__))); |
---|
123 | define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/'); |
---|
124 | |
---|
125 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
126 | include_once('gmaps_version.inc.php'); // => Don't forget to update this file !! |
---|
127 | |
---|
128 | global $prefixeTable; |
---|
129 | |
---|
130 | if(defined('IN_ADMIN')) |
---|
131 | { |
---|
132 | //GMaps admin interface loaded and active only if in admin page |
---|
133 | include_once("gmaps_aim.class.inc.php"); |
---|
134 | $obj=new GMaps_AIM($prefixeTable, __FILE__); |
---|
135 | $obj->initEvents(); |
---|
136 | } |
---|
137 | else |
---|
138 | { |
---|
139 | if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED)) |
---|
140 | { |
---|
141 | //GMaps public interface loaded and active only if in public page |
---|
142 | include_once("gmaps_pip.class.inc.php"); |
---|
143 | $obj=new GMaps_PIP($prefixeTable, __FILE__); |
---|
144 | } |
---|
145 | } |
---|
146 | |
---|
147 | set_plugin_data($plugin['id'], $obj); |
---|
148 | |
---|
149 | ?> |
---|