0) { $strDisplay = $strDisplay; } else { $strDisplay = $strEncodedEmail; } if($blnCreateLink) { return "".$strDisplay.""; } else { return $strDisplay; } } function IsEmail($value) { return preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $value); } function IsEmailHost($value) { $check = array(); if (eregi("^[0-9a-z_]([-_.]?[0-9a-z_])*@[0-9a-z][-.0-9a-z]*\\.[a-z]{2,3}[.]?$", $value, $check)) { $host = substr(strstr($check[0], '@'), 1)."."; if(function_exists('getmxrr')) { $tmp = null; if ( getmxrr($host, $tmp) ) return true; // this will catch dns that are not mx. if(checkdnsrr($host,'ANY')) return true; } else { return ($host != gethostbyname($host)); } } return false; } ?>keyED($tmp,$key); } function decrypt($txt,$key) { $txt = $this->keyED($txt,$key); $tmp = ""; for ($i=0;$ikeyED($this->encrypt($this->keyED($txt,$this->key1),$this->key2),$this->key3)); } function RemoveEncryption($txt) { return $this->keyED($this->decrypt($this->keyED(base64_decode($txt),$this->key3),$this->key2),$this->key1); } } ?>msg, sprintf('%s', ($class)?$this->goed:$this->fout, $message)); } function showMessages(){ if(is_array($this->msg) && sizeof($this->msg)>0){ print '' . implode('
', $this->msg) . '

'; } $this->msg = array(); } } ?>ip = $ip; $this->proxy = $proxy; if(!is_null($user)){ $this->user = $user; } unset($ip, $proxy); /* ** Setup database connection */ $this->MySQL($dbHost, $dbDatabase, $dbUser, $dbPassword); $this->checkTable(); } function checkTable(){ $this->connect(); $this->execute('CREATE TABLE IF NOT EXISTS `logfile` ( `logID` int(15) NOT NULL auto_increment, `l_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `l_userID` int(5) NOT NULL default \'0\', `l_ip` varchar(25) default NULL, `l_proxy` varchar(25) default NULL, `l_omschrijving` text NOT NULL, PRIMARY KEY (`logID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;'); $this->canSave = (bool)$this->result; $this->flush(); } function addRule($rule = NULL, $isError = false){ if(!is_null($rule)){ array_push($this->log, sprintf('%2$s', ($isError)?$this->color_error:$this->color_ok, stripslashes($rule))); } } function saveLog(){ if(sizeof($this->log)>0 && $this->canSave){ $insert = sprintf('INSERT INTO `logfile` VALUES ("",NOW(),"%1$s","%2$s","%3$s","%4$s")', $this->user, $this->ip, $this->proxy, strip_tags(implode("\n",$this->log))); $this->execute($insert); if($this->affectedrows!=1 || !is_int($this->insertedID)){ $this->info(); } unset($insert); }else{ $this->addRule('Het logbestand kon niet worden vastgelegd!',true); $this->printLog(); } } function showLog($flushLog = false){ if(sizeof($this->log)>0){ print '

'; print implode('
', $this->log); print '

'; if($flushLog){ $this->flushLog(); } } } function printLog($flushLog = false){ if(sizeof($this->log)>0){ print '
';
			print 'Logbestand (' . date('d-m-Y H:i:s') . ')' . "\n";
			print implode('
', $this->log); print '
'; if($flushLog){ $this->flushLog(); } }else{ $this->addRule('Het logbestand is leeg!',true); $this->printLog(true); } } function flushLog(){ $this->log = array(); } } ?>
Fatal error: Class 'Encryption' not found in /var/www/vhosts/bouwadviespothof.nl/httpdocs/config.php on line 50