From bcad40a05ab2dc2a341a3227e30b96668bce4500 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 9 Jun 2005 16:34:40 +0000 Subject: New Import --- admin/orphan.php | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 admin/orphan.php (limited to 'admin/orphan.php') diff --git a/admin/orphan.php b/admin/orphan.php new file mode 100644 index 00000000..dfeee13b --- /dev/null +++ b/admin/orphan.php @@ -0,0 +1,71 @@ +has_access(100)) { + header("Location: " . conf('web_path') . "/index.php?access=denied"); + exit(); +} + + +if ( $type and $action == 'show_songs' ) { + print("

Orphaned Songs with missing $type information

"); + + $song_ids = get_orphan_songs($type); + show_songs($song_ids); +} + +show_template('header'); + +show_menu_items('Admin'); +show_admin_menu('Catalog'); + +if ( $action == 'show_orphan_songs' ) { + print("

Orphaned songs with no artist

"); + + $song_ids = get_orphan_songs(); + show_songs($song_ids); +} +elseif ( $action == 'show_orphan_albums' ) { + print("

Orphaned albums with no name

"); + + $song_ids = get_orphan_albums(); + show_songs($song_ids); +} + +?> + + +
+ + + -- cgit