diff options
author | Erik Kristensen <ekristen@pfsense.org> | 2005-07-16 18:45:36 +0000 |
---|---|---|
committer | Erik Kristensen <ekristen@pfsense.org> | 2005-07-16 18:45:36 +0000 |
commit | ed3cf51ee4b86ea2d6ca7f467ee6975a0bd12fcd (patch) | |
tree | dd05f27cf308bec4b50556d39e1aa717468ec5a0 /etc | |
parent | 8b22314b8418e289f8c3dcec9b94c8674e8f9767 (diff) | |
download | pfsense-ed3cf51ee4b86ea2d6ca7f467ee6975a0bd12fcd.zip pfsense-ed3cf51ee4b86ea2d6ca7f467ee6975a0bd12fcd.tar.gz |
Added Debugging Code and Changed the UserAgent
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 714c7d4..47aab55 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -49,7 +49,8 @@ class updatedns {
var $_changeFile = '/var/etc/dyndns.cache';
- var $_UserAgent = 'User-Agent: php-dns-updater/0.4';
+ var $_debugFile = '/var/etc/dyndns.debug';
+ var $_UserAgent = 'User-Agent: phpDynDNS/0.4';
var $_errorVerbosity = 0;
var $_dnsService;
var $_dnsUser;
@@ -184,6 +185,7 @@ $status = "phpDynDNS: (Success) No Change In IP Address";
} else {
$status = "phpDynDNS: (Unknown Response)";
+ $this->_debug($data);
}
break;
case 'dhs':
@@ -400,6 +402,15 @@ }
}
+
+
+ function _debug ($data) {
+ $string = date('m-d-y h:i:s').' - ['.$this->dnsService.'] - '.$data.'\n';
+ $file = fopen($this->_debugFile, 'a');
+ fwrite($file, $string);
+ fclose($file);
+ }
+
}
?>
\ No newline at end of file |