source: extensions/GrumPluginClasses/main.inc.php @ 7179

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

Release 3.3.1 ; main file was ovverided by a wrong copy/paste of file with gmaps plugin

  • Property svn:executable set to *
File size: 5.3 KB
RevLine 
[5550]1<?php
2/*
[7179]3Plugin Name: Grum Plugins Classes.3
4Version: 3.3.1
5Description: Collection de classes partagées entre mes plugins (existants, ou à venir) / Partaged classes between my plugins (actuals or futures)
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=199
[5550]7Author: grum@piwigo.org
[7179]8Author URI: http://photos.grum.fr/
[5550]9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
[7179]14    email    : grum@piwigo.org
[5550]15    website  : http://photos.grum.fr
16
17    << May the Little SpaceFrog be with you ! >>
18--------------------------------------------------------------------------------
19
20:: HISTORY
21
22| release | date       |
[7179]23| 2.0.0   | 2008/07/20 | * convert classes for piwigo 2.0
[5550]24|         |            |
[7179]25| 2.0.1   | 2008/12/28 | * convert classe tables.class.inc to php5
[5550]26|         |            |
[7179]27| 2.0.2   | 2009/04/26 | * add setOptions/getOptions for GPCPagesNavigation class
28|         |            | * add option to set first/prev/next/last textes
[5550]29|         |            |
[7179]30| 2.0.3   | 2009/07/24 | * modify common_plugin class config loader (r2.0.1)
[5550]31|         |            |
[7179]32| 2.0.4   | 2009/11/29 | * modify users class
[5550]33|         |            |
[7179]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
[5550]37|         |            |
[7179]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
[5550]43|         |            |
[7179]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
[5797]51|         |            |
[7179]52| 3.1.1   | 2010/05/18 | * fix bug in the install process (CommonPlugin not
53|         |            |   included)
[5797]54|         |            |
[7179]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
[5797]61|         |            |
[7179]62| 3.2.1   | 2010/10/09 | * Enhance GPCTabSheet functionnalities
63|         |            |   - add 'id' attribute for tabs (<li> items)
[5797]64|         |            |
[7179]65|         |            | * Fix JS & CSS bug with IE8
[5797]66|         |            |
[7179]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
[5797]70|         |            |
[7179]71|         |            | * Pack JS scripts
72|         |            |   . pagesNavigator.packed.js
73|         |            |   . criteriaBuilder.packed.js
74|         |            |   . simpleTip.packed.js
[5797]75|         |            |
[7179]76|         |            | * Adding GPCCategorySelector class
[5918]77|         |            |
[7179]78|         |            | ===== Don't forget to update the plugin version ! =====
[6948]79|         |            |
80|         |            |
[7179]81|         |            |
82|         |            |
83|         |            |
84|         |            |
85|         |            |
86|         |            |
87|         |            |
88|         |            |
[5550]89
90
91:: TO DO
92
[7179]93:: WHAT ? WHY ?
94This plugin doesn't do anything itself. It just provide classes for others plugins.
[5550]95
[7179]96Classes 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
[5550]109
[7179]110    genericjs.class.inc.php  + genericjs.js
111
112See each file to know more about them
[5550]113--------------------------------------------------------------------------------
114*/
115
116if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
117
[7179]118define('GPC_DIR' , basename(dirname(__FILE__)));
119define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/');
[5550]120
[7179]121include_once('gpc_version.inc.php'); // => Don't forget to update this file !!
122include_once(GPC_PATH.'classes/GPCCore.class.inc.php');
[5550]123
124global $prefixeTable;
125
[7179]126
127
128$config=Array();
129GPCCore::loadConfig('gpc', $config);
130
131if(!isset($config['installed'])) $config['installed']='03.01.00';
132if($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
[6106]144if(defined('IN_ADMIN'))
[5550]145{
[7179]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__);
[5550]150  $obj->initEvents();
[7179]151  set_plugin_data($plugin['id'], $obj);
[5550]152}
153
154?>
Note: See TracBrowser for help on using the repository browser.