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

Last change on this file since 12995 was 10344, checked in by grum, 14 years ago

bug:2263
Compatibility with piwigo 2.2

  • Property svn:executable set to *
File size: 2.2 KB
RevLine 
[4270]1<?php
2/*
3Plugin Name: UserStat
[10344]4Version: 1.2.0
[4270]5Description: Statistiques utilisateurs / Users statistics
[4273]6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=321
[4270]7Author: grum@piwigo.org
8Author 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
[5799]26|         |            |
[5433]27| 1.1.0   | 2010/03/28 | * compatibility with Piwigo 2.1
[4270]28|         |            |
[5799]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
[4270]34|         |            |
[10344]35| 1.2.0   | 201012     | * mantis feature:2263
36|         |            |   . compatibility with Piwigo 2.2
[4270]37|         |            |
38|         |            |
39|         |            |
40
41
42
43:: TO DO
44
45--------------------------------------------------------------------------------
46
47:: NFO
48  UserStat_AIM : classe to manage plugin integration into plugin menu
49  UserStat_AIP : classe to manage plugin admin pages
50
51--------------------------------------------------------------------------------
52*/
53
54// pour faciliter le debug :o)
55// ini_set('error_reporting', E_ALL);
56// ini_set('display_errors', true);
57
58if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
59
60define('USERSTAT_DIR' , basename(dirname(__FILE__)));
61define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/');
62
[5549]63include_once('userstat_version.inc.php'); // => Don't forget to update this file !!
[4270]64
65global $prefixeTable;
66
67//UserStat loaded and active only if in admin page
68if(basename($_SERVER["PHP_SELF"])=='admin.php')
69{
70  include_once("userstat_aim.class.inc.php");
71
72  $obj = new UserStat_AIM($prefixeTable, __FILE__);
[5549]73  $obj->initEvents();
[4270]74  set_plugin_data($plugin['id'], $obj);
75}
76
77?>
Note: See TracBrowser for help on using the repository browser.