1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: GMaps |
---|
4 | Version: 0.2.0 |
---|
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 | | 0.2.0 | 2010-09-30 | * first official release |
---|
28 | | | | |
---|
29 | | | | |
---|
30 | | | | |
---|
31 | | | | |
---|
32 | | | | |
---|
33 | | | | |
---|
34 | | | | |
---|
35 | | | | |
---|
36 | | | | |
---|
37 | | | | |
---|
38 | | | | |
---|
39 | | | | |
---|
40 | | | | |
---|
41 | | | | |
---|
42 | | | | |
---|
43 | | | | |
---|
44 | |
---|
45 | |
---|
46 | :: TO DO |
---|
47 | |
---|
48 | -------------------------------------------------------------------------------- |
---|
49 | |
---|
50 | :: NFO |
---|
51 | GMaps_root : common classe for admin and public classes |
---|
52 | GMaps_AIM : classe to manage plugin integration into plugin menu |
---|
53 | GMaps_AIP : classe to manage plugin admin pages |
---|
54 | GMaps_PIP : classe to manage plugin public pages |
---|
55 | |
---|
56 | -------------------------------------------------------------------------------- |
---|
57 | */ |
---|
58 | |
---|
59 | // pour faciliter le debug :o) |
---|
60 | //ini_set('error_reporting', E_ALL); |
---|
61 | //ini_set('display_errors', true); |
---|
62 | |
---|
63 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
64 | |
---|
65 | |
---|
66 | define('GMAPS_DIR' , basename(dirname(__FILE__))); |
---|
67 | define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/'); |
---|
68 | |
---|
69 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
70 | include_once('gmaps_version.inc.php'); // => Don't forget to update this file !! |
---|
71 | |
---|
72 | global $prefixeTable; |
---|
73 | |
---|
74 | if(defined('IN_ADMIN')) |
---|
75 | { |
---|
76 | //GMaps admin interface loaded and active only if in admin page |
---|
77 | include_once("gmaps_aim.class.inc.php"); |
---|
78 | $obj=new GMaps_AIM($prefixeTable, __FILE__); |
---|
79 | $obj->initEvents(); |
---|
80 | } |
---|
81 | else |
---|
82 | { |
---|
83 | if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED)) |
---|
84 | { |
---|
85 | //GMaps public interface loaded and active only if in public page |
---|
86 | include_once("gmaps_pip.class.inc.php"); |
---|
87 | $obj=new GMaps_PIP($prefixeTable, __FILE__); |
---|
88 | } |
---|
89 | } |
---|
90 | |
---|
91 | set_plugin_data($plugin['id'], $obj); |
---|
92 | |
---|
93 | ?> |
---|