99 and id=".$id);if(!$row=mysqli_fetch_array($res)){php_toheader("../");} $sqlsell="select * from yjcode_user where id=".$row[userid];mysqli_set_charset($conn,"utf8");$ressell=mysqli_query($conn,$sqlsell); if(!$rowsell=mysqli_fetch_array($ressell)){php_toheader("../");} $nuid=returnuserid($_SESSION["SHOPUSER"]); if($row[userid]!=$nuid){ if(($row[ifxj]==1 || $row[zt]!=0)){php_toheader("noproview".$id.".html");} } $txtmb=returnjgdw($row[txtmb],"","default"); $_SESSION["tzURL"]=weburl.$rowcontrol[prodir]."/view".$id.".html"; $nowmoney=returnyhmoney($row[yhxs],$row[money2],$row[money3],$sj,$row[yhsj1],$row[yhsj2],$row[id]); $ty1name=returntype(1,$row[ty1id]); $nch=""; if(isset($_COOKIE['prohistoy'])){ $nch=$_COOKIE['prohistoy']; if(check_in($row[id]."xcf",$nch)){$nch=str_replace($row[id]."xcf","",$nch);} $a=preg_split("/xcf/",$nch); if(count($a)>6){$ni=6;}else{$ni=count($a);} $nch=""; for($i=0;$i<=$ni;$i++){ $nch=$nch.$a[$i]."xcf"; } } $Month = 864000 + time(); setcookie(prohistoy,$row[id]."xcf".$nch, $Month,'/'); $nch=$_COOKIE['prohistoy']; ?> "> "> <?=$row[tit]?> - <?=webname?>