source: extensions/GMaps/main.inc.php @ 16457

Last change on this file since 16457 was 16457, checked in by grum, 12 years ago

feature:2638- compatibility with Piwigo 2.4
Update URI

  • Property svn:executable set to *
File size: 6.7 KB
Line 
1<?php
2/*
3Plugin Name: GMaps
4Version: 1.4.0
5Description: Display and manage (google) maps
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=454
7Author: grum@piwigo.org
8Author 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|         |            |
128|         |            |
129|         |            |
130|         |            |
131
132
133:: TO DO
134
135--------------------------------------------------------------------------------
136
137:: NFO
138  GMaps_root : common classe for admin and public classes
139  GMaps_AIM  : classe to manage plugin integration into plugin menu
140  GMaps_AIP  : classe to manage plugin admin pages
141  GMaps_PIP  : classe to manage plugin public pages
142
143--------------------------------------------------------------------------------
144*/
145
146// pour faciliter le debug :o)
147 //ini_set('error_reporting', E_ALL);
148 //ini_set('display_errors', true);
149
150if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
151
152
153define('GMAPS_DIR' , basename(dirname(__FILE__)));
154define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/');
155
156include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
157include_once('gmaps_version.inc.php'); // => Don't forget to update this file !!
158
159global $prefixeTable;
160
161if(!defined('AJAX_CALL'))
162{
163  if(defined('IN_ADMIN'))
164  {
165    //GMaps admin interface loaded and active only if in admin page
166    include_once("gmaps_aim.class.inc.php");
167    $obj=new GMaps_AIM($prefixeTable, __FILE__);
168    $obj->initEvents();
169  }
170  else
171  {
172    if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED) and !mobile_theme())
173    {
174      //GMaps public interface loaded and active only if in public page
175      include_once("gmaps_pip.class.inc.php");
176      $obj=new GMaps_PIP($prefixeTable, __FILE__);
177    }
178  }
179}
180
181set_plugin_data($plugin['id'], $obj);
182
183?>
Note: See TracBrowser for help on using the repository browser.