Browse Source

优化

tags/6.3.0
叙述、别离 6 months ago
parent
commit
48d42fd370
4 changed files with 5 additions and 6 deletions
  1. +1
    -1
      src/admin/login.php
  2. +1
    -1
      src/admin/makehtml_homepage.php
  3. +1
    -1
      src/admin/templets/makehtml_homepage.htm
  4. +2
    -3
      src/install/sql-dfdata.txt

+ 1
- 1
src/admin/login.php View File

@@ -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');


+ 1
- 1
src/admin/makehtml_homepage.php View File

@@ -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:;");


+ 1
- 1
src/admin/templets/makehtml_homepage.htm View File

@@ -19,7 +19,7 @@
</tr>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">更新首页文件默认存放在根目录,不是根目录安装的网站,首页需要更新到网站根目录,请使用相对路径,则安装在:http://www.abc.com/DedeBIZ/目录,更新首页:http://www.abc.com/index.html,填写:/index.html</div>
<div class="alert alert-info mb-0">更新首页文件默认存放在根目录,不是根目录安装的网站,首页需要更新到网站根目录,请使用相对路径,则安装在:http://www.abc.com/DedeBIZ/目录,更新首页:http://www.abc.com/index.html,填写:../index.html</div>
</td>
</tr>
<tr>


+ 2
- 3
src/install/sql-dfdata.txt View File

@@ -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" }<li>[field:imglink/] [field:textlink/] <span class=info><small>日期:</small>[field:pubdate function="getdatemk(@me)"/] <small>浏览:</small>[field:click/] <small>好评:</small>[field:scores/] </span>\t\n<p class=intro>[field:description/]</p></li>{/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=""}<url>\t\n<loc>[field:arcurl function="Gmapurl(@me)"/]</loc>\t\n<title>[field:title function="HtmlReplace(@me)"/]</title>\t\n<news:news>\t\n<news:keywords>[field:keywords/]</news:keywords>\t\n<news:publication_date>[field:senddate function="strftime('%Y-%m-%d',@me)"/]</news:publication_date>\t\n</news:news>\t\n</url>{/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" }<li>[field:imglink/] [field:textlink/] <span class=info><small>日期:</small>[field:pubdate function="getdatemk(@me)"/] <small>浏览:</small>[field:click/] <small>好评:</small>[field:scores/] </span>\t\n<p class=intro>[field:description/]</p></li>{/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','金币套餐二'),


Loading…
Cancel
Save