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

Last change on this file since 7308 was 7308, checked in by grum, 14 years ago

fix bug and implement new features
bug:1926, bug:1927, bug:1929, bug:1930, bug:1931, bug:1939, bug:1946

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1<?php
2/*
3Plugin Name: GMaps
4Version: 1.1.0
5Description: Display and manage (google) maps
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=454
7Author: grum@piwigo.org
8Author 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|         |            |
52|         |            |
53|         |            |
54|         |            |
55|         |            |
56|         |            |
57|         |            |
58
59
60:: TO DO
61
62--------------------------------------------------------------------------------
63
64:: NFO
65  GMaps_root : common classe for admin and public classes
66  GMaps_AIM  : classe to manage plugin integration into plugin menu
67  GMaps_AIP  : classe to manage plugin admin pages
68  GMaps_PIP  : classe to manage plugin public pages
69
70--------------------------------------------------------------------------------
71*/
72
73// pour faciliter le debug :o)
74 //ini_set('error_reporting', E_ALL);
75 //ini_set('display_errors', true);
76
77if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
78
79
80define('GMAPS_DIR' , basename(dirname(__FILE__)));
81define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/');
82
83include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
84include_once('gmaps_version.inc.php'); // => Don't forget to update this file !!
85
86global $prefixeTable;
87
88if(defined('IN_ADMIN'))
89{
90  //GMaps admin interface loaded and active only if in admin page
91  include_once("gmaps_aim.class.inc.php");
92  $obj=new GMaps_AIM($prefixeTable, __FILE__);
93  $obj->initEvents();
94}
95else
96{
97  if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED))
98  {
99    //GMaps public interface loaded and active only if in public page
100    include_once("gmaps_pip.class.inc.php");
101    $obj=new GMaps_PIP($prefixeTable, __FILE__);
102  }
103}
104
105set_plugin_data($plugin['id'], $obj);
106
107?>
Note: See TracBrowser for help on using the repository browser.