Add LSaddon mailquota

This commit is contained in:
Benjamin Renard 2019-06-17 12:36:01 +02:00
parent 1c2e6f4abb
commit 22dd1a61e6
8 changed files with 413 additions and 62 deletions

View file

@ -13,6 +13,7 @@
&conf-LSaddon_exportSearchResultAsCSV; &conf-LSaddon_exportSearchResultAsCSV;
&conf-LSaddon_mail; &conf-LSaddon_mail;
&conf-LSaddon_maildir; &conf-LSaddon_maildir;
&conf-LSaddon_mailquota;
&conf-LSaddon_phpldapadmin; &conf-LSaddon_phpldapadmin;
</sect1> </sect1>

View file

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!ENTITY conf-LSaddon_asterisk SYSTEM "LSaddon_asterisk.docbook"> <!ENTITY conf-LSaddon_asterisk SYSTEM "LSaddon_asterisk.docbook">
<!ENTITY conf-LSaddon_exportSearchResultAsCSV SYSTEM "LSaddon_exportSearchResultAsCSV.docbook"> <!ENTITY conf-LSaddon_exportSearchResultAsCSV SYSTEM "LSaddon_exportSearchResultAsCSV.docbook">
<!ENTITY conf-LSaddon_maildir SYSTEM "LSaddon_maildir.docbook">
<!ENTITY conf-LSaddon_mail SYSTEM "LSaddon_mail.docbook"> <!ENTITY conf-LSaddon_mail SYSTEM "LSaddon_mail.docbook">
<!ENTITY conf-LSaddon_maildir SYSTEM "LSaddon_maildir.docbook">
<!ENTITY conf-LSaddon_mailquota SYSTEM "LSaddon_mailquota.docbook">
<!ENTITY conf-LSaddon_phpldapadmin SYSTEM "LSaddon_phpldapadmin.docbook"> <!ENTITY conf-LSaddon_phpldapadmin SYSTEM "LSaddon_phpldapadmin.docbook">

View file

@ -0,0 +1,60 @@
<sect2 id="config-LSaddon_mailquota">
<title>LSaddon_mailquota</title>
<para>Cet &LSaddon; fournie une fonction <literal>mailquota_get_usage</literal>
pouvant être utilisée pour récupérer l'utilisation du quota d'une boîte mail
IMAP. Pour cela, &LdapSaisie; se connecte au serveur IMAP en utilisant un
compte maître.</para>
<para>Cet &LSaddon; fournie une également une fonction
<literal>mailquota_show_usage</literal> pouvant être utilisée comme
&customSearchActions; et permettant d'afficher l'utilisation du quota de la
boîte mail correspondante via une message dynamique (<literal>LSinfo</literal>).
</para>
<para>Des paramètres de configuration sont disponibles dans le fichier de
configuration <literal>config.LSaddons.mailquota.php</literal>.</para>
<programlisting linenumbering="unnumbered">
<citetitle>Structure du fichier</citetitle>
<![CDATA[// IMAP Mailbox connection string LSformat (composed with LSldapObject attributes)
// See : https://php.net/imap_open (parameter $mailbox)
define('MAILQUOTA_IMAP_MAILBOX','{localhost}');
// IMAP Master user
define('MAILQUOTA_IMAP_MASTER_USER', 'ldapsaisie');
// IMAP Master user's password
define('MAILQUOTA_IMAP_MASTER_USER_PWD', 'secret');
// IMAP Master user LSformat composed with :
// * masteruser = master username (MAILQUOTA_IMAP_MASTER_USER)
// * LSldapObject attributes
define('MAILQUOTA_IMAP_MASTER_USER_FORMAT', '%{mail}*%{masteruser}');
// IMAP quota root mailbox
define('MAILQUOTA_IMAP_QUOTA_ROOT_MAILBOX', 'INBOX');]]>
</programlisting>
<para>Ci-dessous, vous trouverez un exemple de configuration de la fonction
<literal>mailquota_show_usage()</literal> comme &customActions;</para>
<programlisting linenumbering="unnumbered">
<citetitle>Exemple d'utilisation</citetitle><![CDATA[$GLOBALS['LSobjects']['LSpeople'] = array (
[...]
'customActions' => array (
'showmailquotausage' => array (
'function' => 'mailquota_show_usage',
'label' => 'Show mail quota usage',
'noConfirmation' => true,
'disableOnSuccessMsg' => true,
'icon' => 'mail',
'rights' => array (
'admin'
)
),
[...]
),
[...]
);]]>
</programlisting>
</sect2>

