1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: UserStat |
---|
4 | Version: 1.2.1 |
---|
5 | Description: Statistiques utilisateurs / Users statistics |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=321 |
---|
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 | |
---|
24 | | release | date | |
---|
25 | | 1.0.0 | 2009/11/15 | * first public release |
---|
26 | | | | |
---|
27 | | 1.1.0 | 2010/03/28 | * compatibility with Piwigo 2.1 |
---|
28 | | | | |
---|
29 | | 1.1.1 | 2010/03/28 | * little bug on the template (call of an undefined var) |
---|
30 | | | | * Add new languages |
---|
31 | | | | . es_ES |
---|
32 | | | | . hu_HU |
---|
33 | | | | . it_IT |
---|
34 | | | | |
---|
35 | | 1.2.0 | 201012 | * mantis feature:2263 |
---|
36 | | | | . compatibility with Piwigo 2.2 |
---|
37 | | | | |
---|
38 | | 1.2.1 | 2012/05/28 | * mantis feature:2643 |
---|
39 | | | | . compatibility with Piwigo 2.4 |
---|
40 | | | | |
---|
41 | | | | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | :: TO DO |
---|
46 | |
---|
47 | -------------------------------------------------------------------------------- |
---|
48 | |
---|
49 | :: NFO |
---|
50 | UserStat_AIM : classe to manage plugin integration into plugin menu |
---|
51 | UserStat_AIP : classe to manage plugin admin pages |
---|
52 | |
---|
53 | -------------------------------------------------------------------------------- |
---|
54 | */ |
---|
55 | |
---|
56 | // pour faciliter le debug :o) |
---|
57 | // ini_set('error_reporting', E_ALL); |
---|
58 | // ini_set('display_errors', true); |
---|
59 | |
---|
60 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
61 | |
---|
62 | define('USERSTAT_DIR' , basename(dirname(__FILE__))); |
---|
63 | define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/'); |
---|
64 | |
---|
65 | include_once('userstat_version.inc.php'); // => Don't forget to update this file !! |
---|
66 | |
---|
67 | global $prefixeTable; |
---|
68 | |
---|
69 | //UserStat loaded and active only if in admin page |
---|
70 | if(defined('IN_ADMIN') && !defined('AJAX_CALL')) |
---|
71 | { |
---|
72 | include_once("userstat_aim.class.inc.php"); |
---|
73 | |
---|
74 | $obj = new UserStat_AIM($prefixeTable, __FILE__); |
---|
75 | $obj->initEvents(); |
---|
76 | set_plugin_data($plugin['id'], $obj); |
---|
77 | } |
---|
78 | |
---|
79 | ?> |
---|