index dda0f6ec200667dffc501507809ac265f34a9eba..fa3e488d9b71deb661c2af3cf3e38871d39dbf57 100644 (file)
public function setEncryptionKey($key)
{
if(!function_exists("mcrypt_get_iv_size")){
public function setEncryptionKey($key)
{
if(!function_exists("mcrypt_get_iv_size")){
- $this->set_error(_("The mcrypt module was not found. Please install php5-mcrypt."));
+ $this->set_error(msgPool::missingext("mcrypt"));
$this->ckey = "";
$this->b_encrypt = FALSE;
}
$this->ckey = "";
$this->b_encrypt = FALSE;
}
$this->handle = @fsockopen($this->host, $this->port, $this->errno, $this->errstr, $this->timeout);
if(!$this->handle){
$this->handle = NULL;
$this->handle = @fsockopen($this->host, $this->port, $this->errno, $this->errstr, $this->timeout);
if(!$this->handle){
$this->handle = NULL;
- $this->set_error(sprintf(_("Socket connection to host '%s:%s' failed with error: %s."),$this->host,$this->port,$this->errstr));
+ $this->set_error(sprintf(_("Socket connection to %s:%s failed: %s"), bold($this->host), bold($this->port), $this->errstr));
}else{
$this->b_data_send = TRUE;
}else{
$this->b_data_send = TRUE;
}
}
if((microtime(TRUE) - $start) > $this->timeout ){
}
}
if((microtime(TRUE) - $start) > $this->timeout ){
- $this->set_error(sprintf(_("Socket timeout of %s seconds reached."),$this->timeout));
+ $this->set_error(sprintf(_("Socket timeout of %s seconds reached!"), bold($this->timeout)));
break;
}
}
break;
}
}