Add LSaddon::showSupportInfo

This commit is contained in:
Benjamin Renard 2023-01-09 19:32:06 +01:00
parent 43cb6c3f93
commit 4f69036f2f
15 changed files with 324 additions and 84 deletions

View file

@ -19,6 +19,7 @@
&conf-LSaddon_mailquota; &conf-LSaddon_mailquota;
&conf-LSaddon_phpldapadmin; &conf-LSaddon_phpldapadmin;
&conf-LSaddon_ppolicy; &conf-LSaddon_ppolicy;
&conf-LSaddon_showSupportInfo;
&conf-LSaddon_showTechInfo; &conf-LSaddon_showTechInfo;
</sect1> </sect1>

View file

@ -9,4 +9,5 @@
<!ENTITY conf-LSaddon_mailquota SYSTEM "LSaddon_mailquota.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">
<!ENTITY conf-LSaddon_ppolicy SYSTEM "LSaddon_ppolicy.docbook"> <!ENTITY conf-LSaddon_ppolicy SYSTEM "LSaddon_ppolicy.docbook">
<!ENTITY conf-LSaddon_showSupportInfo SYSTEM "LSaddon_showSupportInfo.docbook">
<!ENTITY conf-LSaddon_showTechInfo SYSTEM "LSaddon_showTechInfo.docbook"> <!ENTITY conf-LSaddon_showTechInfo SYSTEM "LSaddon_showTechInfo.docbook">

View file

@ -0,0 +1,44 @@
<sect2 id="config-LSaddon_showSupportInfo">
<title>LSaddon_showSupportInfo</title>
<para>Cet &LSaddon; fourni une page affichant les informations utiles pour
l'équipe assurant le support de l'application. Cette page est accessible à
l'adresse <literal>addon/showSupportInfo/showMySupportInfo</literal>. Elle
compile (et permet de télécharger) l'ensemble des informations utiles à
l'appréciation du contexte d'accès à l'application par l'utilisateur.</para>
<para>Cette page est accessible par tous les utilisateurs connectés à
l'application. Cependant, par défaut, il n'y a aucun lien d'accès à celle-ci.
Il est possible d'ajouter un lien d'accès dans le menu et modifiant la valeur
de la constante <literal>SHOW_SUPPORT_INFO_IN_MENU</literal> à
<literal>True</literal>.</para>
<para>Une fonction <literal>showMySupportInfo()</literal> est également
fournie et peut-être utilisée comme &customActions;. Elle redirigera alors
l'utilisateur vers cette page. Ci-dessous, vous trouverez un exemple de
configuration de la fonction <literal>showMySupportInfo()</literal> comme
&customActions; :</para>
<programlisting linenumbering="unnumbered">
<citetitle>Exemple d'utilisation</citetitle><![CDATA[$GLOBALS['LSobjects']['LSpeople'] = array (
[...]
'customActions' => array (
'showMySupportInfo' => array (
'function' => 'showMySupportInfo',
'label' => 'Show my support information',
'hideLabel' => True,
'noConfirmation' => true,
'disableOnSuccessMsg' => true,
'icon' => 'terminal',
'rights' => array (
'admin'
),
),
),
[...]
);]]>
</programlisting>
<note><simpara>Le label et l'icône fournis dans cet exemple sont traduits et
délivrés avec &LdapSaisie;.</simpara></note>
</sect2>

View file

@ -0,0 +1,30 @@
<?php
/*******************************************************************************
* Copyright (C) 2007 Easter-eggs
* https://ldapsaisie.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 showSupportInfo addon *
*******************************************
*/
// Show link in menu to access to support info page
define('SHOW_SUPPORT_INFO_IN_MENU', False);

View file

@ -27,5 +27,6 @@ $GLOBALS['LSaddons']['loads'] = array (
'maildir', 'maildir',
'dyngroup', 'dyngroup',
'showTechInfo', 'showTechInfo',
'showSupportInfo',
'LSaccessRightsMatrixView', 'LSaccessRightsMatrixView',
); );

View file

@ -0,0 +1,13 @@
#showSupportInfo pre {
margin-left: 1em;
color: #111;
text-align: left;
background-color: #eee;
width: 80%;
white-space: pre-wrap;
margin: auto;
margin-top: 3em;
padding: 0.5em;
border-radius: 1em;
border: 1px solid #ccc;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

View file

