3 require_once('Config.php');
4 require_once('syslog.php');
6 class FingerPrinter extends Config {
11 function __construct() {
13 $this->_syslog = new Syslog();
15 $this->_syslog->SetFacility($this->facility);
16 $this->_syslog->SetSeverity($this->severity);
17 $this->_syslog->SetHostname($this->hostname);
18 $this->_syslog->SetFqdn($this->hostname);
19 $this->_syslog->SetServer($this->host);
20 $this->_syslog->SetPort($this->port);
21 $this->_syslog->SetIpFrom($this->ipaddress);
22 $this->_syslog->SetProcess($this->process);
25 public function ProcessRequest() {
27 $this->_data = "SourceAddress:" . $_SERVER["REMOTE_ADDR"];
29 foreach($this->params as $param) {
30 $this->_data = implode(
34 $param . ':' . $this->_GenerateHash($_REQUEST[$param])
41 private function _GenerateHash($input) {
45 public function getData() {
49 private function _SendData() {
51 echo "Debug:".$this->_data;
53 $this->_syslog->SetContent($this->_data);
54 $this->_syslog->Send();