$storeCd } else { $ip = "125.156.68.149"; $port = "5212"; // $strcd = $params["300"]; } include "./../../comon/dbconn_sm.inc"; //=========================================================================== $qr = "SELECT AENABLE, ADESC, APVER FROM LOGIS_APP WHERE APCODE = 'A01'"; $ret = mssql_query($qr, $dbconn); $cnt = mssql_num_rows($ret); $arr = array(); if ($cnt > 0) { $arr["RET"] = "OK"; $arr["ERMSG"]=""; } else { $arr["RET"] = "NOAPP"; $arr["ERMSG"]=urlencode("앱 정보가 없습니다."); goto go_finish_return; } mssql_free_result($ret); $qr = "SELECT AENABLE, USER_NAME, MAKERNAME, PERM1, PERM2, PERM3, PERM4, PERM5, STAG1, STAG2, STAG3 ". "FROM MOBUSER_LOGIS WHERE PHONENUM = '$pnum' "; $ret = mssql_query($qr, $dbconn); $cnt = mssql_num_rows($ret); if ($cnt > 0) { $arr["RET"] = "OK"; $arr["ROWCNT"] = $cnt; $arr["ERMSG"]=""; $row = mssql_fetch_array( $ret ); if ($row["AENABLE"] == "1") { $arr["USER_NAME"]=urlencode($row["USER_NAME"]); $arr["MAKERNAME"]=urlencode($row["MAKERNAME"]); $arr["PERM1"]=$row["PERM1"]; $arr["PERM2"]=$row["PERM2"]; $arr["PERM3"]=$row["PERM3"]; $arr["PERM4"]=$row["PERM4"]; $arr["PERM5"]=$row["PERM5"]; $arr["STAG1"]=urlencode($row["STAG1"]); $arr["STAG2"]=urlencode($row["STAG2"]); $arr["STAG3"]=urlencode($row["STAG3"]); } else { $arr["RET"] = "DISABLE_USER"; $arr["ERMSG"]=urlencode("사용 정지된 사용자입니다."); goto go_finish_return; } } else { $arr["RET"] = "NODATA"; $arr["ROWCNT"] = 0; $arr["ERMSG"]=urlencode("사용자 등록을 하세요. -SM조합으로 문의하세요."); goto go_finish_return; } go_finish_return: $retData = json_encode($arr); echo $retData; mssql_free_result($ret); mssql_close(); ?>