From 52ab9c1909f39c8854e8235cddd351ef72505e91 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Thu, 30 Jul 2020 23:49:46 +0800 Subject: =?UTF-8?q?:fire:=20Del:=20=E7=A7=BB=E9=99=A4=E6=97=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=89=80=E6=9C=89=E6=96=87=E4=BB=B6=EF=BC=8C=E5=87=86?= =?UTF-8?q?=E5=A4=87=202.0=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Comments.php | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 libs/Comments.php (limited to 'libs/Comments.php') diff --git a/libs/Comments.php b/libs/Comments.php deleted file mode 100644 index 1e4cb7e..0000000 --- a/libs/Comments.php +++ /dev/null @@ -1,51 +0,0 @@ --->'; - echo ''; - echo ''; - } - - /** - * 获取上级评论人 - */ - public static function getCommentHF($coid){ - $db = Typecho_Db::get(); - $prow = $db->fetchRow($db->select('parent') - ->from('table.comments') - ->where('coid = ? AND status = ?', $coid, 'approved')); - $parent = $prow['parent']; - if ($parent != "0") { - $arow = $db->fetchRow($db->select('text','author','status') - ->from('table.comments') - ->where('coid = ?', $parent)); - $author = $arow['author']; - $status = $arow['status']; - if($author){ - if($status=='approved'){ - $href = '@'.$author.'';; - }else if($status=='waiting'){ - $href = '评论审核中···'; - } - } - echo $href; - } else { - echo ""; - } - } -} -- cgit v1.2.3