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

Last change on this file since 14045 was 10630, checked in by grum, 14 years ago

bug:2147 ; Compatibility with Piwigo 2.2

  • Property svn:executable set to *
File size: 2.9 KB
Line 
1<?php
2/*
3Plugin Name: ColorStat
4Version: 1.1.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|         |            |
46|         |            |
47|         |            |
48|         |            |
49|         |            |
50|         |            |
51|         |            |
52
53
54:: TO DO
55
56--------------------------------------------------------------------------------
57
58:: NFO
59  CStat_root : common classe for admin and public classes
60  CStat_AIM  : classe to manage plugin integration into plugin menu
61  CStat_AIP  : classe to manage plugin admin pages
62  CStat_PIP  : classe to manage plugin public pages
63
64--------------------------------------------------------------------------------
65*/
66
67// pour faciliter le debug :o)
68 //ini_set('error_reporting', E_ALL);
69 //ini_set('display_errors', true);
70
71if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
72
73
74define('CSTAT_DIR' , basename(dirname(__FILE__)));
75define('CSTAT_PATH' , PHPWG_PLUGINS_PATH . CSTAT_DIR . '/');
76
77include_once('cstat_version.inc.php'); // => Don't forget to update this file !!
78
79global $prefixeTable;
80
81if(defined('IN_ADMIN'))
82{
83  //CStat admin interface loaded and active only if in admin page
84  include_once("cstat_aim.class.inc.php");
85  CStat_functions::init($prefixeTable);
86  $obj=new CStat_AIM($prefixeTable, __FILE__);
87  $obj->initEvents();
88  set_plugin_data($plugin['id'], $obj);
89}
90else
91{
92  //CStat public interface loaded and active only if in public page
93  include_once("cstat_pip.class.inc.php");
94  CStat_functions::init($prefixeTable);
95  $obj=new CStat_PIP($prefixeTable, __FILE__);
96  set_plugin_data($plugin['id'], $obj);
97}
98
99
100
101?>
Note: See TracBrowser for help on using the repository browser.