"" && is_numeric($_GET[id])){
unset($_SESSION[pcucatid]);
}
if(isset($_SESSION[pcucatid]) )
{
$whcase[]=" `catid` = ".$_SESSION[pcucatid];
}
else
{
}
if(isset($whcase))
{
$where=" and ".join(" and ",$whcase);
}
if($_GET[id] <>"" && is_numeric($_GET[id])){
$erm="Not available!!";
$sql= "Select {$field} from `{$tbname}` where `active` = 1 and `postid` = ".$_GET[id]." {$where} LIMIT 1";
}
if($_GET[nextid] <>"" && is_numeric($_GET[nextid]))
{
//$erm="Not available!!";
$sql="Select {$field} from `{$tbname}` where `active` = 1 and `postid` > ".$_GET[nextid]." {$where} ORDER by `postid` ASC LIMIT 1";
}
if($_GET[Previd] <>"" && is_numeric($_GET[Previd]))
{
//$erm="no Previous topic!!";
$sql="Select {$field} from `{$tbname}` where `active` = 1 and `postid` < ".$_GET[Previd]." {$where} ORDER by `postid` DESC LIMIT 1";
}
$showadsense=0;
if($sql<>"")
{
$rs = mysql_query($sql);
if(mysql_num_rows($rs) <1)
{
if($_GET[nextid] <>"" && is_numeric($_GET[nextid]))
{
$rs = mysql_query("Select {$field} from `{$tbname}` where `active` = 1 {$where} ORDER by `postid` ASC LIMIT 1");
}
if($_GET[Previd] <>"" && is_numeric($_GET[Previd]))
{
$rs = mysql_query("Select {$field} from `{$tbname}` where `active` = 1 {$where} ORDER by `postid` DESC LIMIT 1");
}
}
if($row = @mysql_fetch_assoc($rs))
{
if($_SESSION["page"] <> $row["postid"])
{
$_SESSION["page"]=$row["postid"];
mysql_unbuffered_query("update `{$tbname}` set `Views` = `Views` + 1 where `postid` = ".$row["postid"]." LIMIT 1 ");
}
if(!isset($_SESSION["_referal_id_"]))
{
$_SESSION["_referal_id_"]=$row["userid"]; //for new member
}
if($row["catid"]<>999)
{
$referalid=getreferalid($row["userid"]);//this post referalid
if($adsenserow=getuser_adsenseid($row["userid"]))
{
$uadsense=$adsenserow['adsenseid'];
$uchannelcode=$adsenserow['channelcode'];
$showadsense=1;
}
credit_system($row["userid"],$referalid,$uadsense,$uchannelcode);
}
}
else
{
errmsg($erm,"JavaScript:history.back(0)");
}
}
else
{
errmsg("Not available!!","JavaScript:history.back(0)");
}
$zoneid=2;
$catid=$row[catid];
$pid = $row["postid"];
$_SESSION[pcucatid] = $catid;
require_once("./include/catlist/catlist_".$zoneid.".php");
if(is_array($__catlist[$zoneid]))
{
$catlink="".$__catlist[$zoneid][$catid][name]."";
}
if($adsenseid=="")
{
$showadsense=0;
}
else
{
$showadsense=1;
}
?>
-
|
|
- |
|
if($i % 3 == 2) echo "
";
$i++;
}
?> |
|
|
|
|
-
|
"enu"){?>
|
|
'".$row['postid']."' and `post_topic` <>'' order by `postid` DESC LIMIT 8");
while($uservrow = @mysql_fetch_assoc($uservrs))
{
?>
}
?>
|
|
include("reply_photo_new.php"); ?> |
|
if(isset($_SESSION['username']))
{
?>
}
?> |
Popular Searches
handlePageHit();
$s->showCloud();
?> |
|
|
|
|