[3394] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: AStat.2 |
---|
[5423] | 4 | Version: 2.2.0 |
---|
[3394] | 5 | Description: Statistiques avancées / Advanced statistics |
---|
| 6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=172 |
---|
| 7 | Author: grum@piwigo.org |
---|
| 8 | Author URI: http://photos.grum.fr/ |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | -------------------------------------------------------------------------------- |
---|
| 13 | Author : Grum |
---|
| 14 | email : grum@piwigo.org |
---|
| 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 | |
---|
[3706] | 24 | | release | date | |
---|
| 25 | | 2.0.0 | 2007/05/07 | * release for piwigo 2.0 |
---|
| 26 | | 2.0.1 | 2008/03/01 | * bug corrected (can't open file because plugin directory |
---|
| 27 | | | | was hardcoded...) |
---|
| 28 | | 2.0.2 | 2008/03/09 | * bug referenced |
---|
| 29 | | | | english forum : http://piwigo.org/forum/viewtopic.php?pid=105990#p105990 |
---|
| 30 | | | | french forum : http://fr.piwigo.org/forum/viewtopic.php?pid=107205#p107205 |
---|
| 31 | | | | SQL request for stat by categories works with mySQL 4.1.22 and not with mySQL 5 |
---|
| 32 | | 2.0.3 | 2008/03/28 | * bug referenced |
---|
| 33 | | | | french forum : http://fr.piwigo.org/forum/viewtopic.php?pid=107236#p107236 |
---|
| 34 | | | | SQL request for stat by categories works with mySQL 4.1.22 and not with mySQL 5 |
---|
| 35 | | 2.0.4 | 2009/05/21 | * bug on tools |
---|
| 36 | | | | it was not possible to use tools to manage deleted items |
---|
| 37 | | 2.0.5 | 2009/07/07 | * bug in code - invalid character on line 2194 |
---|
| 38 | | 2.1.0 | 2009/07/28 | * add a blacklist for IP and use it for stats |
---|
| 39 | | | | * new tools |
---|
| 40 | | | | - possibility to purge history on blacklisted IP address |
---|
| 41 | | | | - use of jQuery datepicker for purge date |
---|
[4269] | 42 | | 2.1.1 | 2009/11/15 | * bug on tools (cf. bug #1242 in mantis) |
---|
| 43 | | | | it was impossible to purge items in history due to an invalid regexp in the javascript |
---|
[5423] | 44 | | 2.2.0 | 2010/03/28 | * release for compatibility with Piwigo 2.1 |
---|
| 45 | | | | * mantis: bug 1192 |
---|
| 46 | | | | Constant already defined when deactivating the plugin |
---|
| 47 | | | | * mantis: bug 1344 |
---|
| 48 | | | | In tools, it's allowed to do purge only if checkbox is not checked |
---|
[3706] | 49 | | | | |
---|
| 50 | | | | |
---|
| 51 | | | | |
---|
| 52 | | | | |
---|
| 53 | | | | |
---|
| 54 | | | | |
---|
[5423] | 55 | | | | |
---|
| 56 | | | | |
---|
| 57 | | | | |
---|
| 58 | | | | |
---|
| 59 | | | | |
---|
[3706] | 60 | |
---|
| 61 | |
---|
| 62 | |
---|
[3394] | 63 | :: TO DO |
---|
| 64 | |
---|
| 65 | -------------------------------------------------------------------------------- |
---|
| 66 | |
---|
| 67 | :: NFO |
---|
| 68 | AStat_AIM : classe to manage plugin integration into plugin menu |
---|
| 69 | AStat_AIP : classe to manage plugin admin pages |
---|
| 70 | |
---|
| 71 | -------------------------------------------------------------------------------- |
---|
| 72 | */ |
---|
| 73 | |
---|
| 74 | // pour faciliter le debug :o) |
---|
| 75 | // ini_set('error_reporting', E_ALL); |
---|
| 76 | // ini_set('display_errors', true); |
---|
| 77 | |
---|
| 78 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 79 | |
---|
| 80 | define('ASTAT_DIR' , basename(dirname(__FILE__))); |
---|
| 81 | define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/'); |
---|
| 82 | |
---|
[5423] | 83 | define('ASTAT_VERSION' , '2.2.0'); // => ne pas oublier la version dans l'entête !! |
---|
[3394] | 84 | |
---|
| 85 | global $prefixeTable; |
---|
| 86 | |
---|
| 87 | //AStat loaded and active only if in admin page |
---|
| 88 | if(basename($_SERVER["PHP_SELF"])=='admin.php') |
---|
| 89 | { |
---|
| 90 | include_once("astat_aim.class.inc.php"); |
---|
| 91 | |
---|
| 92 | $obj = new AStat_AIM($prefixeTable, __FILE__); |
---|
| 93 | $obj->init_events(); |
---|
| 94 | set_plugin_data($plugin['id'], $obj); |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | ?> |
---|