summaryrefslogtreecommitdiff
path: root/admin_uber.php
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-22 20:42:48 +0800
committerchai <chaifix@163.com>2022-03-22 20:42:48 +0800
commitf980b021f1f1df132c4599cb4c1fb127a1ae289a (patch)
tree55c1cf92b0465e238a5ce99d73e883d860d5ab80 /admin_uber.php
parent627b8e416d138112ad20b1299aca21dccebcd11c (diff)
+ album
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