source: extensions/grum_plugins_classes-2/main.inc.php @ 3752

Last change on this file since 3752 was 3679, checked in by grum, 15 years ago

Update Grum Plugind Classes to 2.0.3
Minor changes (bug about the config loader from then common_plugin class)

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1<?php
2/*
3Plugin Name: Grum Plugins Classes.2
4Version: 2.0.3
5Description: Collection de classes partagées entre mes plugins (existants, ou à venir) / Partaged classes between my plugins (actuals or futures)
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=199
7Author: grum@piwigo.org
8Author URI: http://photos.grum.fr/
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@grum.dnsalias.com
15    website  : http://photos.grum.dnsalias.com
16    PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
17
18    << May the Little SpaceFrog be with you ! >>
19--------------------------------------------------------------------------------
20
21:: HISTORY
22  2.0.0       - 2008/07/20  +convert classes for piwigo 2.0
23  2.0.1       - 2008/12/28  +convert classe tables.class.inc to php5
24  2.0.2       - 2009/04/26  +add set_options/get_options for pages_navigation class
25                            +add option to set first/prev/next/last textes
26  2.0.3       - 2009/07/24  +modify common_plugin class config loader (r2.0.1)
27
28:: TO DO
29
30:: WHAT ? WHY ?
31This plugin doesn't do anything itself. It just provide classes for others plugins.
32
33Classes version for this package
34    ajax.class.php -v2.0 + ajax.js -v1.0.1
35    common_plugin.class.php -v2.0.1
36    css.class.php -v2.0
37    pages_navigation.class.php -v1.0
38    public_integration.class.php -v1.0
39    tables.class.php -v1.4
40    tabsheets.class.inc.php -v1.1
41    translate.class.inc.php -v2.0.0 + google_translate.js -v2.0.0
42    users_groups.class.inc.php -v1.0
43    genericjs.class.inc.php -v1.0 + genericjs.js -v1.0
44
45See each file to know more about them
46--------------------------------------------------------------------------------
47*/
48
49if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
50
51define('GPC_DIR' , basename(dirname(__FILE__)));
52define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/');
53
54define('GPC_VERSION' , '2.0.3');
55
56/*
57  this function return true if class release if greater or equal than needed by the plugin
58*/
59function checkGPCRelease($major, $minor, $minor2)
60{
61  $release = explode(".", GPC_VERSION);
62
63  if(($release[0]>$major) ||
64     ($release[0]==$major)&&($release[1]>$minor) ||
65     ($release[0]==$major)&&($release[1]==$minor)&&($release[2]>=$minor2))
66  {
67    return(true);
68  }
69  return(false);
70}
71
72
73?>
Note: See TracBrowser for help on using the repository browser.