[评论设置] [评论管理]
$action_cn
EOT; if($out_string){ echo "

"; echo $out_string; echo "

"; }else if($action=="config"){ $allowpost=$db_allowpost ? 'checked' : ''; $postcheck=$db_postcheck ? 'checked' : ''; print<<
允许发表评论: 否  是
评论是否需要审核: 否  是
评论时间间隔: (单位:秒;0表示不防止灌水)
评论内容最大长度: (单位:字节,大于0的整数)
EOT; }else if($action=="manage"){ print<< 选择 评论者 日期 IP 审核 操作
EOT; foreach($postdata as $post){ $postdate=date("Y-m-d H:i:s",$post[postdate]); $pcheck=$post[ifcheck] ? '已审核' : '未审核'; print<< {$post[author]} {$postdate} {$post[userip]} {$pcheck} [浏览评论]  [审核]  [删除] EOT; } $fenye=pages_put_html(); $ifcheckyes=$ifcheck ? 'checked' : ''; $ifcheck=$ifcheck ? '0' : '1'; print<<{$fenye} 只显示未审核的评论 管理项目

通过审核  未通过审核  删除

  EOT; }else if($action=="preview"){ echo "评论内容:

"; echo showface($postdata[content]); } print<< EOT; @include_once('template/admin/footer.htm'); print<< EOT; ?>