diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-16 23:52:06 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-16 23:52:06 +0000 |
commit | 81a854f7ea737ecdb05ebfb5d09209508f34b745 (patch) | |
tree | 33a37cc50b0425e6f6d4e8904c766313e495606f /admin/duplicates.php | |
parent | 3887ab1f65fa556368d555e33b5c3e9ab59459da (diff) | |
download | ampache-81a854f7ea737ecdb05ebfb5d09209508f34b745.tar.gz ampache-81a854f7ea737ecdb05ebfb5d09209508f34b745.tar.bz2 ampache-81a854f7ea737ecdb05ebfb5d09209508f34b745.zip |
fixed the find duplicates stuff, its actually still broken somewhat but it mostly works so why not commit eah?
Diffstat (limited to 'admin/duplicates.php')
-rw-r--r-- | admin/duplicates.php | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/admin/duplicates.php b/admin/duplicates.php index 09602d53..aac0ceef 100644 --- a/admin/duplicates.php +++ b/admin/duplicates.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -19,30 +19,24 @@ */ +require_once '../lib/init.php'; -// Allows users to search for duplicate songs in their catalogs - -require_once ('../lib/init.php'); -require_once( conf('prefix').'/lib/duplicates.php'); - -if (!$GLOBALS['user']->has_access(100)) { +if (!Access::check('interface','100')) { access_denied(); exit; } -$action = scrub_in($_REQUEST['action']); -$search_type = scrub_in($_REQUEST['search_type']); - -show_template('header'); +show_header(); /* Switch on Action */ -switch ($action) { - case 'search': - $flags = get_duplicate_songs($search_type); - show_duplicate_songs($flags,$search_type); +switch ($_REQUEST['action']) { + case 'find_duplicates': + $duplicates = Catalog::get_duplicate_songs($_REQUEST['search_type']); + require_once Config::get('prefix') . '/templates/show_duplicate.inc.php'; + require_once Config::get('prefix') . '/templates/show_duplicates.inc.php'; break; default: - show_duplicate_searchbox($search_type); + require_once Config::get('prefix') . '/templates/show_duplicate.inc.php'; break; } // end switch on action |