summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-22 06:03:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-22 06:03:03 +0000
commit2d06bf58a22f52e3ca3a3d046a48862da1790a40 (patch)
treee047aa79c2b1f6eb3bf8e7da0b9614503ad8288f /admin
parentc9bf00afb1611a05b85088264cb4d42efbb8ab73 (diff)
downloadampache-2d06bf58a22f52e3ca3a3d046a48862da1790a40.tar.gz
ampache-2d06bf58a22f52e3ca3a3d046a48862da1790a40.tar.bz2
ampache-2d06bf58a22f52e3ca3a3d046a48862da1790a40.zip
new best guess duplicate logic
Diffstat (limited to 'admin')
-rw-r--r--admin/duplicates.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/admin/duplicates.php b/admin/duplicates.php
index 660a7162..09602d53 100644
--- a/admin/duplicates.php
+++ b/admin/duplicates.php
@@ -5,9 +5,8 @@
All rights reserved.
This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
+ modify it under the terms of the GNU General Public License v2
+ as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,9 +25,9 @@
require_once ('../lib/init.php');
require_once( conf('prefix').'/lib/duplicates.php');
-if (!$user->has_access(100)) {
- header ("Location: " . conf('web_path') . "/index.php?access=denied");
- exit();
+if (!$GLOBALS['user']->has_access(100)) {
+ access_denied();
+ exit;
}
$action = scrub_in($_REQUEST['action']);
@@ -38,13 +37,14 @@ 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);
-}
+ case 'search':
+ $flags = get_duplicate_songs($search_type);
+ show_duplicate_songs($flags,$search_type);
+ break;
+ default:
+ show_duplicate_searchbox($search_type);
+ break;
+} // end switch on action
show_footer();
?>