Last change
on this file since 18833 was
15366,
checked in by grum, 13 years ago
|
feature:2642 - Compatibility with Piwigo 2.4
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php |
---|
2 | /* ----------------------------------------------------------------------------- |
---|
3 | Plugin : Advanced Menu Manager |
---|
4 | Author : Grum |
---|
5 | email : grum@piwigo.org |
---|
6 | website : http://photos.grum.dnsalias.com |
---|
7 | PWG user : http://forum.phpwebgallery.net/profile.php?id=3706 |
---|
8 | |
---|
9 | << May the Little SpaceFrog be with you ! >> |
---|
10 | ------------------------------------------------------------------------------ |
---|
11 | See main.inc.php for release information |
---|
12 | |
---|
13 | --------------------------------------------------------------------------- */ |
---|
14 | |
---|
15 | if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } |
---|
16 | |
---|
17 | global $prefixeTable; |
---|
18 | |
---|
19 | load_language('plugin.lang', AMM_PATH); |
---|
20 | |
---|
21 | $main_plugin_object = get_plugin_data($plugin_id); |
---|
22 | |
---|
23 | if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED)) |
---|
24 | { |
---|
25 | AMM_root::checkPluginRelease(); |
---|
26 | |
---|
27 | include(AMM_PATH."amm_aip.class.inc.php"); |
---|
28 | $plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->getFileLocation()); |
---|
29 | } |
---|
30 | else |
---|
31 | { |
---|
32 | /* |
---|
33 | * plugin was upgraded, but GPC was not |
---|
34 | * display a page to inform user to upgrade GPC |
---|
35 | */ |
---|
36 | include(AMM_PATH."amm_aip_release.class.inc.php"); |
---|
37 | $plugin_ai = new AMM_AIPRelease($prefixeTable, $main_plugin_object->getFileLocation()); |
---|
38 | } |
---|
39 | |
---|
40 | $plugin_ai->manage(); |
---|
41 | |
---|
42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.