include("../config/conn.php"); include("../config/function.php"); require("../config/tpclass.php"); sesCheck(); $sj=date("Y-m-d H:i:s"); $bh=returndeldian($_GET[bh]); $id=intval($_GET[id]); $userid=returnuserid($_SESSION[SHOPUSER]); while0("*","yjcode_server where userid=".$userid." and bh='".$bh."'");if(!$row=mysql_fetch_array($res)){php_toheader("serverlist.php");} $tit=$row[tit]; $ty1id=intval($_GET[ty1id]); while0("*","yjcode_servertaocan where userid=".$userid." and id=".$ty1id);$row=mysql_fetch_array($res); $ty1tit=$row[tit1]; while0("*","yjcode_servertaocan where id=".$id);if(!$row=mysql_fetch_array($res)){php_toheader("servertaocanlist.php?bh=".$bh);} //函数开始 if($_GET[control]=="update"){ zwzr(); if(panduan("*","yjcode_servertaocan where userid=".$userid." and admin=2 and tit1='".sqlzhuru($_POST[t0])."' and tit2='".sqlzhuru($_POST[t1])."' and serverbh='".$bh."' and id<>".$id)==1){Audit_alert("该套餐说明已存在!","servertaocan2.php?action=update&id=".$id."&ty1id=".$ty1id."&bh=".$bh);} updatetable("yjcode_servertaocan","tit2='".sqlzhuru($_POST[t1])."', xh=".sqlzhuru($_POST[t2]).", money1=".sqlzhuru($_POST[tmoney1]).", money2=".sqlzhuru($_POST[tmoney2]).", zt=0 where id=".$_GET[id]); uploadtpnodata(2,"upload/".$row[userid]."/".$row[serverbh]."/","tc".$id.".png","allpic",254,167,254,167,"no"); php_toheader("servertaocan2.php?t=suc&id=".$id."&ty1id=".$ty1id."&bh=".$bh); }elseif($_GET[control]=="del"){ zwzr(); delFile("../upload/".$row[userid]."/".$row[serverbh]."/tc".$row[id].".png"); php_toheader("servertaocan2.php?t=suc&id=".$id."&ty1id=".$ty1id."&bh=".$bh); } //函数结果 ?>