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

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

feature:2639- compatibility with Piwigo 2.4

  • Property svn:executable set to *
File size: 3.1 KB
RevLine 
[5961]1<?php
2/*
3Plugin Name: ColorStat
[15344]4Version: 1.2.0
[5961]5Description: Allow to make stat on pictures colors
[6210]6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=393
[5961]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       |
[6258]24| 0.1.0   | 2010/04/21 | * start to coding
[5961]25|         |            |
[6258]26| 1.0.0   | 2010/05/17 | * first release for PEM
[5961]27|         |            |
[6258]28| 1.0.1   | 2010/05/20 | * fix bug:1657
29|         |            |   . Constant not defined
[5961]30|         |            |
[6893]31| 1.0.2   | 2010/09/12 | * mantis bug:1796
32|         |            |   . Images color-search broken
[8543]33|         |            |
[6893]34|         |            | * mantis bug:1854
35|         |            |   . Not analyzed pictures are selected
[8543]36|         |            |
[6893]37|         |            | * update the plugin to request builder v 1.1.0
[5961]38|         |            |
[8543]39| 1.0.3   | 2010/09/12 | * mantis bug:2074
40|         |            |   . No image are analyzed
[5961]41|         |            |
[10630]42| 1.1.0   | 2011/04/26 | * mantis bug:2147
43|         |            |   . Compatibility with Piwigo 2.2
[5961]44|         |            |
[15344]45| 1.2.0   | 2012/05/25 | * mantis feature:2639
46|         |            |   . Compatibility with Piwigo 2.4
[5961]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");
[6176]87  CStat_functions::init($prefixeTable);
[5961]88  $obj=new CStat_AIM($prefixeTable, __FILE__);
89  $obj->initEvents();
90  set_plugin_data($plugin['id'], $obj);
91}
92else
93{
[16010]94  if(CommonPlugin::checkGPCRelease(CSTAT_GPC_NEEDED) and !mobile_theme())
95  {
96    //CStat public interface loaded and active only if in public page
97    include_once("cstat_pip.class.inc.php");
98    CStat_functions::init($prefixeTable);
99    $obj=new CStat_PIP($prefixeTable, __FILE__);
100    set_plugin_data($plugin['id'], $obj);
101  }
[5961]102}
103
104
105
106?>
Note: See TracBrowser for help on using the repository browser.