From 8abaa283d7c278b38024dc782f0d6a0fd9b21822 Mon Sep 17 00:00:00 2001 From: Mingda Chen Date: Fri, 20 Dec 2013 14:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=9D=9E=E6=A0=B9=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=AE=89=E8=A3=85=EF=BC=8C=E4=BF=AE=E5=A4=8Drss?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=A1=B5=E9=9D=A2=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.php | 9 +++++++-- mc-admin/index.php | 4 ++-- mc-admin/page-edit.php | 2 +- mc-admin/post-edit.php | 2 +- mc-files/mc-rss.php | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/build.php b/build.php index 7f9dea3..8ee87a5 100644 --- a/build.php +++ b/build.php @@ -132,6 +132,11 @@ function vMiddle(inner){
+ +
+
@@ -201,7 +206,7 @@ function install(\$file, \$content) { if (!@file_put_contents('mc-files/mc-conf.php', " '\$version',". - "'site_link' => '',". + "'site_link' => '{\$_POST['sitelink']}',". "'site_name' => '{\$_POST['sitename']}',". "'site_desc' => '又一个MiniCMS网站',". "'user_name' => '{\$_POST['username']}',". @@ -271,7 +276,7 @@ function install(\$file, \$content) {
安装文件无法删除,请手工删除。
-
+
diff --git a/mc-admin/index.php b/mc-admin/index.php index f3e7a19..58b62ae 100755 --- a/mc-admin/index.php +++ b/mc-admin/index.php @@ -5,7 +5,7 @@ $token = $_COOKIE['mc_token']; if ($token == md5($mc_config['user_name'].'_'.$mc_config['user_pass'])) { - Header("Location:/mc-admin/post.php"); + Header("Location:{$mc_config['site_link']}/mc-admin/post.php"); } } @@ -13,7 +13,7 @@ if ($_POST['user'] == $mc_config['user_name'] && $_POST['pass'] == $mc_config['user_pass']) { setcookie('mc_token', md5($mc_config['user_name'].'_'.$mc_config['user_pass'])); - Header("Location:/mc-admin/post.php"); + Header("Location:{$mc_config['site_link']}/mc-admin/post.php"); } } ?> diff --git a/mc-admin/page-edit.php b/mc-admin/page-edit.php index 50834a5..8918524 100755 --- a/mc-admin/page-edit.php +++ b/mc-admin/page-edit.php @@ -160,7 +160,7 @@ function empty_textbox_blur(target) { -
页面已发布。 查看页面
+
页面已发布。 查看页面
页面已保存到“草稿箱”。 打开草稿箱
diff --git a/mc-admin/post-edit.php b/mc-admin/post-edit.php index 5831f62..b40aabc 100755 --- a/mc-admin/post-edit.php +++ b/mc-admin/post-edit.php @@ -153,7 +153,7 @@ function empty_textbox_blur(target) { -
文章已发布。 查看文章
+
文章已发布。 查看文章
文章已保存到“草稿箱”。 打开草稿箱
diff --git a/mc-files/mc-rss.php b/mc-files/mc-rss.php index 57ce4c1..43d7376 100644 --- a/mc-files/mc-rss.php +++ b/mc-files/mc-rss.php @@ -1,5 +1,5 @@ - +'; ?>