source: extensions/AMetaData/admin/plugin_admin.php @ 6919

Last change on this file since 6919 was 6919, checked in by grum, 10 years ago

Implement basic/advanced modes, release 0.5.1
bug:1857

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<?php
2/*
3 * -----------------------------------------------------------------------------
4 * Plugin Name: Advanced MetaData
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 * -----------------------------------------------------------------------------
18*/
19
20if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
21
22global $prefixeTable;
23
24load_language('plugin.lang', AMD_PATH);
25
26$main_plugin_object = get_plugin_data($plugin_id);
27
28/*
29 * if the plugin is newly installed, display a special configuration page
30 * otherwise, display normal page
31 */
32
33$config=Array();
34GPCCore::loadConfig('amd', $config);
35
36if($config['newInstall']=='n')
37{
38  include(AMD_PATH."amd_aip.class.inc.php");
39  $plugin_ai = new AMD_AIP($prefixeTable, $main_plugin_object->getFileLocation());}
40else
41{
42  include(AMD_PATH."amd_aip_install.class.inc.php");
43  $plugin_ai = new AMD_AIPInstall($prefixeTable, $main_plugin_object->getFileLocation());
44}
45
46$plugin_ai->manage();
47
48?>
Note: See TracBrowser for help on using the repository browser.