[5961] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: ColorStat |
---|
[15344] | 4 | Version: 1.2.0 |
---|
[5961] | 5 | Description: Allow to make stat on pictures colors |
---|
[16456] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=393 |
---|
[5961] | 7 | Author: grum@piwigo.org |
---|
[16456] | 8 | Author URI: http://www.grum.fr |
---|
[5961] | 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@piwigo.com |
---|
[16456] | 15 | website : http://www.grum.fr |
---|
[5961] | 16 | |
---|
| 17 | << May the Little SpaceFrog be with you ! >> |
---|
| 18 | -------------------------------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | :: HISTORY |
---|
| 21 | |
---|
| 22 | | release | date | |
---|
[6258] | 23 | | 0.1.0 | 2010/04/21 | * start to coding |
---|
[5961] | 24 | | | | |
---|
[6258] | 25 | | 1.0.0 | 2010/05/17 | * first release for PEM |
---|
[5961] | 26 | | | | |
---|
[6258] | 27 | | 1.0.1 | 2010/05/20 | * fix bug:1657 |
---|
| 28 | | | | . Constant not defined |
---|
[5961] | 29 | | | | |
---|
[6893] | 30 | | 1.0.2 | 2010/09/12 | * mantis bug:1796 |
---|
| 31 | | | | . Images color-search broken |
---|
[8543] | 32 | | | | |
---|
[6893] | 33 | | | | * mantis bug:1854 |
---|
| 34 | | | | . Not analyzed pictures are selected |
---|
[8543] | 35 | | | | |
---|
[6893] | 36 | | | | * update the plugin to request builder v 1.1.0 |
---|
[5961] | 37 | | | | |
---|
[8543] | 38 | | 1.0.3 | 2010/09/12 | * mantis bug:2074 |
---|
| 39 | | | | . No image are analyzed |
---|
[5961] | 40 | | | | |
---|
[10630] | 41 | | 1.1.0 | 2011/04/26 | * mantis bug:2147 |
---|
| 42 | | | | . Compatibility with Piwigo 2.2 |
---|
[5961] | 43 | | | | |
---|
[15344] | 44 | | 1.2.0 | 2012/05/25 | * mantis feature:2639 |
---|
| 45 | | | | . Compatibility with Piwigo 2.4 |
---|
[5961] | 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 | |
---|
| 72 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | define('CSTAT_DIR' , basename(dirname(__FILE__))); |
---|
| 76 | define('CSTAT_PATH' , PHPWG_PLUGINS_PATH . CSTAT_DIR . '/'); |
---|
| 77 | |
---|
| 78 | include_once('cstat_version.inc.php'); // => Don't forget to update this file !! |
---|
| 79 | |
---|
| 80 | global $prefixeTable; |
---|
| 81 | |
---|
| 82 | if(defined('IN_ADMIN')) |
---|
| 83 | { |
---|
| 84 | //CStat admin interface loaded and active only if in admin page |
---|
| 85 | include_once("cstat_aim.class.inc.php"); |
---|
[6176] | 86 | CStat_functions::init($prefixeTable); |
---|
[5961] | 87 | $obj=new CStat_AIM($prefixeTable, __FILE__); |
---|
| 88 | $obj->initEvents(); |
---|
| 89 | set_plugin_data($plugin['id'], $obj); |
---|
| 90 | } |
---|
| 91 | else |
---|
| 92 | { |
---|
[16010] | 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 | } |
---|
[5961] | 101 | } |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | ?> |
---|