summaryrefslogtreecommitdiff
path: root/admin_uber.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin_uber.php')
-rw-r--r--admin_uber.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/admin_uber.php b/admin_uber.php
new file mode 100644
index 0000000..ac34286
--- /dev/null
+++ b/admin_uber.php
@@ -0,0 +1,37 @@
+<?php // 处理所有操作请求
+
+require_once 'checkadmin.php' ;
+require_once 'music.php';
+
+$op = $_GET['op'];
+
+switch($op) {
+ case "DEL_TAG":
+ $tag_id = $_GET['tid'];
+ handle_delete_tag($tag_id);
+ break;
+ case "DEL_MUSIC":
+ $music_id = $_GET['mid'];
+ handle_delete_music($music_id);
+ break;
+ case 'DEL_ALBUM' :
+ $album_id = $_GET['aid'];
+ handle_delete_album($album_id);
+ break;
+ default:
+ echo 'Unkown op ' . $op;
+}
+
+function handle_delete_music($music_id){
+ delete_music($music_id);
+}
+
+function handle_delete_tag($tag_id) {
+ delete_tag($tag_id);
+}
+
+function handle_delete_album($album_id) {
+
+}
+
+?> \ No newline at end of file