@ -0,0 +1,93 @@
<?php
/*******************************************************************************
* Copyright (C) 2007 Easter-eggs
* https://ldapsaisie.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.
******************************************************************************/
/**
* Check support of showSupportInfo addon by LdapSaisie
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @return boolean true if LSaccessRightsMatrixView addon is totally supported, false in other case
*/
function LSaddon_showSupportInfo_support() {
return LSsession :: registerLSaddonView(
'showSupportInfo',
'showMySupportInfo',
_('Show my support information'),
'showMySupportInfoView',
array('user'),
(defined('SHOW_SUPPORT_INFO_IN_MENU') && constant('SHOW_SUPPORT_INFO_IN_MENU'))
);
}
function showMySupportInfo($object) {
LSurl :: redirect('addon/showSupportInfo/showMySupportInfo');
}
function showMySupportInfoView() {
$object = LSsession :: get('authenticated_user');
LStemplate :: assign('public_url', LSurl :: get_public_absolute_url(""));
LStemplate :: assign('object', $object);
LStemplate :: assign('ldap_server_id', LSsession :: get('ldap_server_id'));
LStemplate :: assign('root_dn', LSsession :: get('root_dn'));
LStemplate :: assign('top_dn', LSsession :: get('top_dn'));
LStemplate :: assign('sub_dn_name', LSsession :: get('sub_dn_name'));
LStemplate :: assign('sub_dn_label', LSsession :: get('sub_dn_label'));
LStemplate :: assign('LSprofiles', LSsession :: get('LSprofiles'));
if (isset($_REQUEST['download'])) {
header('Content-Type: text/plain');
header('Content-disposition: attachment; filename="'.$object->rdn[0].'-support-info.txt"');
print(LStemplate::fetch('showSupportInfo_raw.tpl'));
exit();
}
LStemplate :: assign(
'pagetitle',
getFData(
_('%{name}: Support information'),
$object->getDisplayName()
)
);
$LSview_actions = array();
$LSview_actions['download'] = array (
'label' => _('Download'),
'url' => LSurl :: $request->current_url.'?download',
'action' => 'vcard'
);
$LSview_actions['return'] = array (
'label' => _('Go back'),
'url' => 'object/SELF',
'action' => 'view'
);
LStemplate :: assign('LSview_actions', $LSview_actions);
if (LSsession :: loadLSclass('LSform')) {
LSform :: loadDependenciesDisplayView();
}
LStemplate :: addCssFile('showSupportInfo.css');
LSsession :: setTemplate('showSupportInfo.tpl');
// Display template
LSsession :: displayTemplate();
exit();
}

View file

