favproInto.php 637 B

1234567891011121314
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $bh=$_GET[bh];
  5. if(empty($bh)){exit;}
  6. if(empty($_SESSION["SHOPUSER"])){echo "err1";exit;}
  7. while1("bh,userid","yjcode_pro where bh='".$bh."' and zt=0 and ifxj=0");if(!$row1=mysql_fetch_array($res1)){exit;}
  8. $userid=returnuserid($_SESSION["SHOPUSER"]);
  9. if($userid==$row1[userid]){echo "err2";exit;}
  10. if(panduan("probh,userid","yjcode_profav where probh='".$bh."' and userid=".$userid)==1){echo "ok";exit;}
  11. $sj=date("Y-m-d H:i:s");
  12. intotable("yjcode_profav","probh,userid,selluserid,sj","'".$bh."',".$userid.",".$row1[userid].",'".$sj."'");
  13. echo "ok";exit;
  14. ?>