forked from Piwigo/AMenuManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
executable file
·42 lines (32 loc) · 1.19 KB
/
admin.php
File metadata and controls
executable file
·42 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@piwigo.org
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
--------------------------------------------------------------------------- */
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
global $prefixeTable;
load_language('plugin.lang', AMM_PATH);
$main_plugin_object = get_plugin_data($plugin_id);
if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED))
{
AMM_root::checkPluginRelease();
include(AMM_PATH."amm_aip.class.inc.php");
$plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->getFileLocation());
}
else
{
/*
* plugin was upgraded, but GPC was not
* display a page to inform user to upgrade GPC
*/
include(AMM_PATH."amm_aip_release.class.inc.php");
$plugin_ai = new AMM_AIPRelease($prefixeTable, $main_plugin_object->getFileLocation());
}
$plugin_ai->manage();
?>