1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Histogram |
---|
4 | Version: 0.1.1 |
---|
5 | Description: Allow to make stat on pictures colors |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=393 |
---|
7 | Author: grum@piwigo.org |
---|
8 | Author 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 | | | | |
---|
30 | | | | |
---|
31 | | | | |
---|
32 | | | | |
---|
33 | | | | |
---|
34 | | | | |
---|
35 | | | | |
---|
36 | | | | |
---|
37 | | | | |
---|
38 | | | | |
---|
39 | |
---|
40 | |
---|
41 | :: TO DO |
---|
42 | |
---|
43 | -------------------------------------------------------------------------------- |
---|
44 | |
---|
45 | :: NFO |
---|
46 | HGram_root : common classe for admin and public classes |
---|
47 | HGram_AIM : classe to manage plugin integration into plugin menu |
---|
48 | HGram_AIP : classe to manage plugin admin pages |
---|
49 | HGram_PIP : classe to manage plugin public pages |
---|
50 | |
---|
51 | -------------------------------------------------------------------------------- |
---|
52 | */ |
---|
53 | |
---|
54 | // pour faciliter le debug :o) |
---|
55 | //ini_set('error_reporting', E_ALL); |
---|
56 | //ini_set('display_errors', true); |
---|
57 | |
---|
58 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
59 | |
---|
60 | |
---|
61 | define('HGRAM_DIR' , basename(dirname(__FILE__))); |
---|
62 | define('HGRAM_PATH' , PHPWG_PLUGINS_PATH . HGRAM_DIR . '/'); |
---|
63 | |
---|
64 | include_once('hgram_version.inc.php'); // => Don't forget to update this file !! |
---|
65 | |
---|
66 | global $prefixeTable; |
---|
67 | |
---|
68 | if(defined('IN_ADMIN')) |
---|
69 | { |
---|
70 | // HGram admin interface loaded and active only if in admin page |
---|
71 | include_once("hgram_aim.class.inc.php"); |
---|
72 | $obj=new HGram_AIM($prefixeTable, __FILE__); |
---|
73 | $obj->initEvents(); |
---|
74 | set_plugin_data($plugin['id'], $obj); |
---|
75 | } |
---|
76 | else |
---|
77 | { |
---|
78 | // HGram public interface loaded and active only if in public page |
---|
79 | include_once("hgram_pip.class.inc.php"); |
---|
80 | $obj=new HGram_PIP($prefixeTable, __FILE__); |
---|
81 | set_plugin_data($plugin['id'], $obj); |
---|
82 | } |
---|
83 | |
---|
84 | |
---|
85 | |
---|
86 | ?> |
---|