source: extensions/EStat/estat_aip_release.class.inc.php @ 24048

Last change on this file since 24048 was 17737, checked in by grum, 12 years ago

First commit for EStat files

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1<?php
2/*
3 * -----------------------------------------------------------------------------
4 * Plugin Name: EStat
5 * -----------------------------------------------------------------------------
6 * Author     : Grum
7 *   email    : grum@piwigo.org
8 *   website  : http://www.grum.fr
9 *
10 *   << May the Little SpaceFrog be with you! >>
11 *
12 * -----------------------------------------------------------------------------
13 * See main.inc.php for release information
14 * -----------------------------------------------------------------------------
15 */
16
17
18if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
19
20include_once('estat_root.class.inc.php');
21
22class EStat_AIPRelease extends EStat_root
23{
24  public function __construct($prefixeTable, $filelocation)
25  {
26    parent::__construct($prefixeTable, $filelocation);
27    $this->loadConfig();
28    $this->initEvents();
29  }
30
31  /*
32    display administration page
33  */
34  public function manage()
35  {
36    global $template;
37
38    GPCCore::setTemplateToken();
39
40    $template->set_filename('plugin_admin_content', dirname($this->getFileLocation())."/admin/estat_aip_release.tpl");
41
42    $pluginInfo=array(
43      'ESTAT_VERSION' => "<i>".$this->getPluginName()."</i> ".l10n('g003_version').ESTAT_VERSION,
44      'PATH' => ESTAT_PATH
45    );
46
47    $template->assign('plugin', $pluginInfo);
48    $template->assign('msg', sprintf(l10n('g003_gpc_not_up_to_date'),ESTAT_GPC_NEEDED, GPC_VERSION));
49    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
50  }
51
52} //class
53
54
55?>
Note: See TracBrowser for help on using the repository browser.