} $display = MG_siteHeader(); $display .= $retval; $display .= MG_siteFooter(); echo $display; exit; } else { if ($mode == 'globalperm') { $retval = ''; if (!function_exists('MG_globalAlbumPermEditor')) { require_once $_CONF['path'] . 'plugins/mediagallery/include/global.php'; } if (isset($_GET['album_id'])) { $album_id = COM_applyFilter($_GET['album_id'], true); $admin_menu = isset($_GET['a']) ? COM_applyFilter($_GET['a'], true) : 0; $retval .= MG_globalAlbumPermEditor($admin_menu); } else { $retval .= MG_invalidRequest(); } $display = MG_siteHeader(); $display .= $retval; $display .= MG_siteFooter(); echo $display; exit; } else { if ($mode == 'wmmanage') { $retval = ''; if (!function_exists('MG_getFile')) { require_once $_CONF['path'] . 'plugins/mediagallery/include/lib-upload.php'; } if (!function_exists('MG_watermarkManage')) {
} require_once $include . 'global.php'; $album_id = COM_applyFilter($_GET['album_id'], true); $admin_menu = COM_applyFilter($_GET['a'], true); $display = MG_globalAlbumAttributeEditor($admin_menu); $display = MG_createHTMLDocument($display); COM_output($display); } else { if ($mode == 'globalperm') { if (!isset($_GET['album_id'])) { MG_invalidRequest(); } require_once $include . 'global.php'; $album_id = COM_applyFilter($_GET['album_id'], true); $admin_menu = COM_applyFilter($_GET['a'], true); $display = MG_globalAlbumPermEditor($admin_menu); $display = MG_createHTMLDocument($display); COM_output($display); } else { if ($mode == 'wmmanage') { require_once $include . 'lib-upload.php'; require_once $include . 'lib-watermark.php'; $display = MG_watermarkManage(); $display = MG_createHTMLDocument($display); COM_output($display); } else { if ($mode == $LANG_MG01['save_exit']) { if (!isset($_GET['album_id'])) { MG_invalidRequest(); } require_once $include . 'batch.php';