source: extensions/ColorStat/main.inc.php @ 15907

Last change on this file since 15907 was 15344, checked in by grum, 12 years ago

feature:2639 - Compatibility with Piwigo 2.4

  • Property svn:executable set to *
File size: 3.0 KB
Line 
1<?php
2/*
3Plugin Name: ColorStat
4Version: 1.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   | 2010/04/21 | * start to coding
25|         |            |
26| 1.0.0   | 2010/05/17 | * first release for PEM
27|         |            |
28| 1.0.1   | 2010/05/20 | * fix bug:1657
29|         |            |   . Constant not defined
30|         |            |
31| 1.0.2   | 2010/09/12 | * mantis bug:1796
32|         |            |   . Images color-search broken
33|         |            |
34|         |            | * mantis bug:1854
35|         |            |   . Not analyzed pictures are selected
36|         |            |
37|         |            | * update the plugin to request builder v 1.1.0
38|         |            |
39| 1.0.3   | 2010/09/12 | * mantis bug:2074
40|         |            |   . No image are analyzed
41|         |            |
42| 1.1.0   | 2011/04/26 | * mantis bug:2147
43|         |            |   . Compatibility with Piwigo 2.2
44|         |            |
45| 1.2.0   | 2012/05/25 | * mantis feature:2639
46|         |            |   . Compatibility with Piwigo 2.4
47|         |            |
48|         |            |
49|         |            |
50|         |            |
51|         |            |
52|         |            |
53|         |            |
54
55
56:: TO DO
57
58--------------------------------------------------------------------------------
59
60:: NFO
61  CStat_root : common classe for admin and public classes
62  CStat_AIM  : classe to manage plugin integration into plugin menu
63  CStat_AIP  : classe to manage plugin admin pages
64  CStat_PIP  : classe to manage plugin public pages
65
66--------------------------------------------------------------------------------
67*/
68
69// pour faciliter le debug :o)
70 //ini_set('error_reporting', E_ALL);
71 //ini_set('display_errors', true);
72
73if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
74
75
76define('CSTAT_DIR' , basename(dirname(__FILE__)));
77define('CSTAT_PATH' , PHPWG_PLUGINS_PATH . CSTAT_DIR . '/');
78
79include_once('cstat_version.inc.php'); // => Don't forget to update this file !!
80
81global $prefixeTable;
82
83if(defined('IN_ADMIN'))
84{
85  //CStat admin interface loaded and active only if in admin page
86  include_once("cstat_aim.class.inc.php");
87  CStat_functions::init($prefixeTable);
88  $obj=new CStat_AIM($prefixeTable, __FILE__);
89  $obj->initEvents();
90  set_plugin_data($plugin['id'], $obj);
91}
92else
93{
94  //CStat public interface loaded and active only if in public page
95  include_once("cstat_pip.class.inc.php");
96  CStat_functions::init($prefixeTable);
97  $obj=new CStat_PIP($prefixeTable, __FILE__);
98  set_plugin_data($plugin['id'], $obj);
99}
100
101
102
103?>
Note: See TracBrowser for help on using the repository browser.