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

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

Add plugin files

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