@ -259,7 +259,9 @@ class LSsession {
case 'api_mode': case 'api_mode':
return boolval(self :: $api_mode); return boolval(self :: $api_mode);
case 'ldap_server_id': case 'ldap_server_id':
return boolval(self :: $ldapServerId); return intval(self :: $ldapServerId);
case 'LSprofiles':
return self :: $LSprofiles;
} }
return null; return null;
} }

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: 2023-01-09 17:55+0100\n" "PO-Revision-Date: 2023-01-09 19:11+0100\n"
"Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n" "Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise." "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n" "org>\n"
@ -233,6 +233,24 @@ msgstr "MAIL : Erreur durant l'envoie de votre mail"
msgid "PhpLdapAdmin Support : The constant %{const} is not defined." msgid "PhpLdapAdmin Support : The constant %{const} is not defined."
msgstr "Support PhpLdapAdmin : La constante %{const} n'est pas définie." msgstr "Support PhpLdapAdmin : La constante %{const} n'est pas définie."
#: includes/addons/LSaddons.showSupportInfo.php:34
msgid "Show my support information"
msgstr "Voir mes informations pour le support"
#: includes/addons/LSaddons.showSupportInfo.php:65
msgid "%{name}: Support information"
msgstr "%{name} : Informations pour le support"
#: includes/addons/LSaddons.showSupportInfo.php:72
msgid "Download"
msgstr "Télécharger"
#: includes/addons/LSaddons.showSupportInfo.php:77
#: includes/addons/LSaddons.accesslog.php:181
#: includes/addons/LSaddons.showTechInfo.php:117
msgid "Go back"
msgstr "Retour"
#: includes/addons/LSaddons.dyngroup.php:27 #: includes/addons/LSaddons.dyngroup.php:27
msgid "Dynamic groups support: The constant %{const} is not defined." msgid "Dynamic groups support: The constant %{const} is not defined."
msgstr "" msgstr ""
@ -377,16 +395,11 @@ msgid "Increment"
msgstr "Incrémenter" msgstr "Incrémenter"
#: includes/addons/LSaddons.accesslog.php:176 #: includes/addons/LSaddons.accesslog.php:176
#: includes/class/class.LSsession.php:1860 includes/routes.php:157 #: includes/class/class.LSsession.php:1862 includes/routes.php:157
#: includes/routes.php:470 templates/default/select.tpl:29 #: includes/routes.php:470 templates/default/select.tpl:29
msgid "Refresh" msgid "Refresh"
msgstr "Rafraîchir" msgstr "Rafraîchir"
#: includes/addons/LSaddons.accesslog.php:181
#: includes/addons/LSaddons.showTechInfo.php:117
msgid "Go back"
msgstr "Retour"
#: includes/addons/LSaddons.supann.php:27 #: includes/addons/LSaddons.supann.php:27
msgid "SUPANN Support : The constant %{const} is not defined." msgid "SUPANN Support : The constant %{const} is not defined."
msgstr "Support SUPPAN : La constante %{const} n'est pas définie." msgstr "Support SUPPAN : La constante %{const} n'est pas définie."
@ -1266,48 +1279,48 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "Nettoyer" msgstr "Nettoyer"
#: includes/class/class.LSsession.php:501 #: includes/class/class.LSsession.php:503
msgid "Copy to clipboard" msgid "Copy to clipboard"
msgstr "Copier dans le presse-papier" msgstr "Copier dans le presse-papier"
#: includes/class/class.LSsession.php:502 #: includes/class/class.LSsession.php:504
msgid "Copied!" msgid "Copied!"
msgstr "Copié !" msgstr "Copié !"
#: includes/class/class.LSsession.php:1645 #: includes/class/class.LSsession.php:1647
msgid "Connection" msgid "Connection"
msgstr "Connexion" msgstr "Connexion"
#: includes/class/class.LSsession.php:1665 #: includes/class/class.LSsession.php:1667
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "Récupération de votre mot de passe" msgstr "Récupération de votre mot de passe"
#: includes/class/class.LSsession.php:1674 #: includes/class/class.LSsession.php:1676
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
"Merci d'entrer votre identifiant pour poursuivre la procédure de récupération" "Merci d'entrer votre identifiant pour poursuivre la procédure de récupération"
#: includes/class/class.LSsession.php:1679 #: includes/class/class.LSsession.php:1681
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
"Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les " "Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les "
"indications qu'il contient." "indications qu'il contient."
#: includes/class/class.LSsession.php:1688 #: includes/class/class.LSsession.php:1690
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}."
#: includes/class/class.LSsession.php:2948 templates/default/select.tpl:20 #: includes/class/class.LSsession.php:2950 templates/default/select.tpl:20
#: templates/default/recoverpassword.tpl:17 templates/default/login.tpl:16 #: templates/default/recoverpassword.tpl:17 templates/default/login.tpl:16
msgid "Level" msgid "Level"
msgstr "Niveau" msgstr "Niveau"
#: includes/class/class.LSsession.php:3116 #: includes/class/class.LSsession.php:3118
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."
#: includes/class/class.LSsession.php:3119 #: includes/class/class.LSsession.php:3121
msgid "" msgid ""
"LSsession : The addon '%{addon}' support is uncertain. Verify system " "LSsession : The addon '%{addon}' support is uncertain. Verify system "
"compatibility and the add-on configuration." "compatibility and the add-on configuration."
@ -1315,53 +1328,53 @@ msgstr ""
"LSsession : Le support de l'addon '%{addon}' est incertain. Vérifiez la " "LSsession : Le support de l'addon '%{addon}' est incertain. Vérifiez la "
"compatibilité du système et la configuration de l'add-on." "compatibilité du système et la configuration de l'add-on."
#: includes/class/class.LSsession.php:3122 #: includes/class/class.LSsession.php:3124
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."
#: includes/class/class.LSsession.php:3125 #: includes/class/class.LSsession.php:3127
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 " "LSsession : Impossible de charger le type d'LSobject '%{type}' : type "
"inconnu." "inconnu."
#: includes/class/class.LSsession.php:3128 #: includes/class/class.LSsession.php:3130
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}'."
#: includes/class/class.LSsession.php:3131 #: includes/class/class.LSsession.php:3133
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."
#: includes/class/class.LSsession.php:3134 #: includes/class/class.LSsession.php:3136
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é."
#: includes/class/class.LSsession.php:3137 #: includes/class/class.LSsession.php:3139
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})."
#: includes/class/class.LSsession.php:3140 #: includes/class/class.LSsession.php:3142
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."
#: includes/class/class.LSsession.php:3143 #: includes/class/class.LSsession.php:3145
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier." msgstr "LSsession : Impossible de vous identifier."
#: includes/class/class.LSsession.php:3146 #: includes/class/class.LSsession.php:3148
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."
#: includes/class/class.LSsession.php:3149 #: includes/class/class.LSsession.php:3151
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 manquantes pour afficher cette page." msgstr "LSsession : Des informations sont manquantes pour afficher cette page."
#: includes/class/class.LSsession.php:3152 #: includes/class/class.LSsession.php:3154
msgid "" msgid ""
"LSsession : The function '%{function}' of the custom action " "LSsession : The function '%{function}' of the custom action "
"'%{customAction}' does not exists or is not configured." "'%{customAction}' does not exists or is not configured."
@ -1369,24 +1382,24 @@ msgstr ""
"LSsession : La fonction '%{function}' de l'action personnalisée " "LSsession : La fonction '%{function}' de l'action personnalisée "
"'%{customAction}' n'existe pas ou n'est pas configurée." "'%{customAction}' n'existe pas ou n'est pas configurée."
#: includes/class/class.LSsession.php:3155 #: includes/class/class.LSsession.php:3157
msgid "LSsession : Fail to retrieve user's LDAP credentials from LSauth." msgid "LSsession : Fail to retrieve 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."
#: includes/class/class.LSsession.php:3158 #: includes/class/class.LSsession.php:3160
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."
#: includes/class/class.LSsession.php:3161 #: includes/class/class.LSsession.php:3163
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éfini pour ce type d'objet." msgstr "LSsession : Aucun format d'entrée/sortie défini pour ce type d'objet."
#: includes/class/class.LSsession.php:3164 #: includes/class/class.LSsession.php:3166
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})"
@ -1394,13 +1407,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})"
#: includes/class/class.LSsession.php:3167 #: includes/class/class.LSsession.php:3169
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."
#: includes/class/class.LSsession.php:3170 #: includes/class/class.LSsession.php:3172
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
@ -1408,7 +1421,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."
#: includes/class/class.LSsession.php:3173 #: includes/class/class.LSsession.php:3175
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
@ -1416,7 +1429,7 @@ 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})"
#: includes/class/class.LSsession.php:3176 #: includes/class/class.LSsession.php:3178
msgid "" msgid ""
"LSsession : The function '%{func}' configured for the view '%{view}' of the " "LSsession : The function '%{func}' configured for the view '%{view}' of the "
"LSaddon '%{addon}' is not declared in the LSaddon file." "LSaddon '%{addon}' is not declared in the LSaddon file."
@ -1424,11 +1437,11 @@ msgstr ""
"LSsession : la fonction '%{func}' configurée pour la vue '%{view}' du " "LSsession : la fonction '%{func}' configurée pour la vue '%{view}' du "
"LSaddon '%{addon}' n'est pas déclaré dans le fichier du LSaddon." "LSaddon '%{addon}' n'est pas déclaré dans le fichier du LSaddon."
#: includes/class/class.LSsession.php:3179 #: includes/class/class.LSsession.php:3181
msgid "LSsession : Failed to load resource file '%{file}'." msgid "LSsession : Failed to load resource file '%{file}'."
msgstr "LSsession : Impossible de charger le fichier de ressource '%{file}'." msgstr "LSsession : Impossible de charger le fichier de ressource '%{file}'."
#: includes/class/class.LSsession.php:3182 #: includes/class/class.LSsession.php:3184
msgid "" msgid ""
"LSsession : The function '%{func}' configured for the view '%{view}' of the " "LSsession : The function '%{func}' configured for the view '%{view}' of the "
"LSaddon '%{addon}' doesn't exist." "LSaddon '%{addon}' doesn't exist."
@ -1436,11 +1449,11 @@ msgstr ""
"LSsession : la fonction '%{func}' configurée pour la vue '%{view}' du " "LSsession : la fonction '%{func}' configurée pour la vue '%{view}' du "
"LSaddon '%{addon}' n'existe pas." "LSaddon '%{addon}' n'existe pas."
#: includes/class/class.LSsession.php:3185 #: includes/class/class.LSsession.php:3187
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."
#: includes/class/class.LSsession.php:3188 #: includes/class/class.LSsession.php:3190
msgid "" msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please " "LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it." "upgrade it."
@ -1448,7 +1461,7 @@ msgstr ""
"LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de " "LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de "
"vues. Merci de le mettre à jour." "vues. Merci de le mettre à jour."
#: includes/class/class.LSsession.php:3191 #: includes/class/class.LSsession.php:3193
msgid "" msgid ""
"LSsession : You have been redirect from an old-style URL %{url}. Please " "LSsession : You have been redirect from an old-style URL %{url}. Please "
"upgrade this link." "upgrade this link."
@ -1456,7 +1469,7 @@ msgstr ""
"LSsession : Vous avez été redirigé depuis une ancienne URL %{url}. Merci de " "LSsession : Vous avez été redirigé depuis une ancienne URL %{url}. Merci de "
"le mettre à jour ce lien." "le mettre à jour ce lien."
#: includes/class/class.LSsession.php:3194 #: includes/class/class.LSsession.php:3196
msgid "" msgid ""
"LSsession : You always seem to use %{old} in your custom code: Please " "LSsession : You always seem to use %{old} in your custom code: Please "
"upgrade it and use %{new}.<pre>\n" "upgrade it and use %{new}.<pre>\n"

