4 require_once
'./Services/Http/exceptions/class.ilProxyException.php';
93 if(null === self::$_instance)
95 self::$_instance =
new self();
112 $this->
setHost($ilSetting->get(
'proxy_host'));
113 $this->
setPort($ilSetting->get(
'proxy_port'));
114 $this->
isActive((
bool)$ilSetting->get(
'proxy_status'));
208 $ilSetting->set(
'proxy_host', $this->
getHost());
209 $ilSetting->set(
'proxy_port', $this->
getPort());
210 $ilSetting->set(
'proxy_status', (
int)$this->
isActive());
226 require_once
'Services/PEAR/lib/Net/Socket.php';
231 if(!is_bool($response))
234 throw new ilProxyException(strlen($response) ? $response : $lng->txt(
'proxy_not_connectable'));