Add required parameters to raise_error() calls.
| | |
| | | global $RCMAIL; |
| | | |
| | | if (!function_exists('ldap_connect')) |
| | | raise_error(array('type' => 'ldap', 'message' => "No ldap support in this installation of PHP"), true); |
| | | raise_error(array('code' => 100, 'type' => 'ldap', 'message' => "No ldap support in this installation of PHP"), true); |
| | | |
| | | if (is_resource($this->conn)) |
| | | return true; |
| | |
| | | $this->ready = $this->bind($this->prop['bind_dn'], $this->prop['bind_pass']); |
| | | } |
| | | else |
| | | raise_error(array('type' => 'ldap', 'message' => "Could not connect to any LDAP server, tried $host:{$this->prop[port]} last"), true); |
| | | raise_error(array('code' => 100, 'type' => 'ldap', 'message' => "Could not connect to any LDAP server, tried $host:{$this->prop[port]} last"), true); |
| | | |
| | | // See if the directory is writeable. |
| | | if ($this->prop['writable']) { |
| | |
| | | function onError($err_code,$err_text){ |
| | | //print($err_code . " : " . $err_text . "<hr>\n"); |
| | | raise_error(array('code' => 500, |
| | | 'type' => 'php', |
| | | 'file' => __FILE__, |
| | | 'message' => $err_text), TRUE, FALSE); |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | ?> |
| | | ?> |
| | |
| | | /****** checks ********/ |
| | | |
| | | if (!isset($_SESSION['compose']['id'])) { |
| | | raise_error(array('code' => 500, 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false); |
| | | raise_error(array('code' => 500, 'type' => 'smtp', 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false); |
| | | console("Sendmail error", $_SESSION['compose']); |
| | | $OUTPUT->show_message("An internal error occured. Please try again.", 'error'); |
| | | $OUTPUT->send('iframe'); |
| | |
| | | if (!extension_loaded('pspell')) { |
| | | raise_error(array( |
| | | 'code' => 500, |
| | | 'type' => 'php', |
| | | 'file' => __FILE__, |
| | | 'message' => "Pspell extension not available"), true, false); |
| | | |