mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@256 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
de279750ba
commit
b675f26ac4
10 changed files with 151 additions and 5 deletions
|
|
@ -18,12 +18,19 @@
|
|||
* 동이름을 입력받아서 지정된 서버에 우편번호 목록을 요청한다
|
||||
**/
|
||||
function getZipCodeList() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('krzip');
|
||||
if($args->krzip_server_hostname) $this->hostname = $args->krzip_server_hostname;
|
||||
if($args->krzip_server_port) $this->port = $args->krzip_server_port;
|
||||
if($args->krzip_server_query) $this->query = $args->krzip_server_query;
|
||||
|
||||
// 동네 이름을 받음
|
||||
$addr = trim(Context::get('addr'));
|
||||
if(!$addr) return new Object(-1,'msg_not_exists_addr');
|
||||
|
||||
// 지정된 서버에 요청을 시도한다
|
||||
$query_string = sprintf($this->query,urlencode($addr));
|
||||
$query_string = $this->query.urlencode($addr);
|
||||
|
||||
$fp = fsockopen($this->hostname, $this->port, $errno, $errstr);
|
||||
if(!$fp) return new Object(-1, 'msg_fail_to_socket_open');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue