當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CForumTopic::CanUserDeleteTopicMessage方法代碼示例

本文整理匯總了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 
開發者ID:,項目名稱:,代碼行數:31,代碼來源:


注:本文中的CForumTopic::CanUserDeleteTopicMessage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。