[5550] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Grum Plugins Classes.3 |
---|
[6702] | 4 | Version: 3.2.0 |
---|
[5550] | 5 | Description: Collection de classes partagées entre mes plugins (existants, ou à venir) / Partaged classes between my plugins (actuals or futures) |
---|
[5918] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=199 |
---|
[5550] | 7 | Author: grum@piwigo.org |
---|
| 8 | Author URI: http://photos.grum.fr/ |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@piwigo.org |
---|
| 15 | website : http://photos.grum.fr |
---|
| 16 | |
---|
| 17 | << May the Little SpaceFrog be with you ! >> |
---|
| 18 | -------------------------------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | :: HISTORY |
---|
| 21 | |
---|
| 22 | | release | date | |
---|
| 23 | | 2.0.0 | 2008/07/20 | * convert classes for piwigo 2.0 |
---|
| 24 | | | | |
---|
| 25 | | 2.0.1 | 2008/12/28 | * convert classe tables.class.inc to php5 |
---|
| 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 | | | | |
---|
| 30 | | 2.0.3 | 2009/07/24 | * modify common_plugin class config loader (r2.0.1) |
---|
| 31 | | | | |
---|
| 32 | | 2.0.4 | 2009/11/29 | * modify users class |
---|
| 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 |
---|
| 37 | | | | |
---|
[5797] | 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 | | | | |
---|
[5958] | 44 | | 3.1.0 | 2010/04/24 | * add the GPCTabSheet class |
---|
[6231] | 45 | | | | * add the GPCRequestBuilder class |
---|
| 46 | | | | * add the pageNavigator.js |
---|
[5958] | 47 | | | | * update the GPCCore class |
---|
[5918] | 48 | | | | * Add new languages |
---|
| 49 | | | | . nl_NL |
---|
| 50 | | | | . de_DE |
---|
[5797] | 51 | | | | |
---|
[6235] | 52 | | 3.1.1 | 2010/05/18 | * fix bug in the install process (CommonPlugin not |
---|
| 53 | | | | included) |
---|
[5797] | 54 | | | | |
---|
[6894] | 55 | | 3.2.0 | 2010/09/12 | * Enhance GPCTabSheet functionnalities |
---|
[6702] | 56 | | | | - possibility to choose tab classes |
---|
| 57 | | | | * Add the simpleTip.js |
---|
[6894] | 58 | | | | * Enhance GPCRequestBuilder functionnalities |
---|
| 59 | | | | - now abble to manage complex request with multi-record |
---|
[6948] | 60 | | | | - result can be stored in the caddie |
---|
[5797] | 61 | | | | |
---|
[7142] | 62 | | 3.2.1 | 2010/10/09 | * Enhance GPCTabSheet functionnalities |
---|
| 63 | | | | - add 'id' attribute for tabs (<li> items) |
---|
[5797] | 64 | | | | |
---|
[7142] | 65 | | | | * Fix JS & CSS bug with IE8 |
---|
[5797] | 66 | | | | |
---|
| 67 | | | | |
---|
| 68 | | | | |
---|
[5918] | 69 | | | | |
---|
[6948] | 70 | | | | |
---|
| 71 | | | | |
---|
| 72 | | | | |
---|
| 73 | | | | |
---|
| 74 | | | | |
---|
| 75 | | | | |
---|
| 76 | | | | |
---|
| 77 | | | | |
---|
[5550] | 78 | |
---|
| 79 | |
---|
| 80 | :: TO DO |
---|
| 81 | |
---|
| 82 | :: WHAT ? WHY ? |
---|
| 83 | This plugin doesn't do anything itself. It just provide classes for others plugins. |
---|
| 84 | |
---|
| 85 | Classes version for this package |
---|
| 86 | CommonPlugin.class.php |
---|
| 87 | GPCAjax.class.php |
---|
| 88 | GPCCss.class.php |
---|
| 89 | GPCPagesNavigation.class.php |
---|
| 90 | GPCPublicIntegration.class.php |
---|
| 91 | GPCTables.class.php -v1.5 |
---|
| 92 | GPCTranslate.class.inc.php + google_translate.js |
---|
| 93 | GPCUsersGroups.class.inc.php |
---|
[5918] | 94 | GPCTabSheet.class.inc.php |
---|
[5550] | 95 | |
---|
| 96 | genericjs.class.inc.php + genericjs.js |
---|
| 97 | |
---|
| 98 | See each file to know more about them |
---|
| 99 | -------------------------------------------------------------------------------- |
---|
| 100 | */ |
---|
| 101 | |
---|
| 102 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 103 | |
---|
| 104 | define('GPC_DIR' , basename(dirname(__FILE__))); |
---|
| 105 | define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/'); |
---|
| 106 | |
---|
| 107 | include_once('gpc_version.inc.php'); // => Don't forget to update this file !! |
---|
[6975] | 108 | include_once(GPC_PATH.'classes/GPCCore.class.inc.php'); |
---|
[5550] | 109 | |
---|
| 110 | global $prefixeTable; |
---|
| 111 | |
---|
[6975] | 112 | |
---|
| 113 | |
---|
| 114 | $config=Array(); |
---|
| 115 | GPCCore::loadConfig('gpc', $config); |
---|
| 116 | |
---|
| 117 | if(!isset($config['installed'])) $config['installed']='03.01.00'; |
---|
| 118 | if($config['installed']!=GPC_VERSION2) |
---|
| 119 | { |
---|
| 120 | /* the plugin was updated without being deactivated |
---|
| 121 | * deactivate + activate the plugin to process the database upgrade |
---|
| 122 | */ |
---|
| 123 | include(GPC_PATH."gpc_install.class.inc.php"); |
---|
| 124 | $gpc=new GPC_Install($prefixeTable, __FILE__); |
---|
| 125 | $gpc->deactivate(); |
---|
| 126 | $gpc->activate(); |
---|
| 127 | } |
---|
| 128 | |
---|
| 129 | |
---|
[6106] | 130 | if(defined('IN_ADMIN')) |
---|
[5550] | 131 | { |
---|
[6106] | 132 | //GPC admin interface is loaded and active only if in admin page |
---|
[5550] | 133 | include_once("gpc_aim.class.inc.php"); |
---|
| 134 | |
---|
| 135 | $obj = new GPC_AIM($prefixeTable, __FILE__); |
---|
| 136 | $obj->initEvents(); |
---|
| 137 | set_plugin_data($plugin['id'], $obj); |
---|
| 138 | } |
---|
| 139 | |
---|
| 140 | ?> |
---|