source: extensions/ColorStat/admin/plugin_admin.php @ 5961

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

Add plugin files

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1<?php
2/* -----------------------------------------------------------------------------
3  Plugin     : ColorStat
4  Author     : Grum
5    email    : grum@piwigo.org
6    website  : http://photos.grum.fr
7
8    << May the Little SpaceFrog be with you ! >>
9  ------------------------------------------------------------------------------
10  See main.inc.php for release information
11
12  --------------------------------------------------------------------------- */
13
14if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
15
16global $prefixeTable;
17load_language('plugin.lang', CSTAT_PATH);
18
19$main_plugin_object = get_plugin_data($plugin_id);
20
21/*
22 * if the plugin is newly installed, display a special configuration page
23 * otherwise, display normal page
24 */
25
26$config=Array();
27GPCCore::loadConfig('cstat', $config);
28
29if($config['newInstall']=='n')
30{
31  include(CSTAT_PATH."cstat_aip.class.inc.php");
32  $plugin_aip = new CStat_AIP($prefixeTable, $main_plugin_object->getFileLocation());
33}
34else
35{
36  include(CSTAT_PATH."cstat_aip_install.class.inc.php");
37  $plugin_aip = new CStat_AIPInstall($prefixeTable, $main_plugin_object->getFileLocation());
38}
39
40$plugin_aip->manage();
41?>
Note: See TracBrowser for help on using the repository browser.