Changeset 7179 for extensions/GrumPluginClasses
- Timestamp:
- Oct 13, 2010, 11:07:14 PM (14 years ago)
- Location:
- extensions/GrumPluginClasses
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/gpc_version.inc.php
r7146 r7179 15 15 if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 16 16 17 if(!defined('GPC_VERSION')) define('GPC_VERSION', '3.3. 0');18 if(!defined('GPC_VERSION2')) define('GPC_VERSION2', '03.03.0 0');17 if(!defined('GPC_VERSION')) define('GPC_VERSION', '3.3.1'); 18 if(!defined('GPC_VERSION2')) define('GPC_VERSION2', '03.03.01'); 19 19 ?> -
extensions/GrumPluginClasses/main.inc.php
r7175 r7179 1 1 <?php 2 2 /* 3 Plugin Name: G Maps4 Version: 0.2.05 Description: Display and manage (google) maps6 Plugin URI: http://p hpwebgallery.net/ext/extension_view.php?eid=3 Plugin Name: Grum Plugins Classes.3 4 Version: 3.3.1 5 Description: Collection de classes partagées entre mes plugins (existants, ou à venir) / Partaged classes between my plugins (actuals or futures) 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=199 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. com14 email : grum@piwigo.org 15 15 website : http://photos.grum.fr 16 PWG user : http://forum.phpwebgallery.net/profile.php?id=370617 16 18 17 << May the Little SpaceFrog be with you ! >> … … 22 21 23 22 | release | date | 24 | 0.1.0 | 2010-08-22 | * first lines of code 25 | | | . release not published 23 | 2.0.0 | 2008/07/20 | * convert classes for piwigo 2.0 26 24 | | | 27 | 0.2.0 | 2010-09-30 | * first official release25 | 2.0.1 | 2008/12/28 | * convert classe tables.class.inc to php5 28 26 | | | 27 | 2.0.2 | 2009/04/26 | * add setOptions/getOptions for GPCPagesNavigation class 28 | | | * add option to set first/prev/next/last textes 29 29 | | | 30 | 2.0.3 | 2009/07/24 | * modify common_plugin class config loader (r2.0.1) 30 31 | | | 32 | 2.0.4 | 2009/11/29 | * modify users class 31 33 | | | 34 | 3.0.0 | 2010/03/28 | * Uses piwigo pwg_db_* functions instead of mysql_* functions 35 | | | * update classes & functions names 36 | | | * include the JpegMetaData class 32 37 | | | 38 | 3.0.1 | 2010/04/11 | * little bug on the template (call of an undefined var) 39 | | | * Add new languages 40 | | | . es_ES 41 | | | . hu_HU 42 | | | . it_IT 33 43 | | | 44 | 3.1.0 | 2010/04/24 | * add the GPCTabSheet class 45 | | | * add the GPCRequestBuilder class 46 | | | * add the pageNavigator.js 47 | | | * update the GPCCore class 48 | | | * Add new languages 49 | | | . nl_NL 50 | | | . de_DE 51 | | | 52 | 3.1.1 | 2010/05/18 | * fix bug in the install process (CommonPlugin not 53 | | | included) 54 | | | 55 | 3.2.0 | 2010/09/12 | * Enhance GPCTabSheet functionnalities 56 | | | - possibility to choose tab classes 57 | | | * Add the simpleTip.js 58 | | | * Enhance GPCRequestBuilder functionnalities 59 | | | - now abble to manage complex request with multi-record 60 | | | - result can be stored in the caddie 61 | | | 62 | 3.2.1 | 2010/10/09 | * Enhance GPCTabSheet functionnalities 63 | | | - add 'id' attribute for tabs (<li> items) 64 | | | 65 | | | * Fix JS & CSS bug with IE8 66 | | | 67 | 3.3.0 | 2010/10/13 | * Add the jQuery plugins 68 | | | . ui.iconSelector.js + ui.iconSelector.packed.js 69 | | | . ui.categorySelector.js + ui.categorySelector.packed.js 70 | | | 71 | | | * Pack JS scripts 72 | | | . pagesNavigator.packed.js 73 | | | . criteriaBuilder.packed.js 74 | | | . simpleTip.packed.js 75 | | | 76 | | | * Adding GPCCategorySelector class 77 | | | 78 | | | ===== Don't forget to update the plugin version ! ===== 34 79 | | | 35 80 | | | … … 46 91 :: TO DO 47 92 48 -------------------------------------------------------------------------------- 93 :: WHAT ? WHY ? 94 This plugin doesn't do anything itself. It just provide classes for others plugins. 49 95 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 96 Classes version for this package 97 CommonPlugin.class.php 98 GPCAjax.class.php 99 GPCCategorySelector.class.inc.php 100 GPCCore.class.php 101 GPCCss.class.php 102 GPCPagesNavigation.class.php 103 GPCPublicIntegration.class.php 104 GPCRequestBuilder.class.php 105 GPCTables.class.php -v1.5 106 GPCTabSheet.class.inc.php 107 GPCTranslate.class.inc.php + google_translate.js 108 GPCUsersGroups.class.inc.php 55 109 110 genericjs.class.inc.php + genericjs.js 111 112 See each file to know more about them 56 113 -------------------------------------------------------------------------------- 57 114 */ 58 115 59 // pour faciliter le debug :o)60 //ini_set('error_reporting', E_ALL);61 //ini_set('display_errors', true);62 63 116 if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 64 117 118 define('GPC_DIR' , basename(dirname(__FILE__))); 119 define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/'); 65 120 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 !! 121 include_once('gpc_version.inc.php'); // => Don't forget to update this file !! 122 include_once(GPC_PATH.'classes/GPCCore.class.inc.php'); 71 123 72 124 global $prefixeTable; 73 125 126 127 128 $config=Array(); 129 GPCCore::loadConfig('gpc', $config); 130 131 if(!isset($config['installed'])) $config['installed']='03.01.00'; 132 if($config['installed']!=GPC_VERSION2) 133 { 134 /* the plugin was updated without being deactivated 135 * deactivate + activate the plugin to process the database upgrade 136 */ 137 include(GPC_PATH."gpc_install.class.inc.php"); 138 $gpc=new GPC_Install($prefixeTable, __FILE__); 139 $gpc->deactivate(); 140 $gpc->activate(); 141 } 142 143 74 144 if(defined('IN_ADMIN')) 75 145 { 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__); 146 //GPC admin interface is loaded and active only if in admin page 147 include_once("gpc_aim.class.inc.php"); 148 149 $obj = new GPC_AIM($prefixeTable, __FILE__); 79 150 $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 } 151 set_plugin_data($plugin['id'], $obj); 89 152 } 90 153 91 set_plugin_data($plugin['id'], $obj);92 93 154 ?>
Note: See TracChangeset
for help on using the changeset viewer.