diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-25 17:32:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-25 17:32:50 +0000 |
commit | c56aeb1b7003ed10da98a8bbc8305a5cb90357a6 (patch) | |
tree | 476ed3baf1f14923c7034a340c172f4d38682c26 /admin | |
parent | 8442e4c7dbb9bad0386489418567c667e7b5ed91 (diff) | |
download | ampache-c56aeb1b7003ed10da98a8bbc8305a5cb90357a6.tar.gz ampache-c56aeb1b7003ed10da98a8bbc8305a5cb90357a6.tar.bz2 ampache-c56aeb1b7003ed10da98a8bbc8305a5cb90357a6.zip |
removed random space on lastfm prefs, started work on managing shout and flagged items, cleaned up shoutbox css a bit
Diffstat (limited to 'admin')
-rw-r--r-- | admin/flag.php | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/admin/flag.php b/admin/flag.php index fc496615..e281dd6e 100644 --- a/admin/flag.php +++ b/admin/flag.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,24 +19,16 @@ */ -/** - * Flag Admin Document - * This document handles the administrative aspects of - * flagging. - */ +require '../lib/init.php'; -require('../lib/init.php'); - -if (!$GLOBALS['user']->has_access('100')) { +if (!Access::check('interface','100')) { access_denied(); exit(); } -show_template('header'); - -$action = scrub_in($_REQUEST['action']); +show_header(); -switch ($action) { +switch ($_REQUEST['action']) { case 'edit_song': $catalog = new Catalog(); $song = new Song($_REQUEST['song_id']); @@ -299,14 +291,12 @@ switch ($action) { } // end else show_confirmation(_('Songs Enabled'),_('The requested song(s) have been enabled'),return_referer()); break; - case 'show_flagged': - $flag = new Flag(); - $flagged = $flag->get_flagged(); - show_box_top(_('Flagged Records')); - require (conf('prefix') . '/templates/show_flagged.inc.php'); - show_box_bottom(); - break; default: + case 'show_flagged': + $flagged = Flag::get_all(); + Browse::set_type('flagged'); + Browse::save_objects($flagged); + Browse::show_objects($flagged); break; } // end switch |