summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-22 04:35:24 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-22 04:35:24 +0000
commitc9bf00afb1611a05b85088264cb4d42efbb8ab73 (patch)
treea3fd7f71d48af7ba005d83ea5291fd3b6b1bd40e /admin
parente540814435a7b825ef585bdcbf0b79f3f5f47e99 (diff)
downloadampache-c9bf00afb1611a05b85088264cb4d42efbb8ab73.tar.gz
ampache-c9bf00afb1611a05b85088264cb4d42efbb8ab73.tar.bz2
ampache-c9bf00afb1611a05b85088264cb4d42efbb8ab73.zip
removed some unused files, and tweaked the style of a few pages
Diffstat (limited to 'admin')
-rw-r--r--admin/flag.php3
-rw-r--r--admin/flags.php85
2 files changed, 2 insertions, 86 deletions
diff --git a/admin/flag.php b/admin/flag.php
index 9dfcaf93..bc97fde9 100644
--- a/admin/flag.php
+++ b/admin/flag.php
@@ -266,8 +266,9 @@ switch ($action) {
case 'show_flagged':
$flag = new Flag();
$flagged = $flag->get_flagged();
- echo "<span class=\"header1\">" . _('Flagged Records') . "</span>\n";
+ show_box_top(_('Flagged Records'));
require (conf('prefix') . '/templates/show_flagged.inc.php');
+ show_box_bottom();
break;
default:
break;
diff --git a/admin/flags.php b/admin/flags.php
deleted file mode 100644
index fffc0e5c..00000000
--- a/admin/flags.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/*
-
- Copyright (c) 2001 - 2006 Ampache.org
- 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.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-*/
-
-
-/*!
- @header Flags Mojo
-*/
-
-require_once ("../lib/init.php");
-require_once( conf('prefix').'/lib/flag.php');
-
-if (!$user->has_access(100)) {
- header ("Location: " . conf('web_path') . "/index.php?access=denied");
- exit();
-}
-
-
-$action = scrub_in($_REQUEST['action']);
-show_template('header');
-
-switch ($action)
-{
- case 'show':
- $flags = get_flagged_songs();
- show_flagged_songs($flags);
- break;
- case 'Set Flags':
- case 'Update Flags':
- $flags = scrub_in($_REQUEST['song']);
- update_flags($flags);
- $newflags = get_flagged_songs();
- show_flagged_songs($newflags);
- break;
- case 'Edit Selected':
- $flags = scrub_in($_REQUEST['song']);
- $count = add_to_edit_queue($flags);
- if($count) show_edit_flagged();
- break;
- case 'Next':
- $song = scrub_in($_REQUEST['song']);
- update_song_info($song);
- show_edit_flagged();
- // Pull song ids from an edit queue in $_SESSION,
- // And edit them one at a time
- break;
- case 'Skip':
- $count = add_to_edit_queue(scrub_in($_REQUEST['song']));
- if($count) show_edit_flagged();
- case 'Flag Songs':
- break;
- case 'Remove Flags':
- break;
- case 'Clear Edit List':
- unset($_SESSION['edit_queue']);
-
- case 'Done':
- $song = scrub_in($_REQUEST['song']);
- update_song_info($song);
- default:
- $flags = get_flagged_songs();
- show_flagged_songs($flags);
-
-}
-
-show_footer();
-?>