$maintable = ( trim($row['maintable'])=='' ? 'dede_archives' : trim($row['maintable']) ); $dsql->ExecuteNoneQuery("UPDATE `dede_arctiny` SET arcrank='0' WHERE id='$aid' "); if($row['issystem']==-1) { $dsql->ExecuteNoneQuery("UPDATE `".trim($row['addtable'])."` SET arcrank='0' WHERE aid='$aid' "); } else { $dsql->ExecuteNoneQuery("UPDATE `$maintable` SET arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' WHERE id='$aid' "); } $dsql->ExecuteNoneQuery("UPDATE `dede_taglist` SET arcrank='0' WHERE aid='$aid' "); $pageurl = MakeArt($aid,false);
替换为: $maintable = ( trim($row['maintable'])=='' ? 'dede_archives' : trim($row['maintable']) ); $newdate = time(); $dsql->ExecuteNoneQuery("UPDATE `dede_arctiny` SET sortrank='$newdate',senddate='$newdate',arcrank='0' WHERE id='$aid' "); if($row['issystem']==-1) { $dsql->ExecuteNoneQuery("UPDATE `".trim($row['addtable'])."` SET pubdate='$newdate',sortrank='$newdate',senddate='$newdate',arcrank='0' WHERE aid='$aid' "); } else { $dsql->ExecuteNoneQuery("UPDATE `$maintable` SET pubdate='$newdate',sortrank='$newdate',senddate='$newdate',arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' WHERE id='$aid' "); } $dsql->ExecuteNoneQuery("UPDATE `dede_taglist` SET arcrank='0' WHERE aid='$aid' "); $pageurl = MakeArt($aid,false);
那么就OK了
新闻热点
疑难解答