if ($err == -1) { header("location: messagelist.php?action=info&mes=已取消点赞!"); exit; } else { if (!$err) { header("location: messagedetails.php?action=succ&mes=点赞成功!&messageid=" . $_GET['messageid']); exit; } else { header("location: messagelist.php?action=err&mes={$err}"); exit; } } break; case 'comment': if (!@$_GET['content']) { header("location: messagelist.php?action=err&mes=请输入评论内容!"); exit; } else { if (!($err = comment_message($_GET['messageid'], $_SESSION['userid'], $_GET['content']))) { header("location: messagedetails.php?action=succ&mes=评论成功&messageid=" . $_GET['messageid']); exit; } else { header("location: messagedetails.php?action=err&mes={$err}&messageid=" . $_GET['messageid']); exit; } } break; } ?>
function message($atts) { return comment_message($atts); }
function message($atts) { trigger_error(gTxt('deprecated_tag'), E_USER_NOTICE); return comment_message($atts); }