[5961] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: ColorStat |
---|
| 4 | Version: 0.1.0 |
---|
| 5 | Description: Allow to make stat on pictures colors |
---|
| 6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid= |
---|
| 7 | Author: grum@piwigo.org |
---|
| 8 | Author 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 | |
---|
| 66 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | define('CSTAT_DIR' , basename(dirname(__FILE__))); |
---|
| 70 | define('CSTAT_PATH' , PHPWG_PLUGINS_PATH . CSTAT_DIR . '/'); |
---|
| 71 | |
---|
| 72 | include_once('cstat_version.inc.php'); // => Don't forget to update this file !! |
---|
| 73 | |
---|
| 74 | global $prefixeTable; |
---|
| 75 | |
---|
| 76 | if(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 | } |
---|
| 84 | else |
---|
| 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 | ?> |
---|