本文整理汇总了PHP中post::totalHits方法的典型用法代码示例。如果您正苦于以下问题:PHP post::totalHits方法的具体用法?PHP post::totalHits怎么用?PHP post::totalHits使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类post
的用法示例。
在下文中一共展示了post::totalHits方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: post
$link_title = " Short Link: ";
$bitly = "<a href='{$bitly}'>{$bitly}</a>";
}
// update view counts
$get = new post();
$get->hits();
// if the user is a registered user update hit total count
if (isset($_SESSION['reguser'])) {
$regbool = $_SESSION['reguser'];
} else {
$regbool = 0;
}
if ($regbool == "1") {
// update the total hit count
$get = new post();
$get->totalHits();
// test
$get = new post();
$uid = $get->getuid($posters_name);
// update the post with
$get = new post();
$get->updateUsrhits($uid);
}
$fdate = date('F j, Y', strtotime($post_date));
// switch on expiration
switch ($post_exp) {
case "0":
$expires = "never";
break;
case "1":
$expires = "10 mins";