示例#1
0
    $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";