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

Last change on this file since 30697 was 16456, checked in by grum, 12 years ago

feature:2639- compatibility with Piwigo 2.4
Update URI

  • 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://piwigo.org/ext/extension_view.php?eid=393
7Author: grum@piwigo.org
8Author URI: http://www.grum.fr
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
15    website  : http://www.grum.fr
16
17    << May the Little SpaceFrog be with you ! >>
18--------------------------------------------------------------------------------
19
20:: HISTORY
21
22| release | date       |
23| 0.1.0   | 2010/04/21 | * start to coding
24|         |            |
25| 1.0.0   | 2010/05/17 | * first release for PEM
26|         |            |
27| 1.0.1   | 2010/05/20 | * fix bug:1657
28|         |            |   . Constant not defined
29|         |            |
30| 1.0.2   | 2010/09/12 | * mantis bug:1796
31|         |            |   . Images color-search broken
32|         |            |
33|         |            | * mantis bug:1854
34|         |            |   . Not analyzed pictures are selected
35|         |            |
36|         |            | * update the plugin to request builder v 1.1.0
37|         |            |
38| 1.0.3   | 2010/09/12 | * mantis bug:2074
39|         |            |   . No image are analyzed
40|         |            |
41| 1.1.0   | 2011/04/26 | * mantis bug:2147
42|         |            |   . Compatibility with Piwigo 2.2
43|         |            |
44| 1.2.0   | 2012/05/25 | * mantis feature:2639
45|         |            |   . Compatibility with Piwigo 2.4
46|         |            |
47|         |            |
48|         |            |
49|         |            |
50|         |            |
51|         |            |
52|         |            |
53
54
55:: TO DO
56
57--------------------------------------------------------------------------------
58
59:: NFO
60  CStat_root : common classe for admin and public classes
61  CStat_AIM  : classe to manage plugin integration into plugin menu
62  CStat_AIP  : classe to manage plugin admin pages
63  CStat_PIP  : classe to manage plugin public pages
64
65--------------------------------------------------------------------------------
66*/
67
68// pour faciliter le debug :o)
69 //ini_set('error_reporting', E_ALL);
70 //ini_set('display_errors', true);
71
72if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
73
74
75define('CSTAT_DIR' , basename(dirname(__FILE__)));
76define('CSTAT_PATH' , PHPWG_PLUGINS_PATH . CSTAT_DIR . '/');
77
78include_once('cstat_version.inc.php'); // => Don't forget to update this file !!
79
80global $prefixeTable;
81
82if(defined('IN_ADMIN'))
83{
84  //CStat admin interface loaded and active only if in admin page
85  include_once("cstat_aim.class.inc.php");
86  CStat_functions::init($prefixeTable);
87  $obj=new CStat_AIM($prefixeTable, __FILE__);
88  $obj->initEvents();
89  set_plugin_data($plugin['id'], $obj);
90}
91else
92{
93  if(CommonPlugin::checkGPCRelease(CSTAT_GPC_NEEDED) and !mobile_theme())
94  {
95    //CStat public interface loaded and active only if in public page
96    include_once("cstat_pip.class.inc.php");
97    CStat_functions::init($prefixeTable);
98    $obj=new CStat_PIP($prefixeTable, __FILE__);
99    set_plugin_data($plugin['id'], $obj);
100  }
101}
102
103
104
105?>
Note: See TracBrowser for help on using the repository browser.