host kendi içinde taşıma yaptı /var/www/vhosts/kombiparcacisi.com/httpdocs/system/database bu yolda sorun olabilir mi?
Ek Olarak: [Tue May 12 13:21:31 2015] [error] [client 74.86.158.106] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /var/www/vhosts/kombiparcacisi.com/httpdocs/system/library/encryption.php on line 8
[Tue May 12 13:22:27 2015] [error] [client 78.189.177.84] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /var/www/vhosts/kombiparcacisi.com/httpdocs/system/library/encryption.php on line 8
[Tue May 12 13:22:31 2015] [error] [client 74.86.158.106] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /var/www/vhosts/kombiparcacisi.com/httpdocs/system/library/encryption.php on line 8
[Tue May 12 13:23:31 2015] [error] [client 74.86.158.106] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /var/www/vhosts/kombiparcacisi.com/httpdocs/system/library/encryption.php on line 8
Bu hata kayıtıları
Ek Olarak: final class Encryption {
private $key;
private $iv;
public function __construct($key) {
$this->key = hash('sha256', $key, true);
$this->iv = mcrypt_create_iv(32, MCRYPT_RAND);
}
public function encrypt($value) {
return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $value, MCRYPT_MODE_ECB, $this->iv)), '+/=', '-_,');
}
public function decrypt($value) {
return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $this->key, base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB, $this->iv));
}
}
?>