1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: GMaps |
---|
4 | Version: 1.4.1 |
---|
5 | Description: Display and manage (google) maps |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=454 |
---|
7 | Author: grum@piwigo.org |
---|
8 | Author URI: http://www.grum.fr |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | -------------------------------------------------------------------------------- |
---|
13 | Author : Grum |
---|
14 | email : grum@piwigo.com |
---|
15 | website : http://www.grum.fr |
---|
16 | |
---|
17 | << May the Little SpaceFrog be with you ! >> |
---|
18 | -------------------------------------------------------------------------------- |
---|
19 | |
---|
20 | :: HISTORY |
---|
21 | |
---|
22 | | release | date | |
---|
23 | | 0.1.0 | 2010-08-22 | * first lines of code |
---|
24 | | | | . release not published |
---|
25 | | | | |
---|
26 | | 1.0.0 | 2010-09-30 | * first official release |
---|
27 | | | | |
---|
28 | | 1.1.0 | 2010-10-20 | * mantis bug:1926 |
---|
29 | | | | . key not translated |
---|
30 | | | | |
---|
31 | | | | * mantis bug:1927 |
---|
32 | | | | . Autozoom on categories maps : needs a min/max level |
---|
33 | | | | |
---|
34 | | | | * mantis bug:1929 |
---|
35 | | | | . allowing to set the size for automatic size |
---|
36 | | | | |
---|
37 | | | | * mantis bug:1930 |
---|
38 | | | | . Improve loading time for markers |
---|
39 | | | | |
---|
40 | | | | * mantis bug:1931 |
---|
41 | | | | . when an association is modified, it's possible to |
---|
42 | | | | set a category already associated |
---|
43 | | | | |
---|
44 | | | | * mantis bug:1939 |
---|
45 | | | | . compatibility with ExtendedDescription |
---|
46 | | | | |
---|
47 | | | | * mantis bug:1946 |
---|
48 | | | | . Save KML files in local directory |
---|
49 | | | | |
---|
50 | | 1.2.0 | 2010-10-28 | * mantis bug:1972 |
---|
51 | | | | . thumbnails are not displayed in maps bubble box |
---|
52 | | | | |
---|
53 | | | | * mantis bug:1950 |
---|
54 | | | | . Display map if a kml file is associated |
---|
55 | | | | |
---|
56 | | | | * mantis bug:1967 |
---|
57 | | | | . Maps are not displayed if user navigate with tag |
---|
58 | | | | |
---|
59 | | | | * mantis bug:1937 |
---|
60 | | | | . add possibility to add maps in descriptions |
---|
61 | | | | |
---|
62 | | | | * mantis bug:1985 |
---|
63 | | | | . KML/KMZ files with spaces in file name are not |
---|
64 | | | | managed |
---|
65 | | | | |
---|
66 | | 1.2.1 | 2010-11-01 | * mantis bug:1989 |
---|
67 | | | | . Incompatibility with ExtendedDescription |
---|
68 | | | | |
---|
69 | | | | * mantis bug:1991 |
---|
70 | | | | . [gmaps] markup, kmlId is not functionnal |
---|
71 | | | | |
---|
72 | | | | * mantis bug:1987 |
---|
73 | | | | . Add an interface allowing to know ID for maps and |
---|
74 | | | | kml files |
---|
75 | | | | |
---|
76 | | 1.2.2 | 2010-11-02 | * mantis bug:1996 |
---|
77 | | | | . Incompatibility with PHP prior than 5.2.2 |
---|
78 | | | | |
---|
79 | | 1.2.3 | 2010-11-04 | * mantis bug:2004 |
---|
80 | | | | . Cache table becomes very huge |
---|
81 | | | | |
---|
82 | | | | * mantis bug:2005 |
---|
83 | | | | . Category map is not displayed when a [gmaps] map is |
---|
84 | | | | inserted in category description |
---|
85 | | | | |
---|
86 | | 1.2.4 | 2010-11-05 | * mantis bug:2009 |
---|
87 | | | | . MySQL error on search tab |
---|
88 | | | | |
---|
89 | | | | * mantis bug:2012 |
---|
90 | | | | . MySQL 5.1 incompatibility |
---|
91 | | | | |
---|
92 | | 1.3.0 | 2011-04-13 | * mantis bug:2148 |
---|
93 | | | | . compatibility with piwigo 2.2 |
---|
94 | | | | |
---|
95 | | | | * mantis bug:2062 |
---|
96 | | | | . With IE7, comma is not accepted at the end of a JS |
---|
97 | | | | object |
---|
98 | | | | |
---|
99 | | 1.3.1 | 2011-05-17 | * mantis bug:2304 |
---|
100 | | | | . Impossible to upload kml file |
---|
101 | | | | |
---|
102 | | 1.3.2 | 2011-09-22 | * mantis bug:2063 |
---|
103 | | | | . Incompatibility with slideshow mode |
---|
104 | | | | |
---|
105 | | | | * mantis bug:2346 |
---|
106 | | | | . Preview / next arrow do not work with [gmaps] tag |
---|
107 | | | | in description |
---|
108 | | | | |
---|
109 | | | | * mantis bug:2034 |
---|
110 | | | | . Unable to load pictures if there is categories with |
---|
111 | | | | the same name |
---|
112 | | | | |
---|
113 | | | | * mantis bug:2347 |
---|
114 | | | | . kml display is not working if selecting a kml file |
---|
115 | | | | in Gmaps plugin manager |
---|
116 | | | | |
---|
117 | | | | * mantis bug:2042 |
---|
118 | | | | . Category map is not available if option "apply to |
---|
119 | | | | subcategories" is not selected |
---|
120 | | | | |
---|
121 | | | | * mantis bug:2444 |
---|
122 | | | | . Manage extended description for categories names |
---|
123 | | | | |
---|
124 | | 1.4.0 | 2012-05-25 | * mantis feature:2638 |
---|
125 | | | | . Compatibility with Piwigo 2.4 |
---|
126 | | | | |
---|
127 | | 1.4.1 | 2012-08-29 | * mantis bug:2731 |
---|
128 | | | | . Association between album and map are not always respected |
---|
129 | | | | |
---|
130 | | | | * mantis bug:2710 |
---|
131 | | | | . Incompatibiliy with some MySQL version |
---|
132 | | | | |
---|
133 | | | | |
---|
134 | | | | |
---|
135 | |
---|
136 | |
---|
137 | :: TO DO |
---|
138 | |
---|
139 | -------------------------------------------------------------------------------- |
---|
140 | |
---|
141 | :: NFO |
---|
142 | GMaps_root : common classe for admin and public classes |
---|
143 | GMaps_AIM : classe to manage plugin integration into plugin menu |
---|
144 | GMaps_AIP : classe to manage plugin admin pages |
---|
145 | GMaps_PIP : classe to manage plugin public pages |
---|
146 | |
---|
147 | -------------------------------------------------------------------------------- |
---|
148 | */ |
---|
149 | |
---|
150 | // pour faciliter le debug :o) |
---|
151 | //ini_set('error_reporting', E_ALL); |
---|
152 | //ini_set('display_errors', true); |
---|
153 | |
---|
154 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
155 | |
---|
156 | |
---|
157 | define('GMAPS_DIR' , basename(dirname(__FILE__))); |
---|
158 | define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/'); |
---|
159 | |
---|
160 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
161 | include_once('gmaps_version.inc.php'); // => Don't forget to update this file !! |
---|
162 | |
---|
163 | global $prefixeTable; |
---|
164 | |
---|
165 | if(!defined('AJAX_CALL')) |
---|
166 | { |
---|
167 | if(defined('IN_ADMIN')) |
---|
168 | { |
---|
169 | //GMaps admin interface loaded and active only if in admin page |
---|
170 | include_once("gmaps_aim.class.inc.php"); |
---|
171 | $obj=new GMaps_AIM($prefixeTable, __FILE__); |
---|
172 | $obj->initEvents(); |
---|
173 | } |
---|
174 | else |
---|
175 | { |
---|
176 | if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED) and !mobile_theme()) |
---|
177 | { |
---|
178 | //GMaps public interface loaded and active only if in public page |
---|
179 | include_once("gmaps_pip.class.inc.php"); |
---|
180 | $obj=new GMaps_PIP($prefixeTable, __FILE__); |
---|
181 | } |
---|
182 | } |
---|
183 | } |
---|
184 | |
---|
185 | set_plugin_data($plugin['id'], $obj); |
---|
186 | |
---|
187 | ?> |
---|