source: extensions/AStat/main.inc.php @ 3631

Last change on this file since 3631 was 3543, checked in by grum, 15 years ago

Update AStat to 2.0.5
Minor changes : there was an invalid character in file astat_aip.class.inc.php
See topic 15784 on french forum

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1<?php
2/*
3Plugin Name: AStat.2
4Version: 2.0.5
5Description: Statistiques avancées / Advanced statistics
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=172
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
232.0.0       - 13/05/07  - release for piwigo 2.0
242.0.1       - 09/03/01  - bug corrected (can't open file because plugin directory
25                          was hardcoded...)
262.0.2       - 09/03/08  - bug referenced
27                            english forum : http://piwigo.org/forum/viewtopic.php?pid=105990#p105990
28                            french forum  : http://fr.piwigo.org/forum/viewtopic.php?pid=107205#p107205
29                          SQL request for stat by categories works with mySQL 4.1.22 and not with mySQL 5
302.0.3       - 28/03/08  - bug referenced
31                            french forum  : http://fr.piwigo.org/forum/viewtopic.php?pid=107236#p107236
32                          SQL request for stat by categories works with mySQL 4.1.22 and not with mySQL 5
332.0.4       - 21/05/09  - bug on tools
34                            it was not possible to use tools to manage deleted items
352.0.5       - 07/07/09  - bug in code - invalid character on line 2194
36
37:: TO DO
38
39--------------------------------------------------------------------------------
40
41:: NFO
42  AStat_AIM : classe to manage plugin integration into plugin menu
43  AStat_AIP : classe to manage plugin admin pages
44
45--------------------------------------------------------------------------------
46*/
47
48// pour faciliter le debug :o)
49// ini_set('error_reporting', E_ALL);
50// ini_set('display_errors', true);
51
52if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
53
54define('ASTAT_DIR' , basename(dirname(__FILE__)));
55define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/');
56
57define('ASTAT_VERSION' , '2.0.5'); // => ne pas oublier la version dans l'entête !!
58
59global $prefixeTable;
60
61//AStat loaded and active only if in admin page
62if(basename($_SERVER["PHP_SELF"])=='admin.php')
63{
64  include_once("astat_aim.class.inc.php");
65
66  $obj = new AStat_AIM($prefixeTable, __FILE__);
67  $obj->init_events();
68  set_plugin_data($plugin['id'], $obj);
69}
70
71?>
Note: See TracBrowser for help on using the repository browser.