include("../config/conn.php"); include("../config/function.php"); sesCheck(); $zt=$_GET[zt]; if($_GET[control]=="sd"){ $userid=returnuserid($_SESSION[SHOPUSER]); while1("*","yjcode_ad where zt=1 and userid=".$userid." and id=".$_GET[id]);if(!$row1=mysql_fetch_array($res1)){php_toheader("adlxlist.php?zt=1");} PointUpdateM($userid,$row1[money1]); PointIntoM($userid,"撤消自助广告位".$row1[adbh],$row1[money1]); if($row1[type1]=="图片" || $row1[type1]=="动画"){ delFile("../ad/".$row1[bh].".".$row1[jpggif]); delFile("../ad/".$row1[bh]."-99.".$row1[jpggif]); } deletetable("yjcode_ad where id=".$_GET[id]); php_toheader("adlxlist.php?zt=1&t=suc"); } ?>