diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-22 04:35:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-22 04:35:24 +0000 |
commit | c9bf00afb1611a05b85088264cb4d42efbb8ab73 (patch) | |
tree | a3fd7f71d48af7ba005d83ea5291fd3b6b1bd40e /admin/flags.php | |
parent | e540814435a7b825ef585bdcbf0b79f3f5f47e99 (diff) | |
download | ampache-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/flags.php')
-rw-r--r-- | admin/flags.php | 85 |
1 files changed, 0 insertions, 85 deletions
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(); -?> |