Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltman.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltman.eemo.co.kr/public_html/www/join_farm_man_detail_do.php
<? session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=utf-8"); include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } $arr_rst=array(); $is_rs=RS("select * from member where id='$user_id' "); if($is_rs[no]) { $arr_rst['rst']='user_double'; echo json_encode($arr_rst); exit; } $vv2=str_replace("-","",$farm_code); $is_rs2=RS("select * from farm where REPLACE(farm_code,'-','')='$vv2' "); if(!$is_rs2[no]) { $arr_rst['rst']='nocode'; echo json_encode($arr_rst); exit; } $query="insert into member set farm_no='{$is_rs2[no]}', id='$user_id', pass='$user_pass', name='$user_name', cel='$user_cel', email='$email', addr='$user_addr', addr2='$user_addr2', mtype='$mtype', is_auth='0', agree_chk_ads='$agree_chk_ads', agree_chk_email='$agree_chk_email', regdate=now() "; mysql_query($query) or die(mysql_error()); $arr_rst['rst']='1'; $arr_rst['code']=$is_rs2[farm_code]; echo json_encode($arr_rst); ?>