diff --git a/src/install/index.php b/src/install/index.php index 58680869..9e12f818 100644 --- a/src/install/index.php +++ b/src/install/index.php @@ -93,8 +93,9 @@ else if ($step==2) $dbtype = empty($dbtype)? "mysql" : $dbtype; $dblang = "utf8"; if (!in_array($dbtype,array("mysql", "sqlite"))) { - die("当前数据库类型不支持"); + die(DedeAlert("当前数据库类型不支持", ALERT_DANGER)); } + if (!empty($_SERVER['HTTP_HOST'])) $dfbaseurl = $proto.$_SERVER['HTTP_HOST']; else diff --git a/src/install/install.html b/src/install/install.html index 072e41e2..4d377d16 100644 --- a/src/install/install.html +++ b/src/install/install.html @@ -39,7 +39,7 @@

欢迎使用DedeV

-
+ @@ -49,19 +49,19 @@
数据库类型一般为MySQL,SQLite仅用于开发调试,不建议生产中使用。
-
+
-
+
-
+
@@ -128,6 +128,13 @@ } }) }) + $("#dbtype").change(function () { + if ($(this).val() === 'sqlite') { + $(".form-group.server").hide(); + } else { + $(".form-group.server").show(); + } + }) \ No newline at end of file