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

Last change on this file since 7941 was 6893, checked in by grum, 14 years ago

Update plugin version to 1.0.2
bug:1796, bug:1854 + update CStat for GPC 3.2.0

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