[8509] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Histogram |
---|
[15346] | 4 | Version: 0.2.0 |
---|
[8509] | 5 | Description: Allow to make stat on pictures colors |
---|
[16463] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=484 |
---|
[8509] | 7 | Author: grum@piwigo.org |
---|
[16459] | 8 | Author URI: http://www.grum.fr |
---|
[8509] | 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@piwigo.com |
---|
[16459] | 15 | website : http://www.grum.fr |
---|
[8509] | 16 | |
---|
| 17 | << May the Little SpaceFrog be with you ! >> |
---|
| 18 | -------------------------------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | :: HISTORY |
---|
| 21 | |
---|
| 22 | | release | date | |
---|
| 23 | | 0.1.0 | 2011/01/07 | * start to coding |
---|
| 24 | | | | |
---|
[12221] | 25 | | 0.1.1 | 2011/09/25 | * mantis feature:2151 |
---|
| 26 | | | | . compatibility with Piwigo 2.2 |
---|
[8509] | 27 | | | | |
---|
[15346] | 28 | | 0.2.0 | 2011/09/25 | * mantis feature:2640 |
---|
| 29 | | | | . compatibility with Piwigo 2.4 |
---|
[8509] | 30 | | | | |
---|
| 31 | | | | |
---|
| 32 | | | | |
---|
| 33 | | | | |
---|
| 34 | | | | |
---|
| 35 | | | | |
---|
| 36 | | | | |
---|
| 37 | | | | |
---|
| 38 | | | | |
---|
| 39 | | | | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | :: TO DO |
---|
| 43 | |
---|
| 44 | -------------------------------------------------------------------------------- |
---|
| 45 | |
---|
| 46 | :: NFO |
---|
| 47 | HGram_root : common classe for admin and public classes |
---|
| 48 | HGram_AIM : classe to manage plugin integration into plugin menu |
---|
| 49 | HGram_AIP : classe to manage plugin admin pages |
---|
| 50 | HGram_PIP : classe to manage plugin public pages |
---|
| 51 | |
---|
| 52 | -------------------------------------------------------------------------------- |
---|
| 53 | */ |
---|
| 54 | |
---|
| 55 | // pour faciliter le debug :o) |
---|
| 56 | //ini_set('error_reporting', E_ALL); |
---|
| 57 | //ini_set('display_errors', true); |
---|
| 58 | |
---|
| 59 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | define('HGRAM_DIR' , basename(dirname(__FILE__))); |
---|
| 63 | define('HGRAM_PATH' , PHPWG_PLUGINS_PATH . HGRAM_DIR . '/'); |
---|
| 64 | |
---|
[16463] | 65 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
[8509] | 66 | include_once('hgram_version.inc.php'); // => Don't forget to update this file !! |
---|
| 67 | |
---|
| 68 | global $prefixeTable; |
---|
| 69 | |
---|
[16013] | 70 | if(!defined('AJAX_CALL')) |
---|
[8509] | 71 | { |
---|
[16013] | 72 | if(defined('IN_ADMIN')) |
---|
| 73 | { |
---|
| 74 | // HGram admin interface loaded and active only if in admin page |
---|
| 75 | include_once("hgram_aim.class.inc.php"); |
---|
| 76 | $obj=new HGram_AIM($prefixeTable, __FILE__); |
---|
| 77 | $obj->initEvents(); |
---|
| 78 | set_plugin_data($plugin['id'], $obj); |
---|
| 79 | } |
---|
| 80 | else |
---|
| 81 | { |
---|
| 82 | if(CommonPlugin::checkGPCRelease(HGRAM_GPC_NEEDED) and !mobile_theme()) |
---|
| 83 | { |
---|
| 84 | // HGram public interface loaded and active only if in public page |
---|
| 85 | include_once("hgram_pip.class.inc.php"); |
---|
| 86 | $obj=new HGram_PIP($prefixeTable, __FILE__); |
---|
| 87 | set_plugin_data($plugin['id'], $obj); |
---|
| 88 | } |
---|
| 89 | } |
---|
[8509] | 90 | } |
---|
| 91 | |
---|
| 92 | ?> |
---|