* Cleanup variables and . usage

* Fix obvious bug including " with no closing "
This commit is contained in:
Scott Ullrich 2006-05-20 03:47:08 +00:00
parent 65d782d0ba
commit cd8f5ccdab

View File

@ -167,7 +167,7 @@
$server = $this->_dnsServer;
if($this->_dnsPort)
$port = ":" . $this->_dnsPort;
curl_setopt($ch, CURLOPT_URL, $server.$port.'?system=dyndns&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO');
curl_setopt($ch, CURLOPT_URL, $server .$port . '?system=dyndns&hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP.'&wildcard='.$this->_dnsWildcard . '&mx=' . $this->_dnsMX . '&backmx=NO');
$data = curl_exec($ch);
if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch));
curl_close($ch);
@ -247,7 +247,7 @@
$server = $this->_dnsServer;
if($this->_dnsPort)
$port = ":" . $this->_dnsPort;
curl_setopt($ch, CURLOPT_URL, '{$server}{$port}?username='.$this->_dnsUser.'&password='.$this->_dnsPass.'&hostname='.$this->_dnsHost.'&ip='.$this->_dnsIP);
curl_setopt($ch, CURLOPT_URL, $server . $port . '?username=' . $this->_dnsUser . '&password=' . $this->_dnsPass . '&hostname=' . $this->_dnsHost.'&ip=' . $this->_dnsIP);
$data = curl_exec($ch);
if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch));
curl_close($ch);
@ -263,7 +263,7 @@
$server = $this->_dnsServer;
if($this->_dnsPort)
$port = ":" . $this->_dnsPort;
curl_setopt($ch, CURLOPT_URL, '{$server}{$port}?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx='.$this->_dnsBackMX);
curl_setopt($ch, CURLOPT_URL, $server . $port . '?hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP . '&wildcard=' . $this->_dnsWildcard . '&mx=' . $this->_dnsMX . '&backmx=' . $this->_dnsBackMX);
$data = curl_exec($ch);
if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch));
curl_close($ch);
@ -279,7 +279,7 @@
$server = $this->_dnsServer;
if($this->_dnsPort)
$port = ":" . $this->_dnsPort;
curl_setopt($ch, CURLOPT_URL, '{$server}{$port}?ver=1&IP='.$this->_dnsIP);
curl_setopt($ch, CURLOPT_URL, $server . $port . '?ver=1&IP=' . $this->_dnsIP);
$data = curl_exec($ch);
if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch));
curl_close($ch);
@ -308,7 +308,7 @@
$server = $this->_dnsServer;
if($this->_dnsPort)
$port = ":" . $this->_dnsPort;
curl_setopt($ch, CURLOPT_URL, '{$server}{$port}?username=".$this->_dnsUser&password='.$this->_dnsPass.'&host='.$this->_dnsHost);
curl_setopt($ch, CURLOPT_URL, $server . $port . '?username=' . $this->_dnsUser . '&password=' . $this->_dnsPass . '&host=' . $this->_dnsHost);
$data = curl_exec($ch);
if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch));
curl_close($ch);