diff --git a/src/admin/login.php b/src/admin/login.php index 7ea2acc1..c95adcd2 100644 --- a/src/admin/login.php +++ b/src/admin/login.php @@ -20,7 +20,7 @@ if (is_dir(dirname(__FILE__).'/../install')) { fwrite($fp, 'ok'); fclose($fp); } - $fileindex = "/install/index.html"; + $fileindex = "../install/index.html"; if (!file_exists($fileindex)) { $fp = @fopen($fileindex, 'w'); fwrite($fp, 'dir'); diff --git a/src/admin/makehtml_homepage.php b/src/admin/makehtml_homepage.php index 498d3aa4..5e1089c8 100644 --- a/src/admin/makehtml_homepage.php +++ b/src/admin/makehtml_homepage.php @@ -58,7 +58,7 @@ if ($dopost == "view") { } $client->Close(); } - $remotepos = empty($remotepos) ? '/index.html' : $remotepos; + $remotepos = empty($remotepos) ? '../index.html' : $remotepos; $serviterm = empty($serviterm) ? "" : $serviterm; if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($position))) { ShowMsg("文件扩展名已被系统禁止", "javascript:;"); diff --git a/src/admin/templets/makehtml_homepage.htm b/src/admin/templets/makehtml_homepage.htm index adb689a5..2c6ed333 100644 --- a/src/admin/templets/makehtml_homepage.htm +++ b/src/admin/templets/makehtml_homepage.htm @@ -19,7 +19,7 @@ -
更新首页文件默认存放在根目录,不是根目录安装的网站,首页需要更新到网站根目录,请使用相对路径,则安装在:http://www.abc.com/DedeBIZ/目录,更新首页:http://www.abc.com/index.html,填写:/index.html
+
更新首页文件默认存放在根目录,不是根目录安装的网站,首页需要更新到网站根目录,请使用相对路径,则安装在:http://www.abc.com/DedeBIZ/目录,更新首页:http://www.abc.com/index.html,填写:../index.html
diff --git a/src/install/sql-dfdata.txt b/src/install/sql-dfdata.txt index a0389c3d..653b1785 100755 --- a/src/install/sql-dfdata.txt +++ b/src/install/sql-dfdata.txt @@ -522,12 +522,11 @@ INSERT INTO `#@__flinktype` VALUES ('1','综合网站'), ('7','论坛类'), ('8','其它类型'); -INSERT INTO `#@__freelist` VALUES ('1','测试文档','{listdir}/index_{listid}_{page}.html','{cmspath}/freelist/','index.html','1','{style}/list_free.htm','1289712633','100','0','{dede:list pagesize="30" col="1" titlelen="60" orderby="pubdate" orderway="desc" typeid="1" channel="1" }
  • [field:imglink/] [field:textlink/] 日期:[field:pubdate function="getdatemk(@me)"/] 浏览:[field:click/] 好评:[field:scores/] \t\n

    [field:description/]

  • {/dede:list}','测试','测试文档'), -('10','Google SiteMap 生成器','{listdir}googlemap_{page}.xml','{cmspath}','index.html','1','{style}/googlemap.htm','1226884666','100','0','{dede:list pagesize="500" col="1" titlelen="60" orderby="pubdate" orderway="desc"\t\nchannel="1" keyword=""}\t\n[field:arcurl function="Gmapurl(@me)"/]\t\n[field:title function="HtmlReplace(@me)"/]\t\n\t\n[field:keywords/]\t\n[field:senddate function="strftime('%Y-%m-%d',@me)"/]\t\n\t\n{/dede:list}','',''); +INSERT INTO `#@__freelist` VALUES ('1','测试文档','{listdir}/index_{listid}_{page}.html','{cmspath}/freelist/','index.html','1','{style}/list_free.htm','1289712633','100','0','{dede:list pagesize="30" col="1" titlelen="60" orderby="pubdate" orderway="desc" typeid="1" channel="1" }
  • [field:imglink/] [field:textlink/] 日期:[field:pubdate function="getdatemk(@me)"/] 浏览:[field:click/] 好评:[field:scores/] \t\n

    [field:description/]

  • {/dede:list}','测试','测试文档'); INSERT INTO `#@__member_type` VALUES ('1','50','中级会员半年','100','30'); -INSERT INTO `#@__homepageset` VALUES ('{style}/index.htm','/index.html','0'); +INSERT INTO `#@__homepageset` VALUES ('{style}/index.htm','../index.html','0'); INSERT INTO `#@__moneycard_type` VALUES ('1','100','30','金币套餐一'), ('2','200','55','金币套餐二'),