1 | <?php |
---|
2 | /* |
---|
3 | * ----------------------------------------------------------------------------- |
---|
4 | * Plugin Name: UserStat |
---|
5 | * ----------------------------------------------------------------------------- |
---|
6 | * Author : Grum |
---|
7 | * email : grum@piwigo.org |
---|
8 | * website : http://photos.grum.fr |
---|
9 | * PWG user : http://forum.piwigo.org/profile.php?id=3706 |
---|
10 | * |
---|
11 | * << May the Little SpaceFrog be with you ! >> |
---|
12 | * |
---|
13 | * ----------------------------------------------------------------------------- |
---|
14 | * |
---|
15 | * See main.inc.php for release information |
---|
16 | * |
---|
17 | * UserStat_install : classe to manage plugin install |
---|
18 | * --------------------------------------------------------------------------- |
---|
19 | */ |
---|
20 | |
---|
21 | if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } |
---|
22 | |
---|
23 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
24 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php'); |
---|
25 | |
---|
26 | class UserStat_root extends CommonPlugin |
---|
27 | { |
---|
28 | protected $css; //the css object |
---|
29 | |
---|
30 | public function __construct($prefixeTable, $filelocation) |
---|
31 | { |
---|
32 | $this->setPluginName("UserStat"); |
---|
33 | $this->setPluginNameFiles("userstat"); |
---|
34 | parent::__construct($prefixeTable, $filelocation); |
---|
35 | $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().".css"); |
---|
36 | } |
---|
37 | |
---|
38 | public function __destruct() |
---|
39 | { |
---|
40 | unset($this->css); |
---|
41 | parent::__destruct(); |
---|
42 | } |
---|
43 | |
---|
44 | /* --------------------------------------------------------------------------- |
---|
45 | common AIP & PIP functions |
---|
46 | --------------------------------------------------------------------------- */ |
---|
47 | |
---|
48 | /* this function initialize var $config with default values */ |
---|
49 | /* |
---|
50 | initialization of config properties |
---|
51 | */ |
---|
52 | function initConfig() |
---|
53 | { |
---|
54 | $this->config=array( |
---|
55 | ); |
---|
56 | } |
---|
57 | |
---|
58 | } |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | ?> |
---|