has_access(100)) { header ("Location: " . conf('web_path') . "/index.php?access=denied"); exit(); } $action = scrub_in($_REQUEST['action']); $search_type = scrub_in($_REQUEST['search_type']); show_template('header'); /* Switch on Action */ switch ($action) { case 'search': $flags = get_duplicate_songs($search_type); show_duplicate_songs($flags,$search_type); break; default: show_duplicate_searchbox($search_type); } show_footer(); ?>