diff --git a/src/includes/common.php b/src/includes/common.php
index 8483533..3b2e289 100644
--- a/src/includes/common.php
+++ b/src/includes/common.php
@@ -1,12 +1,12 @@
连接数据库失败,[' . DB::connect_errno() . ']' . DB::connect_error() . '';
} else {
echo '
数据库配置文件保存成功!
';
- if (DB::query("select * from {$prefix}_config where 1") == FALSE) {
+ if (DB::query("select * from {$dbconfig['prefix']}_config where 1") == FALSE) {
echo '创建数据表>>';
} else {
echo $str_installed;
@@ -294,7 +297,7 @@ function checkclass($f, $m = false)
DB::query("set sql_mode = ''");
DB::query("set names utf8");
$sqls[] = "INSERT INTO `" . $dbconfig['prefix'] . "_config` VALUES ('sys_key', '" . random(32) . "')";
- $sqls[] = "INSERT INTO `" . $dbconfig['prefix'] . "_config` VALUES ('build_time', '" . $date("Y-m-d") . "')";
+ $sqls[] = "INSERT INTO `" . $dbconfig['prefix'] . "_config` VALUES ('build_time', '" . $date . "')";
$t = 0;
$e = 0;
$error = '';
diff --git a/src/install/install.sql b/src/install/install.sql
index 93e8176..b905c1c 100644
--- a/src/install/install.sql
+++ b/src/install/install.sql
@@ -32,7 +32,6 @@ INSERT INTO `pre_config` (`k`, `v`) VALUES
('keywords', '导航系统,网站导航,程江网址导航系统,分类目录'),
('description', '程江网址导航系统为您提供网站分类目录索引及网址大全库的建立,旨在为用户提供高效便捷的网址存储和查询服务,同时提供最全的优秀名站导航。'),
('icp', '沪ICP备20016252号'),
-('build_time', '2021-10-25'),
('script_header', ''),
('script_footer', ''),
('info', '免责声明:程江网址导航系统所列站点收集于全球互联网,内容与本站无关'),
@@ -207,7 +206,7 @@ CREATE TABLE IF NOT EXISTS `pre_article` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `pre_article` (`id`, `name`, `catename`, `introduce`, `hits_total`, `tui`, `time`) VALUES
-(1, '文章标题', '资源分享', '文章详情信息
', 66, 1, '2021-10-25'),
+(1, '文章标题', '资源分享', '文章详情信息
', 66, 1, '2021-10-25');
CREATE TABLE IF NOT EXISTS `pre_like` (
`id` int(11) NOT NULL AUTO_INCREMENT,