shopmenu2lx.php 744 B

12345678910111213141516171819
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $userid=returnuserid($_SESSION[SHOPUSER]);
  6. $sj=date("Y-m-d H:i:s");
  7. $bh=time()."p".$userid;
  8. $id1=$_GET[id1];
  9. deletetable("yjcode_shopmenu where userid=".$userid." and zt=99");
  10. while1("*","yjcode_shopmenu where id=".$id1." and userid=".$userid." and admin=1");
  11. if(!$row1=mysql_fetch_array($res1)){Audit_alert("来源错误","shopmenulist.php","parent.");}
  12. $nxh=returnxh("yjcode_shopmenu"," and userid=".$userid." and admin=2 and tit1='".$row1[tit1]."' and zt=0");
  13. intotable("yjcode_shopmenu","bh,userid,tit1,targ,admin,xh,sj,zt","'".$bh."',".$userid.",'".$row1[tit1]."',1,2,".$nxh.",'".$sj."',99");
  14. php_toheader("shopmenu2.php?bh=".$bh);
  15. ?>