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

Last change on this file since 8543 was 8543, checked in by grum, 13 years ago

Release 1.0.3
Fix bug bug:2074

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