<?php //项目待审管理列表 require_once '../../include/conmysql.php'; require_once '../../include/public_function.php'; require_once '../../include/bbs_function.php'; $blog_userid = $_SESSION['UID']; $blog_usertype = $_SESSION['UTYPE']; $public_function = new public_function(); $bbs_function = new bbs_function(); if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) { echo "<script>location.href='../../admin.php'</script>"; } //查询帖子分类 $bbs_type_result = mysql_query("select * from blog_bbs_type limit 8"); $bbs_type_num = mysql_num_rows($bbs_type_result); $page = str_replace(" ", "", $_POST['page']) ? str_replace(" ", "", $_POST['page']) : str_replace(" ", "", $_GET['page']); //查询条件 $keyword = str_replace(" ", "", $_GET['keyword']) ? str_replace(" ", "", $_GET['keyword']) : str_replace(" ", "", $_POST['keyword']); $sbbs_type = str_replace(" ", "", $_GET['sbbs_type']) ? str_replace(" ", "", $_GET['sbbs_type']) : str_replace(" ", "", $_POST['sbbs_type']); if ($sbbs_type == "") { $sbbs_type_sql = ""; } else { $sbbs_type_sql = "and bbs_type='{$sbbs_type}'"; } if ($keyword == "") { $keyword_sql = ""; } else { $keyword_sql = "and (bbs_title like '%{$keyword}%' or bbs_content like '%{$keyword}%' or bbs_type in(select ids from blog_bbs_type where bbs_type like '%{$keyword}%') or bbs_author in(select user_id from blog_user where user_name like '%{$keyword}%'))"; } $select_sql = "select * from blog_bbs_content where pids<>0 and bbs_author='{$blog_userid}' and pids in(select ids from blog_bbs_content where isedshow=0 " . $sbbs_type_sql . "" . $keyword_sql . ") order by bbs_utime desc";
<?php //项目待审管理列表 require_once '../../include/conmysql.php'; require_once '../../include/public_function.php'; require_once '../../include/bbs_function.php'; $blog_userid = $_SESSION['UID']; $blog_usertype = $_SESSION['UTYPE']; $public_function = new public_function(); $bbs_function = new bbs_function(); if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) { echo "<script>location.href='../../admin.php'</script>"; } $fatieid = str_replace(" ", "", $_GET['fatieid']); $pfatieid = str_replace(" ", "", $_GET['pfatieid']); $types = str_replace(" ", "", $_GET['types']); if ($_GET['readcount'] == "yes") { $bbs_function->createTieZiReader($fatieid, $blog_userid, CURRENT_TIME); } //echo $fatieid;die(); $page = str_replace(" ", "", $_POST['page']) ? str_replace(" ", "", $_POST['page']) : str_replace(" ", "", $_GET['page']); //查询条件 $select_result = mysql_query("select * from blog_bbs_content where ids='{$fatieid}'"); $select_array = mysql_fetch_array($select_result); //查询帖子分类 $bbs_typeid = $select_array['bbs_type']; $bbs_type_result = mysql_query("select * from blog_bbs_type where ids='{$bbs_typeid}'"); $bbs_type_array = mysql_fetch_array($bbs_type_result); //查询跟帖 $select_sql1 = "select * from blog_bbs_content where bbs_floor='{$fatieid}' order by bbs_utime desc"; $select_result1 = mysql_query($select_sql1);
<?php //项目待审管理列表 require_once '../../include/conmysql.php'; require_once '../../include/public_function.php'; require_once '../../include/bbs_function.php'; $blog_userid = $_SESSION['UID']; $blog_usertype = $_SESSION['UTYPE']; $public_function = new public_function(); $bbs_function = new bbs_function(); if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) { echo "<script>location.href='../../admin.php'</script>"; } //查询帖子分类 $bbs_type_result = mysql_query("select * from blog_bbs_type limit 8"); $bbs_type_num = mysql_num_rows($bbs_type_result); $page = str_replace(" ", "", $_POST['page']) ? str_replace(" ", "", $_POST['page']) : str_replace(" ", "", $_GET['page']); //查询条件 $keyword = str_replace(" ", "", $_GET['keyword']) ? str_replace(" ", "", $_GET['keyword']) : str_replace(" ", "", $_POST['keyword']); $sbbs_type = str_replace(" ", "", $_GET['sbbs_type']) ? str_replace(" ", "", $_GET['sbbs_type']) : str_replace(" ", "", $_POST['sbbs_type']); if ($sbbs_type == "") { $sbbs_type_sql = ""; } else { $sbbs_type_sql = "and bbs_type='{$sbbs_type}'"; } if ($keyword == "") { $keyword_sql = ""; } else { $keyword_sql = "and (bbs_title like '%{$keyword}%' or bbs_content like '%{$keyword}%' or bbs_type in(select ids from blog_bbs_type where bbs_type like '%{$keyword}%') or bbs_author in(select user_id from blog_user where user_name like '%{$keyword}%'))"; } $select_sql = "select * from blog_bbs_content where isedshow=0 and pids=0 and bbs_author='{$blog_userid}' " . $sbbs_type_sql . "" . $keyword_sql . " order by bbs_utime desc";
<?php require_once '../../include/conmysql.php'; require_once '../../include/public_function.php'; require_once '../../include/bbs_function.php'; $bbs_function = new bbs_function(); $public_function = new public_function(); $blog_userid = $_SESSION['UID']; $blog_type = $_SESSION['UTYPE']; $fatieid = str_replace(" ", "", $_GET['fatieid']); $jbid = str_replace(" ", "", $_GET['jbid']); $bbs_tiezi_array = $bbs_function->getTiezi($jbid); if ($public_function->getbgbyuser($blog_userid) != "") { $bg = $public_function->getbgbyuser($blog_userid); } else { if ($public_function->getbgbysys() != "") { $bg = $public_function->getbgbysys(); } else { $bg = "images/bg/bg3.jpg"; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/> <title>天网论坛_发帖</title> <link rel="stylesheet" href="../../css/public.css" /> </head> <body>
<?php require_once '../../../include/conmysql.php'; require_once '../../../include/public_function.php'; require_once '../../../include/bbs_function.php'; $public_function = new public_function(); $bbs_function = new bbs_function(); $blog_userid = $_SESSION['UID']; $blog_type = $_SESSION['UTYPE']; $jbbbsid = str_replace(" ", "", $_POST['jbid']); $jbdx = str_replace(" ", "", $_POST['jbdx']); $jbtype = str_replace(" ", "", $_POST['jbtype']); $jbtime = CURRENT_TIME; if ($bbs_function->juBao($jbbbsid, $jbtime, $blog_userid, $jbdx, $jbtype) > 0) { echo "<script>alert('举报成功.');location.href='../shyule_index.php'</script>"; } else { echo "<script>alert('举报失败.');location.href='../shyule_index.php'</script>"; }
<?php //项目待审管理列表 require_once '../../include/conmysql.php'; require_once '../../include/public_function.php'; require_once '../../include/bbs_function.php'; $blog_userid = $_SESSION['UID']; $blog_usertype = $_SESSION['UTYPE']; $public_function = new public_function(); $bbs_function = new bbs_function(); if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) { echo "<script>location.href='../../admin.php'</script>"; } //查询帖子分类 $bbs_type_result = mysql_query("select * from blog_bbs_type limit 8"); $bbs_type_num = mysql_num_rows($bbs_type_result); $page = str_replace(" ", "", $_POST['page']) ? str_replace(" ", "", $_POST['page']) : str_replace(" ", "", $_GET['page']); //查询条件 $keyword = str_replace(" ", "", $_GET['keyword']) ? str_replace(" ", "", $_GET['keyword']) : str_replace(" ", "", $_POST['keyword']); $sbbs_type = str_replace(" ", "", $_GET['sbbs_type']) ? str_replace(" ", "", $_GET['sbbs_type']) : str_replace(" ", "", $_POST['sbbs_type']); if ($sbbs_type == "") { $sbbs_type_sql = ""; } else { $sbbs_type_sql = "and bbs_type='{$sbbs_type}'"; } if ($keyword == "") { $keyword_sql = ""; } else { $keyword_sql = "and (bbs_title like '%{$keyword}%' or bbs_content like '%{$keyword}%' or bbs_type in(select ids from blog_bbs_type where bbs_type like '%{$keyword}%') or bbs_author in(select user_id from blog_user where user_name like '%{$keyword}%'))"; } $select_sql = "select * from blog_bbs_content_shoucang where scuser='******' and bbsid in(select ids from blog_bbs_content where isedshow=0 " . $sbbs_type_sql . "" . $keyword_sql . ") order by sctime desc";
<?php //项目待审管理列表 require_once '../../include/conmysql.php'; require_once '../../include/public_function.php'; require_once '../../include/bbs_function.php'; $blog_userid = $_SESSION['UID']; $blog_usertype = $_SESSION['UTYPE']; $public_function = new public_function(); $bbs_function = new bbs_function(); if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) { echo "<script>location.href='../../admin.php'</script>"; } //查询帖子分类 $bbs_type_result = mysql_query("select * from blog_bbs_type limit 8"); $bbs_type_num = mysql_num_rows($bbs_type_result); $page = str_replace(" ", "", $_POST['page']) ? str_replace(" ", "", $_POST['page']) : str_replace(" ", "", $_GET['page']); //查询条件 $keyword = str_replace(" ", "", $_GET['keyword']) ? str_replace(" ", "", $_GET['keyword']) : str_replace(" ", "", $_POST['keyword']); $sbbs_type = str_replace(" ", "", $_GET['sbbs_type']) ? str_replace(" ", "", $_GET['sbbs_type']) : str_replace(" ", "", $_POST['sbbs_type']); $shstate = str_replace(" ", "", $_GET['shstate']) ? str_replace(" ", "", $_GET['shstate']) : str_replace(" ", "", $_POST['shstate']); if ($sbbs_type == "") { $sbbs_type_sql = ""; } else { $sbbs_type_sql = "and bbs_type='{$sbbs_type}'"; } if ($shstate == "" || $shstate == "all") { $shstate_sql = ""; } else { if ($shstate == "no") { $shstate_sql = "and isedshow=1";
<?php require_once '../../../include/conmysql.php'; require_once '../../../include/public_function.php'; 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>";
<?php require_once '../../../include/conmysql.php'; require_once '../../../include/public_function.php'; 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']); $fatiepage = 1; $result = $bbs_function->shoucangTieZi($fatieid, $blog_userid, CURRENT_TIME); if ($result == "no") { echo "<script>alert('已经收藏该帖子,不能重复收藏.');location.href='../shyule_bbs_scan.php?fatieid=" . $fatieid . "&page=" . $fatiepage . "'</script>"; } else { if ($result == "no1") { echo "<script>alert('不能收藏自己所发的帖子.');location.href='../shyule_bbs_scan.php?fatieid=" . $fatieid . "&page=" . $fatiepage . "'</script>"; } else { if ($result == "no2") { echo "<script>location.href='../shyule_bbs_scan.php?fatieid=" . $fatieid . "&page=" . $fatiepage . "'</script>"; } else { echo "<script>location.href='../shyule_bbs_scan.php?fatieid=" . $fatieid . "&page=" . $fatiepage . "'</script>"; } } }