|
@@ -444,7 +444,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { |
|
|
require_once($workDir . "/system/common.inc.php"); |
|
|
require_once($workDir . "/system/common.inc.php"); |
|
|
require_once(DEDEINC . "/libraries/cli.class.php"); |
|
|
require_once(DEDEINC . "/libraries/cli.class.php"); |
|
|
for ($t=1; $t <= 10; $t++) { |
|
|
for ($t=1; $t <= 10; $t++) { |
|
|
$in_query = "INSERT INTO `#@__arctype` (reid,topid,sortrank,typename,cnoverview,enname,enoverview,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) VALUES ('0','0','999','测试栏目{$t}','','','','','','{cmspath}/a/ceshilanmu','1','index.html','1','1','{style}/index_article.htm','{style}/list_article.htm','{style}/article_article.htm','default','{typedir}/{aid}.html','{typedir}/{tid}-{page}.html','0','0','测试','测试','','0','','','0','0','','','')"; |
|
|
|
|
|
|
|
|
$in_query = "INSERT INTO `#@__arctype` (reid,topid,sortrank,typename,cnoverview,enname,enoverview,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) VALUES ('0','0','999','测试栏目{$t}','','','','','','{cmspath}/a/ceshilanmu{$t}','1','index.html','1','1','{style}/index_article.htm','{style}/list_article.htm','{style}/article_article.htm','default','{typedir}/{aid}.html','{typedir}/{tid}-{page}.html','0','0','测试','测试','','0','','','0','0','','','')"; |
|
|
if (!$dsql->ExecuteNoneQuery($in_query)) { |
|
|
if (!$dsql->ExecuteNoneQuery($in_query)) { |
|
|
DedeCli::error("保存目录数据时失败,请检查您的输入资料是否存在问题"); |
|
|
DedeCli::error("保存目录数据时失败,请检查您的输入资料是否存在问题"); |
|
|
} |
|
|
} |
|
|