summaryrefslogtreecommitdiff
path: root/new.php
diff options
context:
space:
mode:
Diffstat (limited to 'new.php')
-rw-r--r--new.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/new.php b/new.php
new file mode 100644
index 0000000..d6ccac3
--- /dev/null
+++ b/new.php
@@ -0,0 +1,17 @@
+<?php require_once 'upload.php'; ?>
+<?php require_once 'functions.php';?>
+<?php require_once 'config.php';?>
+<?php require_once 'music.php';?>
+
+<?php
+
+$music = get_music_from_post();
+if($music != null) {
+ write_music_to_db($music);
+}
+
+// 跳转
+header('Location: '.'index.php');
+
+
+?> \ No newline at end of file