summaryrefslogtreecommitdiffstats
path: root/admin/flag.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-27 04:29:23 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-27 04:29:23 +0000
commit7673d000dd8ec85908a99a1174840c8ca3c53e16 (patch)
tree8cbce751084279e680055f156824c52ea3b3b88b /admin/flag.php
parent75434cbeb6e6c2e4107b9932a79b3d146dbdcc0f (diff)
downloadampache-7673d000dd8ec85908a99a1174840c8ca3c53e16.tar.gz
ampache-7673d000dd8ec85908a99a1174840c8ca3c53e16.tar.bz2
ampache-7673d000dd8ec85908a99a1174840c8ca3c53e16.zip
added some more to flagging and updated mail page to fit new standards
Diffstat (limited to 'admin/flag.php')
-rw-r--r--admin/flag.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/admin/flag.php b/admin/flag.php
index df7893c2..2c8e4c16 100644
--- a/admin/flag.php
+++ b/admin/flag.php
@@ -71,6 +71,15 @@ switch ($action) {
}
show_confirmation(_('Song Updated'),_('The requested song has been updated'),$_SESSION['source']);
break;
+ case 'reject_flag':
+ $flag_id = scrub_in($_REQUEST['flag_id']);
+ $flag = new Flag($flag_id);
+ $flag->delete_flag();
+ $url = return_referer();
+ $title = _('Flag Removed');
+ $body = _('Flag Removed from') . " " . $flag->print_name();
+ show_confirmation($title,$body,$url);
+ break;
case 'show_edit_song':
$_SESSION['source'] = return_referer();
$song = new Song($_REQUEST['song']);
@@ -88,7 +97,7 @@ switch ($action) {
} // end else
show_confirmation(_('Songs Disabled'),_('The requested song(s) have been disabled'),return_referer());
break;
- case "enabled":
+ case 'enabled':
$song_obj = new Song();
// If we pass just one, make it still work
if (!is_array($_REQUEST['song_ids'])) { $song_obj->update_enabled(1,$_REQUEST['song_ids']); }
@@ -99,6 +108,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();
+ echo "<span class=\"header1\">" . _('Flagged Records') . "</span>\n";
+ require (conf('prefix') . '/templates/show_flagged.inc.php');
+ break;
default:
break;
} // end switch