Index: extensions/GrumPluginClasses/main.inc.php
===================================================================
--- extensions/GrumPluginClasses/main.inc.php	(revision 7175)
+++ extensions/GrumPluginClasses/main.inc.php	(revision 7179)
@@ -1,10 +1,10 @@
 <?php
 /*
-Plugin Name: GMaps
-Version: 0.2.0
-Description: Display and manage (google) maps
-Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=
+Plugin Name: Grum Plugins Classes.3
+Version: 3.3.1
+Description: Collection de classes partagées entre mes plugins (existants, ou à venir) / Partaged classes between my plugins (actuals or futures)
+Plugin URI: http://piwigo.org/ext/extension_view.php?eid=199
 Author: grum@piwigo.org
-Author URI: http://photos.grum.fr
+Author URI: http://photos.grum.fr/
 */
 
@@ -12,7 +12,6 @@
 --------------------------------------------------------------------------------
   Author     : Grum
-    email    : grum@piwigo.com
+    email    : grum@piwigo.org
     website  : http://photos.grum.fr
-    PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
 
     << May the Little SpaceFrog be with you ! >>
@@ -22,14 +21,60 @@
 
 | release | date       |
-| 0.1.0   | 2010-08-22 | * first lines of code
-|         |            |   . release not published
+| 2.0.0   | 2008/07/20 | * convert classes for piwigo 2.0
 |         |            |
-| 0.2.0   | 2010-09-30 | * first official release
+| 2.0.1   | 2008/12/28 | * convert classe tables.class.inc to php5
 |         |            |
+| 2.0.2   | 2009/04/26 | * add setOptions/getOptions for GPCPagesNavigation class
+|         |            | * add option to set first/prev/next/last textes
 |         |            |
+| 2.0.3   | 2009/07/24 | * modify common_plugin class config loader (r2.0.1)
 |         |            |
+| 2.0.4   | 2009/11/29 | * modify users class
 |         |            |
+| 3.0.0   | 2010/03/28 | * Uses piwigo pwg_db_* functions instead of mysql_* functions
+|         |            | * update classes & functions names
+|         |            | * include the JpegMetaData class
 |         |            |
+| 3.0.1   | 2010/04/11 | * little bug on the template (call of an undefined var)
+|         |            | * Add new languages
+|         |            |   . es_ES
+|         |            |   . hu_HU
+|         |            |   . it_IT
 |         |            |
+| 3.1.0   | 2010/04/24 | * add the GPCTabSheet class
+|         |            | * add the GPCRequestBuilder class
+|         |            | * add the pageNavigator.js
+|         |            | * update the GPCCore class
+|         |            | * Add new languages
+|         |            |   . nl_NL
+|         |            |   . de_DE
+|         |            |
+| 3.1.1   | 2010/05/18 | * fix bug in the install process (CommonPlugin not
+|         |            |   included)
+|         |            |
+| 3.2.0   | 2010/09/12 | * Enhance GPCTabSheet functionnalities
+|         |            |   - possibility to choose tab classes
+|         |            | * Add the simpleTip.js
+|         |            | * Enhance GPCRequestBuilder functionnalities
+|         |            |   - now abble to manage complex request with multi-record
+|         |            |   - result can be stored in the caddie
+|         |            |
+| 3.2.1   | 2010/10/09 | * Enhance GPCTabSheet functionnalities
+|         |            |   - add 'id' attribute for tabs (<li> items)
+|         |            |
+|         |            | * Fix JS & CSS bug with IE8
+|         |            |
+| 3.3.0   | 2010/10/13 | * Add the jQuery plugins
+|         |            |   . ui.iconSelector.js + ui.iconSelector.packed.js
+|         |            |   . ui.categorySelector.js + ui.categorySelector.packed.js
+|         |            |
+|         |            | * Pack JS scripts
+|         |            |   . pagesNavigator.packed.js
+|         |            |   . criteriaBuilder.packed.js
+|         |            |   . simpleTip.packed.js
+|         |            |
+|         |            | * Adding GPCCategorySelector class
+|         |            |
+|         |            | ===== Don't forget to update the plugin version ! =====
 |         |            |
 |         |            |
@@ -46,48 +91,64 @@
 :: TO DO
 
---------------------------------------------------------------------------------
+:: WHAT ? WHY ?
+This plugin doesn't do anything itself. It just provide classes for others plugins.
 
-:: NFO
-  GMaps_root : common classe for admin and public classes
-  GMaps_AIM  : classe to manage plugin integration into plugin menu
-  GMaps_AIP  : classe to manage plugin admin pages
-  GMaps_PIP  : classe to manage plugin public pages
+Classes version for this package
+    CommonPlugin.class.php
+    GPCAjax.class.php
+    GPCCategorySelector.class.inc.php
+    GPCCore.class.php
+    GPCCss.class.php
+    GPCPagesNavigation.class.php
+    GPCPublicIntegration.class.php
+    GPCRequestBuilder.class.php
+    GPCTables.class.php -v1.5
+    GPCTabSheet.class.inc.php
+    GPCTranslate.class.inc.php + google_translate.js
+    GPCUsersGroups.class.inc.php
 
+    genericjs.class.inc.php  + genericjs.js
+
+See each file to know more about them
 --------------------------------------------------------------------------------
 */
 
-// pour faciliter le debug :o)
- //ini_set('error_reporting', E_ALL);
- //ini_set('display_errors', true);
-
 if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
 
+define('GPC_DIR' , basename(dirname(__FILE__)));
+define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/');
 
-define('GMAPS_DIR' , basename(dirname(__FILE__)));
-define('GMAPS_PATH' , PHPWG_PLUGINS_PATH . GMAPS_DIR . '/');
-
-include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
-include_once('gmaps_version.inc.php'); // => Don't forget to update this file !!
+include_once('gpc_version.inc.php'); // => Don't forget to update this file !!
+include_once(GPC_PATH.'classes/GPCCore.class.inc.php');
 
 global $prefixeTable;
 
+
+
+$config=Array();
+GPCCore::loadConfig('gpc', $config);
+
+if(!isset($config['installed'])) $config['installed']='03.01.00';
+if($config['installed']!=GPC_VERSION2)
+{
+  /* the plugin was updated without being deactivated
+   * deactivate + activate the plugin to process the database upgrade
+   */
+  include(GPC_PATH."gpc_install.class.inc.php");
+  $gpc=new GPC_Install($prefixeTable, __FILE__);
+  $gpc->deactivate();
+  $gpc->activate();
+}
+
+
 if(defined('IN_ADMIN'))
 {
-  //GMaps admin interface loaded and active only if in admin page
-  include_once("gmaps_aim.class.inc.php");
-  $obj=new GMaps_AIM($prefixeTable, __FILE__);
+  //GPC admin interface is loaded and active only if in admin page
+  include_once("gpc_aim.class.inc.php");
+
+  $obj = new GPC_AIM($prefixeTable, __FILE__);
   $obj->initEvents();
-}
-else
-{
-  if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED))
-  {
-    //GMaps public interface loaded and active only if in public page
-    include_once("gmaps_pip.class.inc.php");
-    $obj=new GMaps_PIP($prefixeTable, __FILE__);
-  }
+  set_plugin_data($plugin['id'], $obj);
 }
 
-set_plugin_data($plugin['id'], $obj);
-
 ?>
