} UI::show_header(); $id = $_REQUEST['id']; if (Share::delete_share($id)) { $next_url = AmpConfig::get('web_path') . '/stats.php?action=share'; show_confirmation(T_('Share Deleted'), T_('The Share has been deleted'), $next_url); } UI::show_footer(); exit; case 'clean': if (AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } UI::show_header(); Share::gc(); $next_url = AmpConfig::get('web_path') . '/stats.php?action=share'; show_confirmation(T_('Shared Objects cleaned'), T_('Expired shared objects have been cleaned.'), $next_url); UI::show_footer(); exit; case 'external_share': if (AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } $plugin = new Plugin($_GET['plugin']); if (!$plugin) { UI::access_denied('Access Denied - Unkown external share plugin.'); exit; } $plugin->load($GLOBALS['user']);