include("../config/conn.php"); include("../config/function.php"); sesCheck(); if(sqlzhuru($_POST[jvs])=="shop"){ zwzr(); $t1=sqlzhuru($_POST[t1]); if(empty($t1)){Audit_alert("信息不完整,返回重试!","shop.php");} if(panduan("*","yjcode_user where shopname='".$t1."' and id<>".$rowuser[id])==1){Audit_alert("店铺名称已经被其他用户使用,返回重试!","shop.php");} updatetable("yjcode_user"," shopname='".$t1."', seokey='".sqlzhuru($_POST[t2])."', seodes='".sqlzhuru($_POST[s1])."', txt='".sqlzhuru1($_POST[content])."', gzsj='".sqlzhuru($_POST[tgzsj])."', areaid1=".intval($_POST[glocity1]).", areaid2=".intval($_POST[glocity2]).", areaid3=".intval($_POST[glocity3])." where id=".$rowuser[id]); $myweb=trim(sqlzhuru($_POST[tmyweb])); if(!empty($myweb)){ if(panduan("id,myweb","yjcode_user where myweb='".$myweb."' and id<>".$rowuser[id]."")==1){Audit_alert("该自定义网址已经被使用,请更换!","shop.php");} if(!preg_match("/^[_a-zA-Z0-9]*$/",$myweb)){Audit_alert("自定义地址必须为数字或字母!","shop.php");} updatetable("yjcode_user","myweb='".$myweb."' where id=".$rowuser[id]); }else{ updatetable("yjcode_user","myweb='' where id=".$rowuser[id]); } php_toheader("shop.php?t=suc"); } if($rowuser[shopzt]!=2){php_toheader("openshop3.php");} ?>