diff --git a/src/user/album_add.php b/src/user/album_add.php index fac559c9..d93f7955 100755 --- a/src/user/album_add.php +++ b/src/user/album_add.php @@ -141,7 +141,8 @@ else if ($dopost == 'save') { ShowMsg("没找到当前模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } else { - $query = "INSERT INTO `$addtable` (aid,typeid,userip,redirecturl,templet,pagestyle,maxwidth,imgurls,`row`,col,isrm,ddmaxwidth,pagepicnum{$inadd_f}) VALUES ('$arcID','$typeid','$userip','','','$pagestyle','$maxwidth','$imgurls','$prow','$pcol','$isrm','$ddmaxwidth','$pagepicnum'{$inadd_v}); "; + $body = HtmlReplace($body, -1); + $query = "INSERT INTO `$addtable` (aid,typeid,userip,redirecturl,templet,pagestyle,maxwidth,imgurls,`row`,col,isrm,ddmaxwidth,pagepicnum,body{$inadd_f}) VALUES ('$arcID','$typeid','$userip','','','$pagestyle','$maxwidth','$imgurls','$prow','$pcol','$isrm','$ddmaxwidth','$pagepicnum','$body'{$inadd_v}); "; if (!$dsql->ExecuteNoneQuery($query)) { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); diff --git a/src/user/album_edit.php b/src/user/album_edit.php index a09ea9a6..fab2bba0 100755 --- a/src/user/album_edit.php +++ b/src/user/album_edit.php @@ -113,6 +113,7 @@ else if ($dopost == 'save') { } } $description = HtmlReplace($description, -1); + $body = HtmlReplace($body, -1); //更新数据库的SQL语句 $litpic = isset($litpic)? HtmlReplace($litpic, 1) : ''; $upQuery = "UPDATE `#@__archives` SET ismake='$ismake',arcrank='$arcrank',typeid='$typeid',title='$title',description='$description',keywords='$keywords',mtype='$mtypesid',flag='$flag',litpic='$litpic' WHERE id='$aid' AND mid='$mid'; "; @@ -122,7 +123,7 @@ else if ($dopost == 'save') { } $isrm = 0; if ($addtable != '') { - $query = "UPDATE `$addtable` SET typeid='$typeid',pagestyle='$pagestyle',maxwidth='$maxwidth',ddmaxwidth='$ddmaxwidth',pagepicnum='$pagepicnum',imgurls='$imgurls',`row`='$prow',col='$pcol',userip='$userip',isrm='$isrm' {$inadd_f} WHERE aid='$aid'; "; + $query = "UPDATE `$addtable` SET typeid='$typeid',pagestyle='$pagestyle',maxwidth='$maxwidth',ddmaxwidth='$ddmaxwidth',pagepicnum='$pagepicnum',imgurls='$imgurls',`row`='$prow',col='$pcol',userip='$userip',isrm='$isrm',body='$body' {$inadd_f} WHERE aid='$aid'; "; if (!$dsql->ExecuteNoneQuery($query)) { ShowMsg("数据保存到数据库附加表时出错,请联系管理员".$dsql->GetError(), "javascript:;"); exit(); diff --git a/src/user/archives_sg_add.php b/src/user/archives_sg_add.php index 77113793..10a94fc6 100755 --- a/src/user/archives_sg_add.php +++ b/src/user/archives_sg_add.php @@ -102,7 +102,7 @@ else if ($dopost == 'save') { $sortrank = $senddate = $pubdate = time(); $title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); $mid = $cfg_ml->M_ID; - $description = empty($description) ? "" : $description; + $description = empty($description) ? "" : HtmlReplace($description, -1); //分析处理附加表数据 $inadd_f = $inadd_v = ''; if (!empty($dede_addonfields)) { diff --git a/src/user/inc/archives_check_edit.php b/src/user/inc/archives_check_edit.php index 10465628..d51c531e 100755 --- a/src/user/inc/archives_check_edit.php +++ b/src/user/inc/archives_check_edit.php @@ -45,6 +45,7 @@ $writer = cn_substrR(HtmlReplace($writer, 1), 20); if (empty($description)) $description = ''; $description = cn_substrR(HtmlReplace($description, 1), 250); $keywords = cn_substrR(HtmlReplace($tags, 1), 30); +$source = isset($source)? HtmlReplace($source, 1) : ''; $mid = $cfg_ml->M_ID; $midQuery = "SELECT mid FROM `#@__arctiny` WHERE id='$aid'"; $midRow = $dsql->GetOne($midQuery); diff --git a/src/user/inc/inc_list_functions.php b/src/user/inc/inc_list_functions.php index 2dcb51e3..9adfef0d 100755 --- a/src/user/inc/inc_list_functions.php +++ b/src/user/inc/inc_list_functions.php @@ -118,9 +118,9 @@ function GetRankName($arcrank) * @param string $picname 图片名称 * @return string */ -function IsPicArchives($picname) +function IsPicArchives($flag) { - if ($picname != "") { + if (strtolower($flag)== "p") { return ' 图片'; } else { return ''; diff --git a/src/user/soft_edit.php b/src/user/soft_edit.php index 272cdedf..1d155f83 100755 --- a/src/user/soft_edit.php +++ b/src/user/soft_edit.php @@ -130,7 +130,7 @@ else if ($dopost == 'save') { } //修改主文档表 $litpic = isset($litpic)? HtmlReplace($litpic, 1) : ''; - $upQuery = "UPDATE `#@__archives` SET ismake='$ismake',arcrank='$arcrank',typeid='$typeid',title='$title',litpic='$litpic',description='$description',keywords='$keywords',flag='$flag' WHERE id='$aid' AND mid='$mid'; "; + $upQuery = "UPDATE `#@__archives` SET ismake='$ismake',arcrank='$arcrank',typeid='$typeid',title='$title',litpic='$litpic',description='$description',keywords='$keywords',flag='$flag',source='$source' WHERE id='$aid' AND mid='$mid'; "; if (!$dsql->ExecuteNoneQuery($upQuery)) { ShowMsg("数据保存到数据库主表`#@__archives`时出错,请联系管理员", "-1"); exit(); diff --git a/src/user/templets/archives_sg_add.htm b/src/user/templets/archives_sg_add.htm index 36d4e1fe..19d4b9fd 100755 --- a/src/user/templets/archives_sg_add.htm +++ b/src/user/templets/archives_sg_add.htm @@ -59,10 +59,6 @@ ?> -
- -
-
diff --git a/src/user/templets/archives_sg_edit.htm b/src/user/templets/archives_sg_edit.htm index 184917e6..6927aab2 100755 --- a/src/user/templets/archives_sg_edit.htm +++ b/src/user/templets/archives_sg_edit.htm @@ -58,10 +58,6 @@ ?>
-
- -
-
diff --git a/src/user/templets/content_list.htm b/src/user/templets/content_list.htm index 806772c9..e9a39509 100755 --- a/src/user/templets/content_list.htm +++ b/src/user/templets/content_list.htm @@ -56,7 +56,7 @@ {dede:datalist} - +
- - + +
- - + +