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

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

[UserStat] Affect the EID #321 from PEM

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1<?php
2/*
3Plugin Name: UserStat
4Version: 1.0.0
5Description: Statistiques utilisateurs / Users statistics
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=321
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
26|         |            |
27|         |            |
28|         |            |
29|         |            |
30|         |            |
31|         |            |
32|         |            |
33
34
35
36:: TO DO
37
38--------------------------------------------------------------------------------
39
40:: NFO
41  UserStat_AIM : classe to manage plugin integration into plugin menu
42  UserStat_AIP : classe to manage plugin admin pages
43
44--------------------------------------------------------------------------------
45*/
46
47// pour faciliter le debug :o)
48// ini_set('error_reporting', E_ALL);
49// ini_set('display_errors', true);
50
51if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
52
53define('USERSTAT_DIR' , basename(dirname(__FILE__)));
54define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/');
55
56define('USERSTAT_VERSION' , '1.0.0'); // => ne pas oublier la version dans l'entête !!
57
58global $prefixeTable;
59
60//UserStat loaded and active only if in admin page
61if(basename($_SERVER["PHP_SELF"])=='admin.php')
62{
63  include_once("userstat_aim.class.inc.php");
64
65  $obj = new UserStat_AIM($prefixeTable, __FILE__);
66  $obj->init_events();
67  set_plugin_data($plugin['id'], $obj);
68}
69
70?>
Note: See TracBrowser for help on using the repository browser.