source: extensions/UserStat/main.inc.php @ 18631

Last change on this file since 18631 was 16460, checked in by grum, 12 years ago

feature:2643 - compatibility with Piwigo 2.4
Update URI

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1<?php
2/*
3Plugin Name: UserStat
4Version: 1.2.1
5Description: Statistiques utilisateurs / Users statistics
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=321
7Author: grum@piwigo.org
8Author URI: http://www.grum.fr/
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.org
15    website  : http://www.grum.fr
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
25|         |            |
26| 1.1.0   | 2010/03/28 | * compatibility with Piwigo 2.1
27|         |            |
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
33|         |            |
34| 1.2.0   | 201012     | * mantis feature:2263
35|         |            |   . compatibility with Piwigo 2.2
36|         |            |
37| 1.2.1   | 2012/05/28 | * mantis feature:2643
38|         |            |   . compatibility with Piwigo 2.4
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
59if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
60
61define('USERSTAT_DIR' , basename(dirname(__FILE__)));
62define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/');
63
64include_once('userstat_version.inc.php'); // => Don't forget to update this file !!
65
66global $prefixeTable;
67
68//UserStat loaded and active only if in admin page
69if(defined('IN_ADMIN') && !defined('AJAX_CALL'))
70{
71  include_once("userstat_aim.class.inc.php");
72
73  $obj = new UserStat_AIM($prefixeTable, __FILE__);
74  $obj->initEvents();
75  set_plugin_data($plugin['id'], $obj);
76}
77
78?>
Note: See TracBrowser for help on using the repository browser.