source: extensions/lmt/admin/plugin_admin.php @ 8766

Last change on this file since 8766 was 7560, checked in by grum, 13 years ago

fix bug:1487 - LMT image not displayed with IE8
implement feature:1689 - Add possibility to search picture by licence

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1<?php
2/* -----------------------------------------------------------------------------
3  Plugin     : LMT
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;
17
18
19load_language('plugin.lang', LMT_PATH);
20
21$main_plugin_object = get_plugin_data($plugin_id);
22
23
24if(CommonPlugin::checkGPCRelease(LMT_GPC_NEEDED))
25{
26  $config=Array();
27  GPCCore::loadConfig('lmt', $config);
28
29
30  if($config['installed']!=LMT_VERSION2)
31  {
32    /* the plugin was updated without being deactivated
33     * deactivate + activate the plugin to process the database upgrade
34     */
35    include(LMT_PATH."lmt_install.class.inc.php");
36    $obj=new LMT_Install($prefixeTable, dirname(__FILE__));
37    $obj->deactivate();
38    $obj->activate();
39    $template->delete_compiled_templates();
40    //$config['newInstall']='n';
41  }
42
43  include(LMT_PATH."lmt_aip.class.inc.php");
44  $plugin_aip = new LMT_AIP($prefixeTable, $main_plugin_object->getFileLocation());
45}
46else
47{
48  /*
49   * plugin was upgraded, but GPC was not
50   * display a page to inform user to upgrade GPC
51   */
52  include(LMT_PATH."lmt_aip_release.class.inc.php");
53  $plugin_aip = new LMT_AIPRelease($prefixeTable, $main_plugin_object->getFileLocation());
54}
55
56
57
58
59$plugin_aip->manage();
60
61?>
Note: See TracBrowser for help on using the repository browser.