mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-30 16:00:25 +00:00
drivers_rimap: update similar to drivers_imap_pam
This commit is contained in:
parent
1393c30390
commit
f4fd23ed3c
@ -11,9 +11,14 @@
|
|||||||
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
|
* @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");
|
require_once("auth-functions.php");
|
||||||
|
|
||||||
class imapPamDrivers
|
class rimapPamDrivers
|
||||||
{
|
{
|
||||||
/**#@+
|
/**#@+
|
||||||
* @access private
|
* @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
|
* The constructor
|
||||||
*
|
*
|
||||||
@ -40,7 +36,7 @@ class imapPamDrivers
|
|||||||
{
|
{
|
||||||
global $c;
|
global $c;
|
||||||
if (empty($imap_url)){
|
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;
|
$this->valid=false;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user