protpdel.php 478 B

123456789101112131415
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $userid=returnuserid($_SESSION[SHOPUSER]);
  5. $id=intval($_GET[id]);
  6. if(!is_numeric($id)){exit;}
  7. while1("*","yjcode_tp where userid=".$userid." and id=".$id);if($row1=mysql_fetch_array($res1)){
  8. if(!empty($row1[tp])){
  9. delFile("../".str_replace(".","-1.",$row1[tp]));
  10. delFile("../".str_replace(".","-2.",$row1[tp]));
  11. delFile("../".$row1[tp]);
  12. }
  13. deletetable("yjcode_tp where id=".$id);
  14. }
  15. ?>