Skip to content

Commit

Permalink
修正安装报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaodifangsi committed Oct 9, 2016
1 parent 56304ec commit 7986e90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// 网站路径信息,如果在根目录请保留"/",如果在子目录内运行请将“4ucms”修改为您的网站目录名称。
@define('SITE_DIR', '/4ucms/');
@define('SITE_DIR', '/cms/');
// 是否开启管理员操作日志
@define('ADMIN_LOG', false);
// 时差
Expand Down
2 changes: 1 addition & 1 deletion config/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
define('DATA_HOST', 'localhost');
define('DATA_USERNAME', 'root');
define('DATA_PASSWORD', 'root');
define('DATA_NAME', '4ucms');
define('DATA_NAME', 'cms');
?>
5 changes: 3 additions & 2 deletions install/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php
header('Content-type:text/html; charset=utf-8');//设置编码
include('../library/library.php');
$db_name = $_POST['db_name'];
include '../library/constant.php';
include '../library/library.php';
if (isset($_POST['save'])) {
$db_name = $_POST['db_name'];
$str = '';
$str .= '<?php';
$str .= "\n";
Expand Down

0 comments on commit 7986e90

Please sign in to comment.