View file

@ -0,0 +1,45 @@
<?php
/*******************************************************************************
* Copyright (C) 2019 Easter-eggs
* http://ldapsaisie.easter-eggs.org
*
* Author: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
******************************************************************************/
/*
***************************************
* Configuration for mailquota support *
***************************************
*/
// IMAP Mailbox connection string LSformat (composed with LSldapObject attributes)
// See : https://php.net/imap_open (parameter $mailbox)
define('MAILQUOTA_IMAP_MAILBOX','{localhost}');
// IMAP Master user
define('MAILQUOTA_IMAP_MASTER_USER', 'ldapsaisie');
// IMAP Master user's password
define('MAILQUOTA_IMAP_MASTER_USER_PWD', 'secret');
// IMAP Master user LSformat composed with :
// * masteruser = master username (MAILQUOTA_IMAP_MASTER_USER)
// * LSldapObject attributes
define('MAILQUOTA_IMAP_MASTER_USER_FORMAT', '%{mail}*%{masteruser}');
// IMAP quota root mailbox
define('MAILQUOTA_IMAP_QUOTA_ROOT_MAILBOX', 'INBOX');

View file

@ -0,0 +1,183 @@
<?php
/*******************************************************************************
* Copyright (C) 2019 Easter-eggs
* http://ldapsaisie.easter-eggs.org
*
* Author: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
******************************************************************************/
// Messages d'erreur
// Support
LSerror :: defineError('MAILQUOTA_SUPPORT_01',
__("MAILQUOTA Support : The constant %{const} is not defined.")
);
LSerror :: defineError('MAILQUOTA_SUPPORT_02',
_("MAILQUOTA Support : The IMAP PHP module is not available.")
);
// Other errors
LSerror :: defineError('MAILQUOTA_01',
__("MAILQUOTA : Fail to connect on IMAP server : %{error}")
);
LSerror :: defineError('MAILQUOTA_02',
__("MAILQUOTA : Unexpected error occured retreiving mailbox quota usage.")
);
LSerror :: defineError('MAILQUOTA_03',
__("MAILQUOTA : Fail to compose IMAP mailbox username.")
);
/**
* Check support of this addons
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @retval boolean True if this addons is fully supported, false otherwise
*/
function LSaddon_mailquota_support() {
$retval=True;
$MUST_DEFINE_CONST= array(
'MAILQUOTA_IMAP_MAILBOX',
'MAILQUOTA_IMAP_MASTER_USER',
'MAILQUOTA_IMAP_MASTER_USER_PWD',
'MAILQUOTA_IMAP_MASTER_USER_FORMAT',
'MAILQUOTA_IMAP_QUOTA_ROOT_MAILBOX',
);
foreach($MUST_DEFINE_CONST as $const) {
if ( (!defined($const)) || (constant($const) == "")) {
LSerror :: addErrorCode('MAILQUOTA_SUPPORT_01',$const);
$retval=false;
}
}
if (!function_exists('imap_open')) {
LSerror :: addErrorCode('MAILQUOTA_SUPPORT_02');
$retval=false;
}
return $retval;
}
/**
* Get IMAP mailbox usage
*
* @param[in] $ldapobject LSldapObject The LDAP object
*
* @retval array|false Array with mailbox usage and quota, or false
**/
function mailquota_get_usage(&$LSldapObject) {
try {
$LSldapObject -> registerOtherValue('masteruser', MAILQUOTA_IMAP_MASTER_USER);
$imap_login = $LSldapObject -> getFData(MAILQUOTA_IMAP_MASTER_USER_FORMAT);
if (empty($imap_login)) {
LSerror :: addErrorCode('MAILQUOTA_03');
return false;
}
$imap_mailbox = $LSldapObject -> getFData(MAILQUOTA_IMAP_MAILBOX);
LSdebug("IMAP mailbox : '$imap_mailbox'");
$mbox = @imap_open(
$imap_mailbox,
$imap_login,
MAILQUOTA_IMAP_MASTER_USER_PWD,
OP_HALFOPEN
);
if ($mbox) {
$quota_values = imap_get_quotaroot($mbox, MAILQUOTA_IMAP_QUOTA_ROOT_MAILBOX);
LSdebug("IMAP mailbox :\n".varDump($quota_values));
if(isset($quota_values['usage'])) {
return array (
'usage' => intval($quota_values['usage']*1024),
'limit' => intval($quota_values['limit']*1024),
);
}
}
else {
LSerror :: addErrorCode('MAILQUOTA_01', imap_last_error());
}
}
catch (Exception $e) {
LSerror :: addErrorCode('MAILQUOTA_02');
}
return false;
}
/**
* Custom action that could be use to show mailbox quota usage
*
* This custom action just show mailbox quota usage via LSinfo.
*
* The custom action could be configured on LSldapObject as following :
*
* 'customActions' => array (
* 'showmailquotausage' => array (
* 'function' => 'mailquota_show_usage',
* 'label' => 'Show mail quota usage',
* 'noConfirmation' => true,
* 'disableOnSuccessMsg' => true,
* 'icon' => 'mail',
* 'rights' => array (
* 'admin'
* )
* ),
* [...]
* );
*
* @param[in] $ldapobject LSldapObject The LDAP object
*
* @retval true in any case
**/
function mailquota_show_usage(&$LSldapObject) {
$quota = mailquota_get_usage($LSldapObject);
if (is_array($quota)) {
$msg = __("Mailbox quota usage : %{usage} / %{limit}");
$infos = array('usage' => mailquota_formatValue($quota['usage']));
if ($quota['limit']) {
$infos['limit'] = mailquota_formatValue($quota['limit']);
$infos['perc'] = number_format($quota['usage'] * 100 / $quota['limit'], 2);
$msg .= " (%{perc}%)";
}
else {
$infos['limit'] = __('Unlimited');
}
LSsession :: addInfo(getFData($msg, $infos));
}
return true;
}
function mailquota_formatValue($value) {
$sizeFacts = array(
1073741824 => 'Go',
1048576 => 'Mo',
1024 => 'Ko',
1 => 'o',
);
krsort($sizeFacts);
foreach($sizeFacts as $sill => $label) {
if ($value >= $sill) {
if ($value % $sill == 0) {
return $value/$sill.$label;
}
else {
return number_format($value/$sill, 1).$label;
}
}
}
return $value."o";
}

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: LdapSaisie\n" "Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: 2019-06-04 00:20+0200\n" "PO-Revision-Date: 2019-06-17 12:20+0200\n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n" "Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise." "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n" "org>\n"
@ -77,7 +77,7 @@ msgid "Import"
msgstr "Importer" msgstr "Importer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:156 #: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:156
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1418 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1417
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:32 #: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:32
msgid "Refresh" msgid "Refresh"
msgstr "Rafraîchir" msgstr "Rafraîchir"
@ -88,7 +88,7 @@ msgstr "Réinitialiser"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70 #: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1214 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1214
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2284 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2298
msgid "Level" msgid "Level"
msgstr "Niveau" msgstr "Niveau"
@ -373,6 +373,37 @@ msgstr ""
"Support FTP : Impossible de renommer le dossier %{old} en %{new} sur le " "Support FTP : Impossible de renommer le dossier %{old} en %{new} sur le "
"serveur distant." "serveur distant."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:27
msgid "MAILQUOTA Support : The constant %{const} is not defined."
msgstr "Support MAILQUOTA : La constante %{const} n'est pas définie."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:30
msgid "MAILQUOTA Support : The IMAP PHP module is not available."
msgstr "Support MAILQUOTA : Le module IMAP pour PHP n'est pas disponible."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:35
msgid "MAILQUOTA : Fail to connect on IMAP server : %{error}"
msgstr "MAILQUOTA : Impossible de se connecter au serveur IMAP : %{error}"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:38
msgid "MAILQUOTA : Unexpected error occured retreiving mailbox quota usage."
msgstr ""
"MAILQUOTA : Une erreur inattendue est survenue en récupérant l'utilisation "
"du quota de la boîte mail."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:41
msgid "MAILQUOTA : Fail to compose IMAP mailbox username."
msgstr ""
"MAILQUOTA : Impossible de composer l'identifiant IMAP de la boîte mail."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:149
msgid "Mailbox quota usage : %{usage} / %{limit}"
msgstr "Utilisation de la boîte mail : %{usage} / %{limit}"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:157
msgid "Unlimited"
msgstr "Illimité"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.maildir.php:27 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.maildir.php:27
msgid "MAILDIR Support : Unable to load LSaddon::FTP." msgid "MAILDIR Support : Unable to load LSaddon::FTP."
msgstr "Support MAILDIR : Impossible de charger LSaddon::FTP." msgstr "Support MAILDIR : Impossible de charger LSaddon::FTP."
@ -833,19 +864,19 @@ msgstr ""
msgid "Your new password has been sent to %{mail}. " msgid "Your new password has been sent to %{mail}. "
msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}." msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1434 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1433
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1456 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1455
msgid "Connected as" msgid "Connected as"
msgstr "Connecté en tant que" msgstr "Connecté en tant que"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2431 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2445
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "LSsession : La constante %{const} n'est pas définie." msgstr "LSsession : La constante %{const} n'est pas définie."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2434 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2448
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
@ -853,52 +884,52 @@ msgstr ""
"LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du " "LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du "
"système et la configuration de l'add-on." "système et la configuration de l'add-on."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2437 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2451
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
"LSsession : Les données de configuration du serveur LDAP sont invalide. " "LSsession : Les données de configuration du serveur LDAP sont invalide. "
"Impossible de s'y connecter." "Impossible de s'y connecter."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2440 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2454
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
"LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu." "LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2443 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2457
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "LSsession : Impossible de charger la LSclass %{class}." msgstr "LSsession : Impossible de charger la LSclass %{class}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2446 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2460
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "LSsession : Identifiant ou mot de passe incorrects." msgstr "LSsession : Identifiant ou mot de passe incorrects."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2449 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2463
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "LSsession : Impossible de vous identifier : Duplication d'identité." msgstr "LSsession : Impossible de vous identifier : Duplication d'identité."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2452 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2466
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
"LSsession : Impossible de charger la classe d'authentification (%{class})." "LSsession : Impossible de charger la classe d'authentification (%{class})."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2455 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2469
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "LSsession : Impossible de se connecter au serveur LDAP." msgstr "LSsession : Impossible de se connecter au serveur LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2458 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2472
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier." msgstr "LSsession : Impossible de vous identifier."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2461 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2475
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action." msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2464 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2478
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "LSsession : Des informations sont manquant pour afficher cette page." msgstr "LSsession : Des informations sont manquant pour afficher cette page."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2467 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2481
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
@ -906,24 +937,24 @@ msgstr ""
"LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou " "LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou "
"n'est pas configurée." "n'est pas configurée."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2470 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2484
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur " "LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
"depuis LSauth." "depuis LSauth."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2473 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2487
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
"LSsession : Impossible de se reconnecter au serveur LDAP avec les " "LSsession : Impossible de se reconnecter au serveur LDAP avec les "
"identifiants de l'utilisateur." "identifiants de l'utilisateur."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2476 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2490
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet." msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2479 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2493
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
@ -931,13 +962,13 @@ msgstr ""
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les " "LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
"administrateurs. (Code : %{type})" "administrateurs. (Code : %{type})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2482 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2496
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
"LSsession : La récupération de mot de passe est désactivée pour ce serveur " "LSsession : La récupération de mot de passe est désactivée pour ce serveur "
"LDAP." "LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2485 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2499
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
@ -945,7 +976,7 @@ msgstr ""
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot " "LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
"de passe. Contacter les administrateurs." "de passe. Contacter les administrateurs."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2488 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2502
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
@ -953,22 +984,22 @@ msgstr ""
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter " "LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
"les administrateurs. (Etape : %{step})" "les administrateurs. (Etape : %{step})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2491 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2505
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
"LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}." "LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2494 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2508
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "LSsession : Problème durant l'initialisation." msgstr "LSsession : Problème durant l'initialisation."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2497 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2511
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
"LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas." "LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2500 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2514
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres." msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres."
@ -1957,7 +1988,8 @@ msgstr "Fichier"
msgid "Format" msgid "Format"
msgstr "Format" msgstr "Format"
#: templates/default/top.tpl:35 templates/default/global_search.tpl:10 #: templates/default/top.tpl:35 templates/default/top.tpl:36
#: templates/default/global_search.tpl:10
msgid "Global search" msgid "Global search"
msgstr "Recherche globale" msgstr "Recherche globale"
@ -1977,7 +2009,7 @@ msgstr "Aucune valeur"
msgid "Only validate data" msgid "Only validate data"
msgstr "Validation des données uniquement" msgstr "Validation des données uniquement"
#: templates/default/top.tpl:61 #: templates/default/top.tpl:62
msgid "Refresh my access rights" msgid "Refresh my access rights"
msgstr "Rafraîchir mes droits d'accès" msgstr "Rafraîchir mes droits d'accès"

