summaryrefslogtreecommitdiff
path: root/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'config.php')
-rw-r--r--config.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/config.php b/config.php
new file mode 100644
index 0000000..b7e0e27
--- /dev/null
+++ b/config.php
@@ -0,0 +1,27 @@
+<?php
+
+class Config
+{
+ // 数据库连接
+ public static $servername = "localhost";
+ public static $username = "wod_dba";
+ public static $password = "";
+ public static $db_name = "musik";
+
+ // 数据库表格
+ public static $tb_album = "album";
+ public static $tb_album_music = "album_music";
+ public static $tb_music = "music";
+ public static $tb_music_tag = "music_tag";
+ public static $tb_tags = "tags";
+
+ // 文件上传目录
+ public static $music_upload_dir = "./music";
+ public static $cover_upload_dir = "./cover";
+ public static $project_upload_dir = "./project";
+
+ //
+ public static $music_per_page = 42;
+}
+
+?> \ No newline at end of file