View file

@ -178,6 +178,24 @@ msgstr ""
msgid "PhpLdapAdmin Support : The constant %{const} is not defined." msgid "PhpLdapAdmin Support : The constant %{const} is not defined."
msgstr "" msgstr ""
#: includes/addons/LSaddons.showSupportInfo.php:34
msgid "Show my support information"
msgstr ""
#: includes/addons/LSaddons.showSupportInfo.php:65
msgid "%{name}: Support information"
msgstr ""
#: includes/addons/LSaddons.showSupportInfo.php:72
msgid "Download"
msgstr ""
#: includes/addons/LSaddons.showSupportInfo.php:77
#: includes/addons/LSaddons.accesslog.php:181
#: includes/addons/LSaddons.showTechInfo.php:117
msgid "Go back"
msgstr ""
#: includes/addons/LSaddons.dyngroup.php:27 #: includes/addons/LSaddons.dyngroup.php:27
msgid "Dynamic groups support: The constant %{const} is not defined." msgid "Dynamic groups support: The constant %{const} is not defined."
msgstr "" msgstr ""
@ -307,16 +325,11 @@ msgid "Increment"
msgstr "" msgstr ""
#: includes/addons/LSaddons.accesslog.php:176 #: includes/addons/LSaddons.accesslog.php:176
#: includes/class/class.LSsession.php:1860 includes/routes.php:157 #: includes/class/class.LSsession.php:1862 includes/routes.php:157
#: includes/routes.php:470 templates/default/select.tpl:29 #: includes/routes.php:470 templates/default/select.tpl:29
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
#: includes/addons/LSaddons.accesslog.php:181
#: includes/addons/LSaddons.showTechInfo.php:117
msgid "Go back"
msgstr ""
#: includes/addons/LSaddons.supann.php:27 #: includes/addons/LSaddons.supann.php:27
msgid "SUPANN Support : The constant %{const} is not defined." msgid "SUPANN Support : The constant %{const} is not defined."
msgstr "" msgstr ""
@ -1084,165 +1097,165 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:501 #: includes/class/class.LSsession.php:503
msgid "Copy to clipboard" msgid "Copy to clipboard"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:502 #: includes/class/class.LSsession.php:504
msgid "Copied!" msgid "Copied!"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1645 #: includes/class/class.LSsession.php:1647
msgid "Connection" msgid "Connection"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1665 #: includes/class/class.LSsession.php:1667
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1674 #: includes/class/class.LSsession.php:1676
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1679 #: includes/class/class.LSsession.php:1681
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1688 #: includes/class/class.LSsession.php:1690
msgid "Your new password has been sent to %{mail}." msgid "Your new password has been sent to %{mail}."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2948 templates/default/select.tpl:20 #: includes/class/class.LSsession.php:2950 templates/default/select.tpl:20
#: templates/default/recoverpassword.tpl:17 templates/default/login.tpl:16 #: templates/default/recoverpassword.tpl:17 templates/default/login.tpl:16
msgid "Level" msgid "Level"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3116 #: includes/class/class.LSsession.php:3118
msgid "LSsession : The constant '%{const}' is not defined." msgid "LSsession : The constant '%{const}' is not defined."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3119 #: includes/class/class.LSsession.php:3121
msgid "" msgid ""
"LSsession : The addon '%{addon}' support is uncertain. Verify system " "LSsession : The addon '%{addon}' support is uncertain. Verify system "
"compatibility and the add-on configuration." "compatibility and the add-on configuration."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3122 #: includes/class/class.LSsession.php:3124
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 ""
#: includes/class/class.LSsession.php:3125 #: includes/class/class.LSsession.php:3127
msgid "LSsession : Failed to load LSobject type '%{type}' : unknon type." msgid "LSsession : Failed to load LSobject type '%{type}' : unknon type."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3128 #: includes/class/class.LSsession.php:3130
msgid "LSsession : Failed to load LSclass '%{class}'." msgid "LSsession : Failed to load LSclass '%{class}'."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3131 #: includes/class/class.LSsession.php:3133
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3134 #: includes/class/class.LSsession.php:3136
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3137 #: includes/class/class.LSsession.php:3139
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3140 #: includes/class/class.LSsession.php:3142
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3143 #: includes/class/class.LSsession.php:3145
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3146 #: includes/class/class.LSsession.php:3148
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3149 #: includes/class/class.LSsession.php:3151
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3152 #: includes/class/class.LSsession.php:3154
msgid "" msgid ""
"LSsession : The function '%{function}' of the custom action " "LSsession : The function '%{function}' of the custom action "
"'%{customAction}' does not exists or is not configured." "'%{customAction}' does not exists or is not configured."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3155 #: includes/class/class.LSsession.php:3157
msgid "LSsession : Fail to retrieve user's LDAP credentials from LSauth." msgid "LSsession : Fail to retrieve user's LDAP credentials from LSauth."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3158 #: includes/class/class.LSsession.php:3160
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 ""
#: includes/class/class.LSsession.php:3161 #: includes/class/class.LSsession.php:3163
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3164 #: includes/class/class.LSsession.php:3166
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 ""
#: includes/class/class.LSsession.php:3167 #: includes/class/class.LSsession.php:3169
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3170 #: includes/class/class.LSsession.php:3172
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 ""
#: includes/class/class.LSsession.php:3173 #: includes/class/class.LSsession.php:3175
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3176 #: includes/class/class.LSsession.php:3178
msgid "" msgid ""
"LSsession : The function '%{func}' configured for the view '%{view}' of the " "LSsession : The function '%{func}' configured for the view '%{view}' of the "
"LSaddon '%{addon}' is not declared in the LSaddon file." "LSaddon '%{addon}' is not declared in the LSaddon file."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3179 #: includes/class/class.LSsession.php:3181
msgid "LSsession : Failed to load resource file '%{file}'." msgid "LSsession : Failed to load resource file '%{file}'."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3182 #: includes/class/class.LSsession.php:3184
msgid "" msgid ""
"LSsession : The function '%{func}' configured for the view '%{view}' of the " "LSsession : The function '%{func}' configured for the view '%{view}' of the "
"LSaddon '%{addon}' doesn't exist." "LSaddon '%{addon}' doesn't exist."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3185 #: includes/class/class.LSsession.php:3187
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3188 #: includes/class/class.LSsession.php:3190
msgid "" msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please " "LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it." "upgrade it."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3191 #: includes/class/class.LSsession.php:3193
msgid "" msgid ""
"LSsession : You have been redirect from an old-style URL %{url}. Please " "LSsession : You have been redirect from an old-style URL %{url}. Please "
"upgrade this link." "upgrade this link."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:3194 #: includes/class/class.LSsession.php:3196
msgid "" msgid ""
"LSsession : You always seem to use %{old} in your custom code: Please " "LSsession : You always seem to use %{old} in your custom code: Please "
"upgrade it and use %{new}.<pre>\n" "upgrade it and use %{new}.<pre>\n"

View file

@ -0,0 +1,10 @@
{extends file='ls:base_connected.tpl'}
{block name="content"}
<div id='showSupportInfo'>
<h1>{$pagetitle}</h1>
{include file='ls:LSview_actions.tpl'}
<pre>
{include file='ls:showSupportInfo_raw.tpl'|escape:"htmlall"}
</pre>
</div>
{/block}

View file

@ -0,0 +1,19 @@
Access URL: {$public_url}
Connected user: {$object->getDisplayName()}
- Object type: {$object->getType()}
- DN: {$object->getDn()}
LDAP server (#{$ldap_server_id}):
- Root DN: {$root_dn}
- Top DN: {$top_dn}
- Sub DN: {if $sub_dn_name}{$sub_dn_name} ({$sub_dn_label}){else}None{/if}
LSprofiles:
{foreach $LSprofiles as $LSprofile => $dns}
- {$LSprofile}:
{foreach $dns as $dn}
- {$dn}
{/foreach}
{/foreach}