source: extensions/EStat/main.inc.php @ 17737

Revision 17737, 2.3 KB checked in by grum, 7 years ago (diff)

First commit for EStat files

  • Property svn:executable set to *
Line 
1<?php
2/*
3Plugin Name: EStat
4Version: 0.1.0b
5Description: Extended Statistics
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
7Author: grum@piwigo.org
8Author URI: http://www.grum.fr
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
15    website  : http://www.grum.fr
16
17    << May the Little SpaceFrog be with you ! >>
18--------------------------------------------------------------------------------
19
20:: HISTORY
21
22| release | date       |
23| 0.1.0b  | 2010-08-22 | * start coding
24|         |            |   . dev/beta release
25|         |            |
26|         |            |
27|         |            |
28|         |            |
29|         |            |
30|         |            |
31|         |            |
32|         |            |
33|         |            |
34|         |            |
35
36
37:: TO DO
38
39--------------------------------------------------------------------------------
40
41:: NFO
42  EStat_root : common classe for admin and public classes
43  EStat_AIM  : classe to manage plugin integration into plugin menu
44  EStat_AIP  : classe to manage plugin admin pages
45  EStat_PIP  : classe to manage plugin public pages
46
47--------------------------------------------------------------------------------
48*/
49
50// for debug, if needed :-)
51// ini_set('error_reporting', E_ALL);
52// ini_set('display_errors', true);
53
54if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
55
56
57define('ESTAT_DIR' , basename(dirname(__FILE__)));
58define('ESTAT_PATH' , PHPWG_PLUGINS_PATH . ESTAT_DIR . '/');
59define('ESTAT_LIB' , ESTAT_PATH.'lib/');
60
61include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
62include_once('estat_version.inc.php'); // => Don't forget to update this file !!
63
64global $prefixeTable;
65
66if(!defined('AJAX_CALL'))
67{
68  if(defined('IN_ADMIN'))
69  {
70    //EStat admin interface loaded and active only if in admin page
71    include_once("estat_aim.class.inc.php");
72    $obj=new EStat_AIM($prefixeTable, __FILE__);
73  }
74  else
75  {
76    if(CommonPlugin::checkGPCRelease(ESTAT_GPC_NEEDED))
77    {
78      //EStat public interface loaded and active only if in public page
79      include_once("estat_pip.class.inc.php");
80      $obj=new EStat_PIP($prefixeTable, __FILE__);
81    }
82  }
83  set_plugin_data($plugin['id'], $obj);
84}
85
86?>
Note: See TracBrowser for help on using the repository browser.