comment.php

来自「Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统」· PHP 代码 · 共 23 行

PHP
23
字号
<?php
require './include/common.inc.php';
$action = trim($action) ? $action : '';
if($action != 'ajaxcheckcode')
{
    if(!$M['ischecklogin']) {if(!$_userid) showmessage('璇峰厛鐧婚檰鍚庡湪鍙戣〃',$MODULE['member']['url'].'login.php?forward='.urlencode(URL));}
}
$head['keywords'] = $PHPCMS['keywords'];
$head['description'] = $PHPCMS['description'];
require_once PHPCMS_ROOT.'/include/form.class.php';
require_once  MOD_ROOT.'/include/comment.class.php';
$comments = new comment();
switch ( $action )
{
	case 'vote':
		$count = $comments->ajaxupdate($field, $id);
		echo ' '.$LANG[$field].'('.$count[$field].')';
	break;
	case 'add':
        $url = "?keyid=$keyid&verify=$verify";
		$content = new_htmlspecialchars($contenttext);
        $content = trim($content);
        if(strlen($content) >= 1000) showmessage('鍐呭

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?