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