本文整理汇总了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>