commit
ea7a6ff2dd
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
@date_default_timezone_set('Asia/Seoul');
|
@date_default_timezone_set('Asia/Seoul');
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
define("VERSION", "1.2.0");
|
define("VERSION", "1.2.0p");
|
||||||
|
|
||||||
$debug = False;
|
$debug = False;
|
||||||
$ua = "User-Agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', accept: '*/*'";
|
$ua = "User-Agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', accept: '*/*'";
|
||||||
@ -14,8 +14,8 @@ define("SOCKET_ERROR", "소켓 파일을 찾을 수 없습니다.");
|
|||||||
define("JSON_FILE_ERROR", "json 파일이 없습니다.");
|
define("JSON_FILE_ERROR", "json 파일이 없습니다.");
|
||||||
define("JSON_SYNTAX_ERROR", "json 파일 형식이 잘못되었습니다.");
|
define("JSON_SYNTAX_ERROR", "json 파일 형식이 잘못되었습니다.");
|
||||||
|
|
||||||
if(version_compare(PHP_VERSION, '5.6.3','<')) :
|
if(version_compare(PHP_VERSION, '5.5.9','<')) :
|
||||||
printError("PHP 버전은 5.6.3 이상이어야 합니다.");
|
printError("PHP 버전은 5.5.9 이상이어야 합니다.");
|
||||||
printError("현재 PHP 버전은 ".PHP_VERSION." 입니다.");
|
printError("현재 PHP 버전은 ".PHP_VERSION." 입니다.");
|
||||||
exit;
|
exit;
|
||||||
endif;
|
endif;
|
||||||
@ -1314,6 +1314,7 @@ function getWeb($url, $params, $method) {
|
|||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
function printLog($string) {
|
function printLog($string) {
|
||||||
|
header("Content-Type: text/plain; charset=utf-8");
|
||||||
print($string."\n");
|
print($string."\n");
|
||||||
}
|
}
|
||||||
function printError($string) {
|
function printError($string) {
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
<?php
|
<?php
|
||||||
@date_default_timezone_set('Asia/Seoul');
|
@date_default_timezone_set('Asia/Seoul');
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
if (PHP_SAPI != "cli") header("Content-Type: application/xml; charset=utf-8");
|
define("VERSION", "1.2.0p");
|
||||||
define("VERSION", "1.2.0");
|
|
||||||
|
|
||||||
$debug = False;
|
$debug = False;
|
||||||
$ua = "User-Agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', accept: '*/*'";
|
$ua = "User-Agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', accept: '*/*'";
|
||||||
@ -16,8 +15,8 @@ define("SOCKET_ERROR", "소켓 파일을 찾을 수 없습니다.");
|
|||||||
define("JSON_FILE_ERROR", "json 파일이 없습니다.");
|
define("JSON_FILE_ERROR", "json 파일이 없습니다.");
|
||||||
define("JSON_SYNTAX_ERROR", "json 파일 형식이 잘못되었습니다.");
|
define("JSON_SYNTAX_ERROR", "json 파일 형식이 잘못되었습니다.");
|
||||||
|
|
||||||
if(version_compare(PHP_VERSION, '5.6.3','<')) :
|
if(version_compare(PHP_VERSION, '5.5.9','<')) :
|
||||||
printError("PHP 버전은 5.6.3 이상이어야 합니다.");
|
printError("PHP 버전은 5.5.9 이상이어야 합니다.");
|
||||||
printError("현재 PHP 버전은 ".PHP_VERSION." 입니다.");
|
printError("현재 PHP 버전은 ".PHP_VERSION." 입니다.");
|
||||||
exit;
|
exit;
|
||||||
endif;
|
endif;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user