public function getDIDArea($CountryCode, $VRatingFrom = DIDX_MIN_RATING, $VRatingTo = 10, $vendors = "", $ratefrom = -1, $rateto = -1, $CountryID = -1) { $ret = true; if (isset($_SESSION["country-{$CountryCode}-{$CountryID}-{$VRatingFrom}"])) { return $_SESSION["country-{$CountryCode}-{$CountryID}-{$VRatingFrom}"]; } $client = new SoapClient(null, array('location' => "https://" . DIDX_SITE . "/cgi-bin/WebGetDIDAreasServer.cgi", 'connection_timeout' => 5, 'trace' => 1, 'uri' => "http://" . DIDX_SITE . "/GetList")); try { $ret = $client->getDIDArea(DIDX_ID, DIDX_PASS, $CountryCode, $VRatingFrom, $VRatingTo, $vendors, $ratefrom, $rateto, $CountryID); $ret = $ret['Array']; $_SESSION["country-{$CountryCode}-{$CountryID}-{$VRatingFrom}"] = $ret; } catch (SoapFault $exception) { $ret = false; } catch (Exception $e) { $ret = false; } return $ret; }