1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: AStat.2 |
---|
4 | Version: 2.0.4 |
---|
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 | 2.0.0 - 13/05/07 - release for piwigo 2.0 |
---|
24 | 2.0.1 - 09/03/01 - bug corrected (can't open file because plugin directory |
---|
25 | was hardcoded...) |
---|
26 | 2.0.2 - 09/03/08 - bug referenced |
---|
27 | english forum : http://piwigo.org/forum/viewtopic.php?pid=105990#p105990 |
---|
28 | french forum : http://fr.piwigo.org/forum/viewtopic.php?pid=107205#p107205 |
---|
29 | SQL request for stat by categories works with mySQL 4.1.22 and not with mySQL 5 |
---|
30 | 2.0.3 - 28/03/08 - bug referenced |
---|
31 | french forum : http://fr.piwigo.org/forum/viewtopic.php?pid=107236#p107236 |
---|
32 | SQL request for stat by categories works with mySQL 4.1.22 and not with mySQL 5 |
---|
33 | 2.0.4 - 21/05/09 - bug on tools |
---|
34 | it was not possible to use tools to manage deleted items |
---|
35 | |
---|
36 | :: TO DO |
---|
37 | |
---|
38 | -------------------------------------------------------------------------------- |
---|
39 | |
---|
40 | :: NFO |
---|
41 | AStat_AIM : classe to manage plugin integration into plugin menu |
---|
42 | AStat_AIP : classe to manage plugin admin pages |
---|
43 | |
---|
44 | -------------------------------------------------------------------------------- |
---|
45 | */ |
---|
46 | |
---|
47 | // pour faciliter le debug :o) |
---|
48 | // ini_set('error_reporting', E_ALL); |
---|
49 | // ini_set('display_errors', true); |
---|
50 | |
---|
51 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
52 | |
---|
53 | define('ASTAT_DIR' , basename(dirname(__FILE__))); |
---|
54 | define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/'); |
---|
55 | |
---|
56 | define('ASTAT_VERSION' , '2.0.4'); // => ne pas oublier la version dans l'entête !! |
---|
57 | |
---|
58 | global $prefixeTable; |
---|
59 | |
---|
60 | //AStat loaded and active only if in admin page |
---|
61 | if(basename($_SERVER["PHP_SELF"])=='admin.php') |
---|
62 | { |
---|
63 | include_once("astat_aim.class.inc.php"); |
---|
64 | |
---|
65 | $obj = new AStat_AIM($prefixeTable, __FILE__); |
---|
66 | $obj->init_events(); |
---|
67 | set_plugin_data($plugin['id'], $obj); |
---|
68 | } |
---|
69 | |
---|
70 | ?> |
---|