diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-24 06:51:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-24 06:51:15 +0000 |
commit | 8aa6fd30f5a9e5e9e573eced947f2bd0486f1a7e (patch) | |
tree | 2b5ce4aa8987e6bbae8794c74e45d836d0dcbad2 /lib/class | |
parent | 26b9269353993db44c4a5037bd72988407e88e37 (diff) | |
download | ampache-8aa6fd30f5a9e5e9e573eced947f2bd0486f1a7e.tar.gz ampache-8aa6fd30f5a9e5e9e573eced947f2bd0486f1a7e.tar.bz2 ampache-8aa6fd30f5a9e5e9e573eced947f2bd0486f1a7e.zip |
new dealies and stuff
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/flag.class.php | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/class/flag.class.php b/lib/class/flag.class.php index fe2f3047..05d51583 100644 --- a/lib/class/flag.class.php +++ b/lib/class/flag.class.php @@ -143,6 +143,28 @@ class Flag { } // get_flagged /** + * get_approved + * This returns an array of approved flagged songs + */ + function get_approved() { + + $sql = "SELECT id FROM flagged WHERE approved='1'"; + $db_results = mysql_query($sql,dbh()); + + + /* Default the results array */ + $results = array(); + + /* While it */ + while ($r = mysql_fetch_assoc($db_results)) { + $results[] = $r['id']; + } + + return $results; + + } // get_approved + + /** * add * This adds a flag entry for an item, it takes an id, a type, the flag type * and a comment and then inserts the mofo @@ -179,7 +201,7 @@ class Flag { return true; - } // reject + } // delete_flag /** * approve |