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

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

Prepare release for plugin v1.0.0

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1<?php
2/*
3Plugin Name: GMaps
4Version: 0.2.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| 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
63if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
64
65
66define('GMAPS_DIR' , basename(dirname(__FILE__)));
67define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/');
68
69include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
70include_once('gmaps_version.inc.php'); // => Don't forget to update this file !!
71
72global $prefixeTable;
73
74if(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}
81else
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
91set_plugin_data($plugin['id'], $obj);
92
93?>
Note: See TracBrowser for help on using the repository browser.