servertaocan2lx.php 823 B

12345678910111213141516
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $sj=date("Y-m-d H:i:s");
  6. $bh=$_GET[bh];
  7. $ty1id=intval($_GET[ty1id]);
  8. $userid=returnuserid($_SESSION[SHOPUSER]);
  9. while0("*","yjcode_server where userid=".$userid." and bh='".$bh."'");if(!$row=mysql_fetch_array($res)){php_toheader("serverlist.php");}
  10. while1("*","yjcode_servertaocan where userid=".$userid." and id=".$ty1id);if(!$row1=mysql_fetch_array($res1)){php_toheader("serverlist.php");}
  11. $nxh=returnxh("yjcode_servertaocan"," and admin=2 and tit1='".$row1[tit1]."' and serverbh='".$bh."'");
  12. intotable("yjcode_servertaocan","tit1,xh,admin,serverbh,userid,zt","'".$row1[tit1]."',".$nxh.",2,'".$bh."',".$row[userid].",99");
  13. $id=mysql_insert_id();
  14. php_toheader("servertaocan2.php?ty1id=".$ty1id."&bh=".$bh."&id=".$id);
  15. ?>