return;
}
// Nowhere to go.
- throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first');
}
}
return;
}
// No where to go
- throw new Horde_Exception('Shrink or move neighbouring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighbouring block(s) out of the way first');
}
}
} else {
return;
}
// No where to go
- throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first');
}
}
return;
}
// No where to go
- throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first');
}
}
} else {
for ($i = 0; $i < $width; $i++) {
if (!$this->isEmpty($row - 1, $col + $i)) {
if (!$this->moveDownBelow($row - 1)) {
- throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first');
} else {
$row++;
}
for ($i = 0; $i < $width; $i++) {
if (!$this->isEmpty($lastrow + 1, $col + $i)) {
if (!$this->moveDownBelow($lastrow)) {
- throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first');
}
}
}
for ($i = 0; $i < $height; $i++) {
if (!$this->isEmpty($row + $i, $col - 1)) {
if (!$this->moveRightAfter($col - 1)) {
- throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighboring block(s) out of the way first');
} else {
$col++;
}
for ($i = 0; $i < $height; $i++) {
if (!$this->isEmpty($row + $i, $lastcol + 1)) {
if (!$this->moveRightAfter($lastcol)) {
- throw new Horde_Exception('Shrink or move neighbouring block(s) out of the way first', 'horde.warning');
+ throw new Horde_Exception('Shrink or move neighbouring block(s) out of the way first');
}
}
}
try {
$this->getPublicKeyserver($info['keyid'], $server, $timeout);
} catch (Horde_Exception $e) {
- throw new Horde_Exception(_("Key already exists on the public keyserver."), 'horde.warning');
+ throw new Horde_Exception(_("Key already exists on the public keyserver."));
}
/* Connect to the public keyserver. _connectKeyserver() */
$result = openssl_pkcs7_verify($input, PKCS7_NOVERIFY, $output);
if ($result === true) {
- throw new Horde_Exception(_("Message Verified Successfully but the signer's certificate could not be verified."), 'horde.warning');
+ throw new Horde_Exception(_("Message Verified Successfully but the signer's certificate could not be verified."));
} elseif ($result == -1) {
throw new Horde_Exception(_("Verification failed - an unknown error has occurred."));
} else {
//
// $session = ssh2_connect($host);
// if (!$session) {
-// throw new IMP_Exception(_("Connection to server failed."), 'horde.error');
+// throw new IMP_Exception(_("Connection to server failed."));
// }
//
// if (!ssh2_auth_password($session, $user, $pass)) {
-// throw new IMP_Exception(_("Authentication failed."), 'horde.error');
+// throw new IMP_Exception(_("Authentication failed."));
// }
//
// $stream = ssh2_exec($session, $command, false);
/* Check to see if we have the user's passphrase yet. */
$passphrase = $imp_pgp->getPassphrase('personal');
if (empty($passphrase)) {
- $e = new IMP_Compose_Exception(_("PGP: Need passphrase for personal private key."), 'horde.message');
+ $e = new IMP_Compose_Exception(_("PGP: Need passphrase for personal private key."));
$e->encrypt = 'pgp_passphrase_dialog';
throw $e;
}
* yet. */
$symmetric_passphrase = $imp_pgp->getPassphrase('symmetric', 'imp_compose_' . $this->_cacheid);
if (empty($symmetric_passphrase)) {
- $e = new IMP_Compose_Exception(_("PGP: Need passphrase to encrypt your message with."), 'horde.message');
+ $e = new IMP_Compose_Exception(_("PGP: Need passphrase to encrypt your message with."));
$e->encrypt = 'pgp_symmetric_passphrase_dialog';
throw $e;
}
if (in_array($encrypt, array(IMP::SMIME_SIGN, IMP::SMIME_SIGNENC))) {
$passphrase = $imp_smime->getPassphrase();
if ($passphrase === false) {
- $e = new IMP_Compose_Exception(_("S/MIME Error: Need passphrase for personal private key."), 'horde.error');
+ $e = new IMP_Compose_Exception(_("S/MIME Error: Need passphrase for personal private key."));
$e->encrypt = 'smime_passphrase_dialog';
throw $e;
}
/* Check for filesize limitations. */
if (!empty($conf['compose']['attach_size_limit']) &&
(($conf['compose']['attach_size_limit'] - $this->sizeOfAttachments() - $_FILES[$name]['size']) < 0)) {
- throw new IMP_Compose_Exception(sprintf(_("Attached file \"%s\" exceeds the attachment size limits. File NOT attached."), $filename), 'horde.error');
+ throw new IMP_Compose_Exception(sprintf(_("Attached file \"%s\" exceeds the attachment size limits. File NOT attached."), $filename));
}
/* Determine the MIME type of the data. */
} else {
$attachment = Horde::getTempFile('impatt', false);
if (move_uploaded_file($tempfile, $attachment) === false) {
- throw new IMP_Compose_Exception(sprintf(_("The file %s could not be attached."), $filename), 'horde.error');
+ throw new IMP_Compose_Exception(sprintf(_("The file %s could not be attached."), $filename));
}
}
$attachment = Horde::getTempFile('impatt', false);
$res = file_put_contents($attachment, $part->getContents());
if ($res === false) {
- throw new IMP_Compose_Exception(sprintf(_("Could not attach %s to the message."), $part->getName()), 'horde.error');
+ throw new IMP_Compose_Exception(sprintf(_("Could not attach %s to the message."), $part->getName()));
}
if (($type == 'application/octet-stream') &&
/* Check for filesize limitations. */
if (!empty($conf['compose']['attach_size_limit']) &&
(($conf['compose']['attach_size_limit'] - $this->sizeOfAttachments() - $bytes) < 0)) {
- throw new IMP_Compose_Exception(sprintf(_("Attached file \"%s\" exceeds the attachment size limits. File NOT attached."), $part->getName()), 'horde.error');
+ throw new IMP_Compose_Exception(sprintf(_("Attached file \"%s\" exceeds the attachment size limits. File NOT attached."), $part->getName()));
}
/* Store the data. */
return $new;
}
}
- throw new Horde_Exception(_("Cannot directly create mailbox in this folder."), 'horde.error');
+ throw new Horde_Exception(_("Cannot directly create mailbox in this folder."));
}
$mbox = $ns_info['name'];
'limit' => $quota[2] * $blocksize);
}
- throw new Horde_Exception(_("Unable to retrieve quota"), 'horde.error');
+ throw new Horde_Exception(_("Unable to retrieve quota"));
}
}
if (count($quota) != 2) {
Horde::logMessage('Incorrect number of return values from quota hook.', __FILE__, __LINE__, PEAR_LOG_ERR);
- throw new Horde_Exception(_("Unable to retrieve quota"), 'horde.error');
+ throw new Horde_Exception(_("Unable to retrieve quota"));
}
return array('usage' => $quota[0], 'limit' => $quota[1]);
try {
$quota = $GLOBALS['imp_imap']->ob()->getQuotaRoot($GLOBALS['imp_search']->isSearchMbox($GLOBALS['imp_mbox']['mailbox']) ? 'INBOX' : $GLOBALS['imp_mbox']['mailbox']);
} catch (Horde_Imap_Client_Exception $e) {
- throw new Horde_Exception(_("Unable to retrieve quota"), 'horde.error');
+ throw new Horde_Exception(_("Unable to retrieve quota"));
}
if (empty($quota)) {
}
}
- throw new Horde_Exception(_("Unable to retrieve quota"), 'horde.error');
+ throw new Horde_Exception(_("Unable to retrieve quota"));
}
/**
}
}
- throw new Horde_Exception(_("Unable to retrieve quota"), 'horde.error');
+ throw new Horde_Exception(_("Unable to retrieve quota"));
}
}