Example #1
0
require_once '../../../include/bbs_function.php';
$public_function = new public_function();
$bbs_function = new bbs_function();
$blog_userid = $_SESSION['UID'];
$blog_type = $_SESSION['UTYPE'];
$fatieid = str_replace(" ", "", $_GET['fatieid']);
$types = str_replace(" ", "", $_GET['types']);
if ($types == "del") {
    $bbs_function->delTieZi($fatieid);
    //if($bbs_function->delTieZi($fatieid)>0){
    echo "<script>location.href='../shyule_bbs_gl.php'</script>";
    //}else{
    //echo "<script>alert('ɾ³ýʧ°Ü.');location.href='../shyule_bbs_gl.php'</script>";
    //}
} else {
    if ($types == "show") {
        if ($bbs_function->showTieZi($fatieid) > 0) {
            echo "<script>location.href='../shyule_bbs_gl.php'</script>";
        } else {
            echo "<script>location.href='../shyule_bbs_gl.php'</script>";
        }
    } else {
        if ($types == "noshow") {
            if ($bbs_function->noShowTieZi($fatieid) > 0) {
                echo "<script>location.href='../shyule_bbs_gl.php'</script>";
            } else {
                echo "<script>location.href='../shyule_bbs_gl.php'</script>";
            }
        }
    }
}