[5550] | 1 | <?php |
---|
| 2 | /* |
---|
[7179] | 3 | Plugin Name: Grum Plugins Classes.3 |
---|
[30624] | 4 | Version: 3.5.8 |
---|
[7179] | 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 |
---|
[5550] | 7 | Author: grum@piwigo.org |
---|
[17562] | 8 | Author URI: http://www.grum.fr/ |
---|
[5550] | 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
[7179] | 14 | email : grum@piwigo.org |
---|
[17562] | 15 | website : http://www.grum.fr |
---|
[5550] | 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 | | | | |
---|
[7327] | 78 | | 3.3.1 | ---- -- -- | * nothing changed, the 3.3.1 package was built to |
---|
| 79 | | | | replace a wrong file |
---|
[7310] | 80 | | | | |
---|
| 81 | | 3.3.2 | 2010/10/20 | * Fix mantis bug:1945 |
---|
| 82 | | | | . categorySelector : category list is empty |
---|
| 83 | | | | |
---|
[7327] | 84 | | | | * Fix many bugs on request builder and improve the css |
---|
| 85 | | | | and templates |
---|
[7310] | 86 | | | | |
---|
[7349] | 87 | | | | * Add the jQuery plugins |
---|
| 88 | | | | . ui.tagSelector.js + ui.tagSelector.packed.js |
---|
[7310] | 89 | | | | |
---|
[7370] | 90 | | | | * Externalize and pack JS scripts |
---|
| 91 | | | | . rbSearch.js + rbSearch.packed.js |
---|
[7349] | 92 | | | | |
---|
[7370] | 93 | | | | * Rename js script |
---|
| 94 | | | | . criteriaBuilder.js => rbCriteriaBuilder.js |
---|
[7349] | 95 | | | | |
---|
[7449] | 96 | | 3.3.3 | 2010/10/20 | * Enhance GPCPublicIntegration functionnalities |
---|
| 97 | | | | . add the 'pageIsSection()' function |
---|
[7349] | 98 | | | | |
---|
[7451] | 99 | | | | * mantis bug:1960 |
---|
| 100 | | | | . Ajax function *.tagSelector.get don't work with |
---|
| 101 | | | | uppercase |
---|
[7370] | 102 | | | | |
---|
[7451] | 103 | | | | * mantis bug:1971 |
---|
| 104 | | | | . optimization for RBuilder loading language management |
---|
[6948] | 105 | | | | |
---|
[8961] | 106 | | 3.4.0 | 2011/01/28 | * mantis bug:1984 |
---|
| 107 | | | | . RBuilder returns an error message when one picture |
---|
| 108 | | | | have multiple categories |
---|
[6948] | 109 | | | | |
---|
[8961] | 110 | | | | * fix bug:2109 |
---|
| 111 | | | | . Incompatibility with IE8 (rbuilder) |
---|
[7179] | 112 | | | | |
---|
[8961] | 113 | | | | * Fix bug on simpleTip.js (script release 1.0.1) |
---|
[7451] | 114 | | | | |
---|
[8961] | 115 | | | | * GPCCore, GPCTranslate, GPCUsersGroups classes updated |
---|
| 116 | | | | |
---|
| 117 | | | | * add jQuery plugin pack & associated css files |
---|
| 118 | | | | . inputText |
---|
| 119 | | | | . inputList |
---|
| 120 | | | | . inputRadio |
---|
| 121 | | | | . inputCheckbox |
---|
| 122 | | | | . inputColorPicker |
---|
| 123 | | | | . inputColorsFB |
---|
| 124 | | | | . inputConsole |
---|
| 125 | | | | . inputDotArea |
---|
| 126 | | | | . inputNum |
---|
| 127 | | | | . inputPosition |
---|
| 128 | | | | . inputStatusBar |
---|
| 129 | | | | |
---|
| 130 | | | | * update categorySelector jQuery plugin |
---|
| 131 | | | | |
---|
| 132 | | | | * minify js scripts (larger size than packed files but |
---|
| 133 | | | | better performance) |
---|
| 134 | | | | |
---|
[9009] | 135 | | 3.4.1 | 2011/01/31 | * mantis bug:2156 |
---|
| 136 | | | | . undefined variable on RBuilder screens |
---|
[8961] | 137 | | | | |
---|
[9020] | 138 | | 3.4.2 | 2011/01/31 | * mantis bug:2162 |
---|
| 139 | | | | . Personalised blocks : when adding a new block, |
---|
| 140 | | | | previous title & content are not reseted (AMM bug |
---|
| 141 | | | | due to inputText.js ui component) |
---|
[9009] | 142 | | | | |
---|
[9034] | 143 | | 3.4.3 | 2011/02/01 | * mantis bug:2167 |
---|
| 144 | | | | . RBuilder and GPCore not correctly initialized on |
---|
| 145 | | | | fresh install |
---|
[9020] | 146 | | | | |
---|
[9066] | 147 | | 3.4.4 | 2011/02/02 | * mantis bug:2170 |
---|
| 148 | | | | . File path for RBuilder registered plugins is corrupted |
---|
[9020] | 149 | | | | |
---|
[9066] | 150 | | | | * mantis bug:2178 |
---|
| 151 | | | | . RBuilder register function don't work |
---|
| 152 | | | | |
---|
| 153 | | | | * mantis bug:2179 |
---|
| 154 | | | | . JS file loaded in wrong order made incompatibility |
---|
| 155 | | | | with Lightbox, GMaps & ASE plugins (and probably other) |
---|
| 156 | | | | |
---|
| 157 | | | | * add language pt_PT (thanks to translator) |
---|
| 158 | | | | |
---|
[10884] | 159 | | 3.5.0 | 2011/04/10 | * mantis bug:2149 |
---|
| 160 | | | | . Compatibility with piwigo 2.2 |
---|
[9066] | 161 | | | | |
---|
[10884] | 162 | | 3.5.1 | 2011/05/15 | * mantis bug:2302 |
---|
| 163 | | | | . Request builder interface don't work |
---|
[9066] | 164 | | | | |
---|
[17562] | 165 | | 3.5.2 | 2012/05/15 | * Add function to manage special markup |
---|
[12215] | 166 | | | | . BB like markup [b],[i],[url]... |
---|
| 167 | | | | . [var=<name>] markup |
---|
| 168 | | | | . [tabs],[tab=id(;default);<tab title>] |
---|
| 169 | | | | . [form_mail] |
---|
[9066] | 170 | | | | |
---|
[15340] | 171 | | | | * Add UserAgent classes |
---|
| 172 | | | | |
---|
[12215] | 173 | | | | * mantis bug:2160 |
---|
| 174 | | | | . CategorySelector : extended description are not |
---|
| 175 | | | | managed |
---|
[10246] | 176 | | | | |
---|
[15340] | 177 | | | | * mantis feature:2634 |
---|
| 178 | | | | . Compatibility with Piwigo 2.4 |
---|
[10246] | 179 | | | | |
---|
[16012] | 180 | | | | * optimization & rename of some JS framework components |
---|
[10246] | 181 | | | | |
---|
[17562] | 182 | | 3.5.3 | 2012/08/14 | * mantis bug:2723 |
---|
| 183 | | | | . Error message when on page using GPC tabsheets |
---|
[12215] | 184 | | | | |
---|
[17735] | 185 | | 3.5.4 | 2012/08/29 | * Add ui.inputTreeList object |
---|
[17562] | 186 | | | | |
---|
[17735] | 187 | | | | * Improve ui.dynamicTable object |
---|
[17562] | 188 | | | | |
---|
[21509] | 189 | | 3.5.5 | 2013/03/12 | * Compatibility with Piwigo 2.5 |
---|
[17735] | 190 | | | | |
---|
[29739] | 191 | | 3.5.6 | 2014/01/23 | * Compatibility with Piwigo 2.6 |
---|
[17735] | 192 | | | | |
---|
[29739] | 193 | | 3.5.7 | 2014/09/22 | * Compatibility with Piwigo 2.7 |
---|
[17735] | 194 | | | | |
---|
[30624] | 195 | | 3.5.8 | 2014/11/27 | * fix jQuery bug on attr('checked') |
---|
[17735] | 196 | | | | |
---|
[7449] | 197 | | | | ===== Don't forget to update the plugin version ! ===== |
---|
[7179] | 198 | | | | |
---|
| 199 | | | | |
---|
| 200 | | | | |
---|
| 201 | | | | |
---|
| 202 | | | | |
---|
[5550] | 203 | |
---|
| 204 | |
---|
| 205 | :: TO DO |
---|
| 206 | |
---|
[7179] | 207 | :: WHAT ? WHY ? |
---|
| 208 | This plugin doesn't do anything itself. It just provide classes for others plugins. |
---|
[5550] | 209 | |
---|
[7179] | 210 | Classes version for this package |
---|
| 211 | CommonPlugin.class.php |
---|
| 212 | GPCAjax.class.php |
---|
| 213 | GPCCategorySelector.class.inc.php |
---|
| 214 | GPCCore.class.php |
---|
| 215 | GPCPagesNavigation.class.php |
---|
| 216 | GPCPublicIntegration.class.php |
---|
| 217 | GPCRequestBuilder.class.php |
---|
| 218 | GPCTables.class.php -v1.5 |
---|
| 219 | GPCTabSheet.class.inc.php |
---|
| 220 | GPCTranslate.class.inc.php + google_translate.js |
---|
| 221 | GPCUsersGroups.class.inc.php |
---|
[5550] | 222 | |
---|
[7179] | 223 | |
---|
| 224 | See each file to know more about them |
---|
[5550] | 225 | -------------------------------------------------------------------------------- |
---|
| 226 | */ |
---|
| 227 | |
---|
| 228 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 229 | |
---|
[7395] | 230 | if(!defined('GPC_DIR')) define('GPC_DIR' , basename(dirname(__FILE__))); |
---|
| 231 | if(!defined('GPC_PATH')) define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/'); |
---|
[5550] | 232 | |
---|
[7395] | 233 | |
---|
[7179] | 234 | include_once('gpc_version.inc.php'); // => Don't forget to update this file !! |
---|
| 235 | include_once(GPC_PATH.'classes/GPCCore.class.inc.php'); |
---|
[5550] | 236 | |
---|
| 237 | global $prefixeTable; |
---|
| 238 | |
---|
[7179] | 239 | |
---|
| 240 | |
---|
| 241 | $config=Array(); |
---|
| 242 | GPCCore::loadConfig('gpc', $config); |
---|
| 243 | |
---|
| 244 | if(!isset($config['installed'])) $config['installed']='03.01.00'; |
---|
| 245 | if($config['installed']!=GPC_VERSION2) |
---|
| 246 | { |
---|
| 247 | /* the plugin was updated without being deactivated |
---|
| 248 | * deactivate + activate the plugin to process the database upgrade |
---|
| 249 | */ |
---|
| 250 | include(GPC_PATH."gpc_install.class.inc.php"); |
---|
| 251 | $gpc=new GPC_Install($prefixeTable, __FILE__); |
---|
| 252 | $gpc->deactivate(); |
---|
| 253 | $gpc->activate(); |
---|
| 254 | } |
---|
| 255 | |
---|
[16012] | 256 | if(defined('IN_ADMIN') && !defined('AJAX_CALL')) |
---|
[5550] | 257 | { |
---|
[7179] | 258 | //GPC admin interface is loaded and active only if in admin page |
---|
| 259 | include_once("gpc_aim.class.inc.php"); |
---|
| 260 | |
---|
| 261 | $obj = new GPC_AIM($prefixeTable, __FILE__); |
---|
[5550] | 262 | $obj->initEvents(); |
---|
[7179] | 263 | set_plugin_data($plugin['id'], $obj); |
---|
[5550] | 264 | } |
---|
| 265 | |
---|
| 266 | ?> |
---|