mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
* Cleanup variables and . usage
* Fix obvious bug including " with no closing "
This commit is contained in:
parent
65d782d0ba
commit
cd8f5ccdab
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user