drivers_rimap: update similar to drivers_imap_pam

This commit is contained in:
Florian Schlichting committed 2016-12-30 08:53:59 +01:00
1 parent 1393c30390
commit f4fd23ed3c
1 file changed
+7 -11
+7 -11
View File
@@ -11,9 +11,14 @@
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
*/
// The PHP interpreter will die quietly unless satisfied. This provides user feedback instead.
if (!function_exists('imap_open')) {
die("drivers_rimap: php-imap required.");
}
require_once("auth-functions.php");
class imapPamDrivers
class rimapPamDrivers
{
/**#@+
* @access private
@@ -22,15 +27,6 @@ class imapPamDrivers
/**#@-*/
/**
* Constructor.
* @param string $imap_url formated for imap_open()
*/
function imapPamDrivers($imap_url){
$this->__construct($imap_url);
}
/**
* The constructor
*
@@ -40,7 +36,7 @@ class imapPamDrivers
{
global $c;
if (empty($imap_url)){
$c->messages[] = sprintf(i18n('drivers_imap_pam : imap_url parameter not configured in /etc/davical/*-conf.php'));
$c->messages[] = sprintf(i18n('drivers_rimap : imap_url parameter not configured in /etc/davical/*-conf.php'));
$this->valid=false;
return ;
}