I get the following 2 errors
Notice: Undefined property: User::$username Fatal error: Call to undefined function mcrypt_create_iv()
And I cannot figure out what it is... I have installed this software on 2 other servers without a problem.
This is the part of script which it should be
function set_user_cookie() {
global $USER_COOKIE,$COOKIE_PATH,$COOKIE_DOMAIN,$COOKIE_KEY;
$cookie = "email=".urlencode($this->email)."&uid=$this->id&seclev=$this->seclev&username=$this->username";
if (isset($COOKIE_KEY)) {
$iv = mcrypt_create_iv(mcrypt_get_iv_size (MCRYPT_BLOWFISH, MCRYPT_MODE_ECB), MCRYPT_RAND);
$cookie = base64_encode(mcrypt_encrypt (MCRYPT_BLOWFISH, $COOKIE_KEY, $cookie, MCRYPT_MODE_ECB, $iv));
}
$expire = (time() + (3600 * 24 * 365 * 5));
setcookie($USER_COOKIE,$cookie,$expire,$COOKIE_PATH,$COOKIE_DOMAIN,0);
}
I hope someone can help me here there I am quite new to PHP :(