本文整理汇总了PHP中CForumTopic::CanUserDeleteTopicMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP CForumTopic::CanUserDeleteTopicMessage方法的具体用法?PHP CForumTopic::CanUserDeleteTopicMessage怎么用?PHP CForumTopic::CanUserDeleteTopicMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CForumTopic
的用法示例。
在下文中一共展示了CForumTopic::CanUserDeleteTopicMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
}
$db_Message = CForumMessage::GetListEx(array("ID" => "ASC"), $arFilter);
global $HTTP_GET_VARS;
unset($_GET["MID"]);
unset($HTTP_GET_VARS["MID"]);
unset($_GET["ACTION"]);
unset($HTTP_GET_VARS["ACTION"]);
if ($MID > 0) {
$db_Message->NavStart($GLOBALS["FORUM_MESSAGES_PER_PAGE"], false, CForumMessage::GetMessagePage($MID, $GLOBALS["FORUM_MESSAGES_PER_PAGE"], $USER->GetUserGroupArray()));
} else {
$db_Message->NavStart($GLOBALS["FORUM_MESSAGES_PER_PAGE"], false);
}
$UserInfo = array();
$arCurrUser = array();
$arCurrUser["Rank"] = CForumUser::GetUserRank(IntVal($USER->GetParam("USER_ID")));
$arCurrUser["bCanUserDeleteMessages"] = CForumTopic::CanUserDeleteTopicMessage($TID, $USER->GetUserGroupArray(), $USER->GetID());
$arCurrUser["Perms"] = ForumCurrUserPermissions($FID);
$parser = new textParser(LANGUAGE_ID);
$arAllow = array("HTML" => $arForum["ALLOW_HTML"], "ANCHOR" => $arForum["ALLOW_ANCHOR"], "BIU" => $arForum["ALLOW_BIU"], "IMG" => $arForum["ALLOW_IMG"], "LIST" => $arForum["ALLOW_LIST"], "QUOTE" => $arForum["ALLOW_QUOTE"], "CODE" => $arForum["ALLOW_CODE"], "FONT" => $arForum["ALLOW_FONT"], "SMILES" => $arForum["ALLOW_SMILES"], "UPLOAD" => $arForum["ALLOW_UPLOAD"], "NL2BR" => $arForum["ALLOW_NL2BR"]);
?>
<table width="100%" border="0">
<tr>
<td align="left"><?php
echo $db_Message->NavPrint(GetMessage("FR_MESS"));
?>
</td>
<?php
if (CForumTopic::CanUserAddTopic($FID, $USER->GetUserGroupArray(), $USER->GetID())) {
?>
<form action='new_topic.php' method='GET'><td align='right'>
<input type='hidden' name='FID' value='<?php