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

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

Add plugin Grum Plugins Class-2

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1<?php
2/*
3Plugin Name: Grum Plugins Classes.2
4Version: 2.0.2
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
27:: TO DO
28
29:: WHAT ? WHY ?
30This plugin doesn't do anything itself. It just provide classes for others plugins.
31
32Classes version for this package
33    ajax.class.php -v2.0 + ajax.js -v1.0.1
34    common_plugin.class.php -v2.0
35    css.class.php -v2.0
36    pages_navigation.class.php -v1.0
37    public_integration.class.php -v1.0
38    tables.class.php -v1.4
39    tabsheets.class.inc.php -v1.1
40    translate.class.inc.php -v2.0.0 + google_translate.js -v2.0.0
41    users_groups.class.inc.php -v1.0
42    genericjs.class.inc.php -v1.0 + genericjs.js -v1.0
43
44See each file to know more about them
45--------------------------------------------------------------------------------
46*/
47
48if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
49
50define('GPC_DIR' , basename(dirname(__FILE__)));
51define('GPC_PATH' , PHPWG_PLUGINS_PATH . GPC_DIR . '/');
52
53define('GPC_VERSION' , '2.0.2');
54
55/*
56  this function return true if class release if greater than needed by the plugin
57*/
58function checkGPCRelease($major, $minor, $minor2)
59{
60  $release = explode(".", GPC_VERSION);
61  if(($release[0]>=$major)&&($release[1]>=$minor)&&($release[2]>=$minor2))
62  {
63    return(true);
64  }
65  return(false);
66}
67
68
69?>
Note: See TracBrowser for help on using the repository browser.