source: extensions/Histogram/main.inc.php @ 15475

Last change on this file since 15475 was 15346, checked in by grum, 12 years ago

feature:2640 - Compatibility with Piwigo 2.4

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1<?php
2/*
3Plugin Name: Histogram
4Version: 0.2.0
5Description: Allow to make stat on pictures colors
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=393
7Author: grum@piwigo.org
8Author URI: http://photos.grum.fr
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
15    website  : http://photos.grum.fr
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
23| release | date       |
24| 0.1.0   | 2011/01/07 | * start to coding
25|         |            |
26| 0.1.1   | 2011/09/25 | * mantis feature:2151
27|         |            |   . compatibility with Piwigo 2.2
28|         |            |
29| 0.2.0   | 2011/09/25 | * mantis feature:2640
30|         |            |   . compatibility with Piwigo 2.4
31|         |            |
32|         |            |
33|         |            |
34|         |            |
35|         |            |
36|         |            |
37|         |            |
38|         |            |
39|         |            |
40|         |            |
41
42
43:: TO DO
44
45--------------------------------------------------------------------------------
46
47:: NFO
48  HGram_root : common classe for admin and public classes
49  HGram_AIM  : classe to manage plugin integration into plugin menu
50  HGram_AIP  : classe to manage plugin admin pages
51  HGram_PIP  : classe to manage plugin public pages
52
53--------------------------------------------------------------------------------
54*/
55
56// pour faciliter le debug :o)
57 //ini_set('error_reporting', E_ALL);
58 //ini_set('display_errors', true);
59
60if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
61
62
63define('HGRAM_DIR' , basename(dirname(__FILE__)));
64define('HGRAM_PATH' , PHPWG_PLUGINS_PATH . HGRAM_DIR . '/');
65
66include_once('hgram_version.inc.php'); // => Don't forget to update this file !!
67
68global $prefixeTable;
69
70if(defined('IN_ADMIN'))
71{
72  // HGram admin interface loaded and active only if in admin page
73  include_once("hgram_aim.class.inc.php");
74  $obj=new HGram_AIM($prefixeTable, __FILE__);
75  $obj->initEvents();
76  set_plugin_data($plugin['id'], $obj);
77}
78else
79{
80  // HGram public interface loaded and active only if in public page
81  include_once("hgram_pip.class.inc.php");
82  $obj=new HGram_PIP($prefixeTable, __FILE__);
83  set_plugin_data($plugin['id'], $obj);
84}
85
86
87
88?>
Note: See TracBrowser for help on using the repository browser.