Changeset 7175 for extensions/GrumPluginClasses/main.inc.php
- Timestamp:
- Oct 13, 2010, 5:22:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/main.inc.php
r7146 r7175 1 1 <?php 2 2 /* 3 Plugin Name: G rum Plugins Classes.34 Version: 3.2.15 Description: Collection de classes partagées entre mes plugins (existants, ou à venir) / Partaged classes between my plugins (actuals or futures)6 Plugin URI: http://p iwigo.org/ext/extension_view.php?eid=1993 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= 7 7 Author: grum@piwigo.org 8 Author URI: http://photos.grum.fr /8 Author URI: http://photos.grum.fr 9 9 */ 10 10 … … 12 12 -------------------------------------------------------------------------------- 13 13 Author : Grum 14 email : grum@piwigo. org14 email : grum@piwigo.com 15 15 website : http://photos.grum.fr 16 PWG user : http://forum.phpwebgallery.net/profile.php?id=3706 16 17 17 18 << May the Little SpaceFrog be with you ! >> … … 21 22 22 23 | release | date | 23 | 2.0.0 | 2008/07/20 | * convert classes for piwigo 2.0 24 | 0.1.0 | 2010-08-22 | * first lines of code 25 | | | . release not published 24 26 | | | 25 | 2.0.1 | 2008/12/28 | * convert classe tables.class.inc to php527 | 0.2.0 | 2010-09-30 | * first official release 26 28 | | | 27 | 2.0.2 | 2009/04/26 | * add setOptions/getOptions for GPCPagesNavigation class28 | | | * add option to set first/prev/next/last textes29 29 | | | 30 | 2.0.3 | 2009/07/24 | * modify common_plugin class config loader (r2.0.1)31 30 | | | 32 | 2.0.4 | 2009/11/29 | * modify users class33 31 | | | 34 | 3.0.0 | 2010/03/28 | * Uses piwigo pwg_db_* functions instead of mysql_* functions35 | | | * update classes & functions names36 | | | * include the JpegMetaData class37 32 | | | 38 | 3.0.1 | 2010/04/11 | * little bug on the template (call of an undefined var)39 | | | * Add new languages40 | | | . es_ES41 | | | . hu_HU42 | | | . it_IT43 33 | | | 44 | 3.1.0 | 2010/04/24 | * add the GPCTabSheet class45 | | | * add the GPCRequestBuilder class46 | | | * add the pageNavigator.js47 | | | * update the GPCCore class48 | | | * Add new languages49 | | | . nl_NL50 | | | . de_DE51 | | |52 | 3.1.1 | 2010/05/18 | * fix bug in the install process (CommonPlugin not53 | | | included)54 | | |55 | 3.2.0 | 2010/09/12 | * Enhance GPCTabSheet functionnalities56 | | | - possibility to choose tab classes57 | | | * Add the simpleTip.js58 | | | * Enhance GPCRequestBuilder functionnalities59 | | | - now abble to manage complex request with multi-record60 | | | - result can be stored in the caddie61 | | |62 | 3.2.1 | 2010/10/09 | * Enhance GPCTabSheet functionnalities63 | | | - add 'id' attribute for tabs (<li> items)64 | | |65 | | | * Fix JS & CSS bug with IE866 | | |67 | 3.2.2 | 2010/mm/dd | *68 | | |69 | | | ===== Don't forget to update the plugin version ! =====70 34 | | | 71 35 | | | … … 82 46 :: TO DO 83 47 84 :: WHAT ? WHY ? 85 This plugin doesn't do anything itself. It just provide classes for others plugins. 48 -------------------------------------------------------------------------------- 86 49 87 Classes version for this package 88 CommonPlugin.class.php 89 GPCAjax.class.php 90 GPCCss.class.php 91 GPCPagesNavigation.class.php 92 GPCPublicIntegration.class.php 93 GPCTables.class.php -v1.5 94 GPCTranslate.class.inc.php + google_translate.js 95 GPCUsersGroups.class.inc.php 96 GPCTabSheet.class.inc.php 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 97 55 98 genericjs.class.inc.php + genericjs.js99 100 See each file to know more about them101 56 -------------------------------------------------------------------------------- 102 57 */ 103 58 59 // pour faciliter le debug :o) 60 //ini_set('error_reporting', E_ALL); 61 //ini_set('display_errors', true); 62 104 63 if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 105 64 106 define('GPC_DIR' , basename(dirname(__FILE__)));107 define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/');108 65 109 include_once('gpc_version.inc.php'); // => Don't forget to update this file !! 110 include_once(GPC_PATH.'classes/GPCCore.class.inc.php'); 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 !! 111 71 112 72 global $prefixeTable; 113 73 114 115 116 $config=Array(); 117 GPCCore::loadConfig('gpc', $config); 118 119 if(!isset($config['installed'])) $config['installed']='03.01.00'; 120 if($config['installed']!=GPC_VERSION2) 74 if(defined('IN_ADMIN')) 121 75 { 122 /* the plugin was updated without being deactivated 123 * deactivate + activate the plugin to process the database upgrade 124 */ 125 include(GPC_PATH."gpc_install.class.inc.php"); 126 $gpc=new GPC_Install($prefixeTable, __FILE__); 127 $gpc->deactivate(); 128 $gpc->activate(); 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 } 129 89 } 130 90 131 132 if(defined('IN_ADMIN')) 133 { 134 //GPC admin interface is loaded and active only if in admin page 135 include_once("gpc_aim.class.inc.php"); 136 137 $obj = new GPC_AIM($prefixeTable, __FILE__); 138 $obj->initEvents(); 139 set_plugin_data($plugin['id'], $obj); 140 } 91 set_plugin_data($plugin['id'], $obj); 141 92 142 93 ?>
Note: See TracChangeset
for help on using the changeset viewer.