source: extensions/Histogram/main.inc.php @ 9224

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

First commit for histogram plugin

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1<?php
2/*
3Plugin Name: Histogram
4Version: 0.1.0
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   | 2011/01/07 | * start to coding
25|         |            |
26|         |            |
27|         |            |
28|         |            |
29|         |            |
30|         |            |
31|         |            |
32|         |            |
33|         |            |
34|         |            |
35|         |            |
36|         |            |
37|         |            |
38
39
40:: TO DO
41
42--------------------------------------------------------------------------------
43
44:: NFO
45  HGram_root : common classe for admin and public classes
46  HGram_AIM  : classe to manage plugin integration into plugin menu
47  HGram_AIP  : classe to manage plugin admin pages
48  HGram_PIP  : classe to manage plugin public pages
49
50--------------------------------------------------------------------------------
51*/
52
53// pour faciliter le debug :o)
54 //ini_set('error_reporting', E_ALL);
55 //ini_set('display_errors', true);
56
57if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
58
59
60define('HGRAM_DIR' , basename(dirname(__FILE__)));
61define('HGRAM_PATH' , PHPWG_PLUGINS_PATH . HGRAM_DIR . '/');
62
63include_once('hgram_version.inc.php'); // => Don't forget to update this file !!
64
65global $prefixeTable;
66
67if(defined('IN_ADMIN'))
68{
69  // HGram admin interface loaded and active only if in admin page
70  include_once("hgram_aim.class.inc.php");
71  $obj=new HGram_AIM($prefixeTable, __FILE__);
72  $obj->initEvents();
73  set_plugin_data($plugin['id'], $obj);
74}
75else
76{
77  // HGram public interface loaded and active only if in public page
78  include_once("hgram_pip.class.inc.php");
79  $obj=new HGram_PIP($prefixeTable, __FILE__);
80  set_plugin_data($plugin['id'], $obj);
81}
82
83
84
85?>
Note: See TracBrowser for help on using the repository browser.