WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
function droplet_loadWebPage($url, $postdata="") { $agent = WEBSITE_TITLE."_myAgent_1.0.0"; $header[] = "Accept: text/vnd.wap.wml,*.*"; $ch = curl_init($url); if ($ch) { curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); if (isset($postdata) && $postdata != "") { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); } // end if isset $tmp = curl_exec ($ch); curl_close ($ch); } // end if $chreturn $tmp;unset ($tmp);} // droplet_loadWebPage// Benutzung eines OnlineDienstes... IP->LOCAL (db-ip.com)$temp_local["inspect_ip"] = 'http://api.db-ip.com/v2/free/'.$out["ip"];$temp_local["ip2local_info"] = droplet_loadWebPage($temp_local["inspect_ip"]);$temp_local["json_object"] = json_decode($temp_local["ip2local_info"]);if (!isset($temp_local["json_object"]->{'continentCode'})) { $out["kontinent_id"] = ''; $out["kontinent_name"] = ''; $out["land_id"] = ''; $out["land_name"] = ''; $out["bundesland"] = ''; $out["stadt"] = '';} else { $out["kontinent_id"] = $temp_local["json_object"]->{'continentCode'}; $out["kontinent_name"] = $temp_local["json_object"]->{'continentName'}; $out["land_id"] = $temp_local["json_object"]->{'countryCode'}; $out["land_name"] = droplet_german_code2land($out["land_id"]); // $out["land_name"] = $temp_local["json_object"]->{'countryName'}; $out["bundesland"] = $temp_local["json_object"]->{'stateProv'}; $out["stadt"] = $temp_local["json_object"]->{'city'};} // end if issetreturn $out;} // droplet_getUserinformation