has_access(100)) { access_denied(); exit(); } $action = scrub_in($_REQUEST['action']); /* Always show the header */ show_template('header'); switch ($action) { case 'insert_localplay_preferences': $type = scrub_in($_REQUEST['type']); insert_localplay_preferences($type); $url = conf('web_path') . '/admin/modules.php'; $title = _('Module Activated'); $body = ''; show_confirmation($title,$body,$url); break; case 'confirm_remove_localplay_preferences': $type = scrub_in($_REQUEST['type']); $url = conf('web_path') . '/admin/modules.php?action=remove_localplay_preferences&type=' . $type; $title = _('Are you sure you want to remove this module?'); $body = ''; show_confirmation($title,$body,$url,1); break; case 'remove_localplay_preferences': $type = scrub_in($_REQUEST['type']); remove_localplay_preferences($type); $url = conf('web_path') . '/admin/modules.php'; $title = _('Module Deactivated'); $body = ''; show_confirmation($title,$body,$url); break; default: require_once (conf('prefix') . '/templates/show_modules.inc.php'); break; } // end switch show_footer(); ?>