View file

@ -55,7 +55,7 @@ msgid "Import"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:156 #: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:156
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1418 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1417
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:32 #: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:32
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
@ -66,7 +66,7 @@ msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70 #: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1214 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1214
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2284 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2298
msgid "Level" msgid "Level"
msgstr "" msgstr ""
@ -311,6 +311,34 @@ msgid ""
"server." "server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:27
msgid "MAILQUOTA Support : The constant %{const} is not defined."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:30
msgid "MAILQUOTA Support : The IMAP PHP module is not available."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:35
msgid "MAILQUOTA : Fail to connect on IMAP server : %{error}"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:38
msgid "MAILQUOTA : Unexpected error occured retreiving mailbox quota usage."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:41
msgid "MAILQUOTA : Fail to compose IMAP mailbox username."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:149
msgid "Mailbox quota usage : %{usage} / %{limit}"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.mailquota.php:157
msgid "Unlimited"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.maildir.php:27 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/addons/LSaddons.maildir.php:27
msgid "MAILDIR Support : Unable to load LSaddon::FTP." msgid "MAILDIR Support : Unable to load LSaddon::FTP."
msgstr "" msgstr ""
@ -712,120 +740,120 @@ msgstr ""
msgid "Your new password has been sent to %{mail}. " msgid "Your new password has been sent to %{mail}. "
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1434 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1433
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1456 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1455
msgid "Connected as" msgid "Connected as"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2431 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2445
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2434 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2448
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2437 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2451
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2440 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2454
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2443 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2457
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2446 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2460
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2449 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2463
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2452 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2466
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2455 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2469
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2458 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2472
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2461 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2475
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2464 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2478
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2467 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2481
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2470 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2484
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2473 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2487
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2476 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2490
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2479 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2493
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2482 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2496
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2485 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2499
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2488 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2502
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2491 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2505
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2494 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2508
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2497 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2511
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2500 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2514
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "" msgstr ""
@ -1676,7 +1704,8 @@ msgstr ""
msgid "Format" msgid "Format"
msgstr "" msgstr ""
#: templates/default/top.tpl:35 templates/default/global_search.tpl:10 #: templates/default/top.tpl:35 templates/default/top.tpl:36
#: templates/default/global_search.tpl:10
msgid "Global search" msgid "Global search"
msgstr "" msgstr ""
@ -1696,7 +1725,7 @@ msgstr ""
msgid "Only validate data" msgid "Only validate data"
msgstr "" msgstr ""
#: templates/default/top.tpl:61 #: templates/default/top.tpl:62
msgid "Refresh my access rights" msgid "Refresh my access rights"
msgstr "" msgstr ""