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

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

bug:2710
bug:2731

  • Property svn:executable set to *
File size: 7.0 KB
RevLine 
[7054]1<?php
2/*
3Plugin Name: GMaps
[17653]4Version: 1.4.1
[7054]5Description: Display and manage (google) maps
[12204]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=454
[7054]7Author: grum@piwigo.org
[16457]8Author URI: http://www.grum.fr
[7054]9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
[16457]15    website  : http://www.grum.fr
[7054]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|         |            |
[7308]26| 1.0.0   | 2010-09-30 | * first official release
[7054]27|         |            |
[7308]28| 1.1.0   | 2010-10-20 | * mantis bug:1926
29|         |            |   . key not translated
[7054]30|         |            |
[7308]31|         |            | * mantis bug:1927
32|         |            |   . Autozoom on categories maps : needs a min/max level
[7054]33|         |            |
[7308]34|         |            | * mantis bug:1929
35|         |            |   . allowing to set the size for automatic size
[7054]36|         |            |
[7308]37|         |            | * mantis bug:1930
38|         |            |   . Improve loading time for markers
[7054]39|         |            |
[7308]40|         |            | * mantis bug:1931
41|         |            |   . when an association is modified, it's possible to
42|         |            |     set a category already associated
[7054]43|         |            |
[7308]44|         |            | * mantis bug:1939
45|         |            |   . compatibility with ExtendedDescription
[7054]46|         |            |
[7308]47|         |            | * mantis bug:1946
48|         |            |   . Save KML files in local directory
[7054]49|         |            |
[7479]50| 1.2.0   | 2010-10-28 | * mantis bug:1972
[7453]51|         |            |   . thumbnails are not displayed in maps bubble box
[7054]52|         |            |
[7479]53|         |            | * mantis bug:1950
54|         |            |   . Display map if a kml file is associated
[7054]55|         |            |
[7482]56|         |            | * mantis bug:1967
57|         |            |   . Maps are not displayed if user navigate with tag
[7054]58|         |            |
[7500]59|         |            | * mantis bug:1937
60|         |            |   . add possibility to add maps in descriptions
[7054]61|         |            |
[7547]62|         |            | * mantis bug:1985
63|         |            |   . KML/KMZ files with spaces in file name are not
64|         |            |     managed
[7479]65|         |            |
[7562]66| 1.2.1   | 2010-11-01 | * mantis bug:1989
67|         |            |   . Incompatibility with ExtendedDescription
[7500]68|         |            |
[7567]69|         |            | * mantis bug:1991
70|         |            |   . [gmaps] markup, kmlId is not functionnal
[7500]71|         |            |
[7568]72|         |            | * mantis bug:1987
73|         |            |   . Add an interface allowing to know ID for maps and
74|         |            |     kml files
[7562]75|         |            |
[7576]76| 1.2.2   | 2010-11-02 | * mantis bug:1996
77|         |            |   . Incompatibility with PHP prior than 5.2.2
78|         |            |
[7616]79| 1.2.3   | 2010-11-04 | * mantis bug:2004
80|         |            |   . Cache table becomes very huge
[7576]81|         |            |
[7616]82|         |            | * mantis bug:2005
83|         |            |   . Category map is not displayed when a [gmaps] map is
84|         |            |     inserted in category description
[7576]85|         |            |
[7676]86| 1.2.4   | 2010-11-05 | * mantis bug:2009
87|         |            |   . MySQL error on search tab
[7576]88|         |            |
[7676]89|         |            | * mantis bug:2012
90|         |            |   . MySQL 5.1 incompatibility
91|         |            |
[10551]92| 1.3.0   | 2011-04-13 | * mantis bug:2148
93|         |            |   . compatibility with piwigo 2.2
[7676]94|         |            |
[10551]95|         |            | * mantis bug:2062
96|         |            |   . With IE7, comma is not accepted at the end of a JS
97|         |            |     object
[7676]98|         |            |
[10915]99| 1.3.1   | 2011-05-17 | * mantis bug:2304
100|         |            |   . Impossible to upload kml file
[7676]101|         |            |
[12204]102| 1.3.2   | 2011-09-22 | * mantis bug:2063
103|         |            |   . Incompatibility with slideshow mode
[7676]104|         |            |
[12204]105|         |            | * mantis bug:2346
106|         |            |   . Preview / next arrow do not work with [gmaps] tag
107|         |            |     in description
[7676]108|         |            |
[12211]109|         |            | * mantis bug:2034
110|         |            |   . Unable to load pictures if there is categories with
111|         |            |     the same name
[7676]112|         |            |
[12212]113|         |            | * mantis bug:2347
114|         |            |   . kml display is not working if selecting a kml file
115|         |            |     in Gmaps plugin manager
[7676]116|         |            |
[12213]117|         |            | * mantis bug:2042
118|         |            |   . Category map is not available if option "apply to
119|         |            |     subcategories" is not selected
[10551]120|         |            |
[12214]121|         |            | * mantis bug:2444
122|         |            |   . Manage extended description for categories names
[10551]123|         |            |
[15345]124| 1.4.0   | 2012-05-25 | * mantis feature:2638
125|         |            |   . Compatibility with Piwigo 2.4
[12212]126|         |            |
[17653]127| 1.4.1   | 2012-08-29 | * mantis bug:2731
128|         |            |   . Association between album and map are not always respected
[12214]129|         |            |
[17653]130|         |            | * mantis bug:2710
131|         |            |   . Incompatibiliy with some MySQL version
[12214]132|         |            |
133|         |            |
[15345]134|         |            |
[7054]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
154if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
155
156
157define('GMAPS_DIR' , basename(dirname(__FILE__)));
158define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/');
159
160include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
161include_once('gmaps_version.inc.php'); // => Don't forget to update this file !!
162
163global $prefixeTable;
164
[16011]165if(!defined('AJAX_CALL'))
[7054]166{
[16011]167  if(defined('IN_ADMIN'))
[7054]168  {
[16011]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();
[7054]173  }
[16011]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  }
[7054]183}
184
185set_plugin_data($plugin['id'], $obj);
186
187?>
Note: See TracBrowser for help on using the repository browser.