本文整理匯總了PHP中Comments::postComment方法的典型用法代碼示例。如果您正苦於以下問題:PHP Comments::postComment方法的具體用法?PHP Comments::postComment怎麽用?PHP Comments::postComment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Comments
的用法示例。
在下文中一共展示了Comments::postComment方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Comments
$check = $obj->login($_POST);
break;
case 'verify':
$check = $obj->verifyUser($_POST);
break;
default:
$check = false;
break;
}
$header = $check === true ? 'Location: /admin/' : "Location: /{$obj->url0}/error/";
}
}
} else {
if ($_POST['action'] == 'cmnt_post') {
$cmnt = new Comments();
$header = $cmnt->postComment();
} else {
if ($_GET['action'] == 'cmnt_delete') {
$cmnt = new Comments();
$header = $cmnt->deleteComment($_GET['bid'], $_GET['cmntid']);
} else {
if ($_GET['action'] == 'logout') {
$admin = new Admin();
$check = $admin->logout();
$header = $check === true ? 'Location: /' : 'Location: /admin/error/';
} else {
$header = "Location: /";
}
}
}
}
示例2: post_action
public function post_action($id, $type, $backPage)
{
Comments::postComment($id, $type, $backPage);
}
示例3: strftime
<?php
include_once "topmenu.php";
include_once "properties/serverproperties.php";
include_once 'classes/Comments.php';
$isAjaxPage = true;
$jsExec = '';
$receiverID = $_POST['receiver_id'];
$senderID = $_POST['sender_id'];
$content = $_POST['content'];
$time = strftime('%c');
if (Comments::postComment($senderID, $receiverID, $content, $time)) {
} else {
}
?>
<div style="display: none;">
<div id="inline1" style=""></div>
</div>
<a class="inlinecontent abshide" href="#inline1"> </a>