From c413b84ce7011a26419637defe1cd2df476c9c96 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 6 Oct 2019 02:13:06 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 8027ab6..24c975b 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -528,6 +528,21 @@ if(!check_function_exists("get_web_xml")) { } } +if(!check_function_exists("get_web_cspt")) { + function get_web_cspt($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) { + $result = false; + + $response = get_web_page($url, $method, $data, $proxy, $ua, $ct_out, $t_out); + if($response['size'] > 0) { + if(loadHelper("casplit.format")) { + $result = catsplit_decode($response['content']); + } + } + + return $result; + } +} + if(!check_function_exists("get_parsed_json")) { function get_parsed_json($raw, $options=array()) { $result = false; @@ -596,7 +611,7 @@ if(!check_function_exists("get_webproxy_url")) { if(!check_function_exists("get_web_user_agent")) { function get_web_user_agent($ua="") { if(empty($ua)) { - $ua = "ReasonableFramework/1.4-dev (https://github.com/gnh1201/reasonableframework)"; + $ua = "ReasonableFramework/1.6-dev (https://github.com/gnh1201/reasonableframework)"; } else { $ua = make_safe_argument($ua); }