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

Last change on this file since 16460 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
RevLine 
[4270]1<?php
2/*
3Plugin Name: UserStat
[15374]4Version: 1.2.1
[4270]5Description: Statistiques utilisateurs / Users statistics
[16460]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=321
[4270]7Author: grum@piwigo.org
[16460]8Author 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
59if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
60
61define('USERSTAT_DIR' , basename(dirname(__FILE__)));
62define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/');
63
[5549]64include_once('userstat_version.inc.php'); // => Don't forget to update this file !!
[4270]65
66global $prefixeTable;
67
68//UserStat loaded and active only if in admin page
[16015]69if(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?>
Note: See TracBrowser for help on using the repository browser.