mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
Add LSaddon::showSupportInfo
This commit is contained in:
parent
43cb6c3f93
commit
4f69036f2f
15 changed files with 324 additions and 84 deletions
|
@ -19,6 +19,7 @@
|
|||
&conf-LSaddon_mailquota;
|
||||
&conf-LSaddon_phpldapadmin;
|
||||
&conf-LSaddon_ppolicy;
|
||||
&conf-LSaddon_showSupportInfo;
|
||||
&conf-LSaddon_showTechInfo;
|
||||
|
||||
</sect1>
|
||||
|
|
|
@ -9,4 +9,5 @@
|
|||
<!ENTITY conf-LSaddon_mailquota SYSTEM "LSaddon_mailquota.docbook">
|
||||
<!ENTITY conf-LSaddon_phpldapadmin SYSTEM "LSaddon_phpldapadmin.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">
|
||||
|
|
44
doc/conf/LSaddon/LSaddon_showSupportInfo.docbook
Normal file
44
doc/conf/LSaddon/LSaddon_showSupportInfo.docbook
Normal 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>
|
30
src/conf/LSaddons/config.LSaddons.showSupportInfo.php
Normal file
30
src/conf/LSaddons/config.LSaddons.showSupportInfo.php
Normal 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);
|
|
@ -27,5 +27,6 @@ $GLOBALS['LSaddons']['loads'] = array (
|
|||
'maildir',
|
||||
'dyngroup',
|
||||
'showTechInfo',
|
||||
'showSupportInfo',
|
||||
'LSaccessRightsMatrixView',
|
||||
);
|
||||
|
|
13
src/css/default/showSupportInfo.css
Normal file
13
src/css/default/showSupportInfo.css
Normal 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;
|
||||
}
|
BIN
src/images/default/terminal.png
Normal file
BIN
src/images/default/terminal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 507 B |
BIN
src/images/default/vcard.png
Normal file
BIN
src/images/default/vcard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 533 B |
93
src/includes/addons/LSaddons.showSupportInfo.php
Normal file
93
src/includes/addons/LSaddons.showSupportInfo.php
Normal 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();
|
||||
}
|
|
@ -259,7 +259,9 @@ class LSsession {
|
|||
case 'api_mode':
|
||||
return boolval(self :: $api_mode);
|
||||
case 'ldap_server_id':
|
||||
return boolval(self :: $ldapServerId);
|
||||
return intval(self :: $ldapServerId);
|
||||
case 'LSprofiles':
|
||||
return self :: $LSprofiles;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgstr ""
|
|||
"Project-Id-Version: LdapSaisie\n"
|
||||
"Report-Msgid-Bugs-To: \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"
|
||||
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
|
||||
"org>\n"
|
||||
|
@ -233,6 +233,24 @@ msgstr "MAIL : Erreur durant l'envoie de votre mail"
|
|||
msgid "PhpLdapAdmin Support : The constant %{const} is not defined."
|
||||
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
|
||||
msgid "Dynamic groups support: The constant %{const} is not defined."
|
||||
msgstr ""
|
||||
|
@ -377,16 +395,11 @@ msgid "Increment"
|
|||
msgstr "Incrémenter"
|
||||
|
||||
#: 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
|
||||
msgid "Refresh"
|
||||
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
|
||||
msgid "SUPANN Support : The constant %{const} is not defined."
|
||||
msgstr "Support SUPPAN : La constante %{const} n'est pas définie."
|
||||
|
@ -1266,48 +1279,48 @@ msgstr ""
|
|||
msgid "Clear"
|
||||
msgstr "Nettoyer"
|
||||
|
||||
#: includes/class/class.LSsession.php:501
|
||||
#: includes/class/class.LSsession.php:503
|
||||
msgid "Copy to clipboard"
|
||||
msgstr "Copier dans le presse-papier"
|
||||
|
||||
#: includes/class/class.LSsession.php:502
|
||||
#: includes/class/class.LSsession.php:504
|
||||
msgid "Copied!"
|
||||
msgstr "Copié !"
|
||||
|
||||
#: includes/class/class.LSsession.php:1645
|
||||
#: includes/class/class.LSsession.php:1647
|
||||
msgid "Connection"
|
||||
msgstr "Connexion"
|
||||
|
||||
#: includes/class/class.LSsession.php:1665
|
||||
#: includes/class/class.LSsession.php:1667
|
||||
msgid "Recovery of your credentials"
|
||||
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"
|
||||
msgstr ""
|
||||
"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 ""
|
||||
"An email has been sent to %{mail}. Please follow the instructions on it."
|
||||
msgstr ""
|
||||
"Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les "
|
||||
"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}."
|
||||
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
|
||||
msgid "Level"
|
||||
msgstr "Niveau"
|
||||
|
||||
#: includes/class/class.LSsession.php:3116
|
||||
#: includes/class/class.LSsession.php:3118
|
||||
msgid "LSsession : The constant '%{const}' is not defined."
|
||||
msgstr "LSsession : La constante '%{const}' n'est pas définie."
|
||||
|
||||
#: includes/class/class.LSsession.php:3119
|
||||
#: includes/class/class.LSsession.php:3121
|
||||
msgid ""
|
||||
"LSsession : The addon '%{addon}' support is uncertain. Verify system "
|
||||
"compatibility and the add-on configuration."
|
||||
|
@ -1315,53 +1328,53 @@ msgstr ""
|
|||
"LSsession : Le support de l'addon '%{addon}' est incertain. Vérifiez la "
|
||||
"compatibilité du système et la configuration de l'add-on."
|
||||
|
||||
#: includes/class/class.LSsession.php:3122
|
||||
#: includes/class/class.LSsession.php:3124
|
||||
msgid ""
|
||||
"LSsession : LDAP server's configuration data are invalid. Can't connect."
|
||||
msgstr ""
|
||||
"LSsession : Les données de configuration du serveur LDAP sont invalide. "
|
||||
"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."
|
||||
msgstr ""
|
||||
"LSsession : Impossible de charger le type d'LSobject '%{type}' : type "
|
||||
"inconnu."
|
||||
|
||||
#: includes/class/class.LSsession.php:3128
|
||||
#: includes/class/class.LSsession.php:3130
|
||||
msgid "LSsession : Failed to load 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."
|
||||
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."
|
||||
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})."
|
||||
msgstr ""
|
||||
"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."
|
||||
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."
|
||||
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."
|
||||
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."
|
||||
msgstr "LSsession : Des informations sont manquantes pour afficher cette page."
|
||||
|
||||
#: includes/class/class.LSsession.php:3152
|
||||
#: includes/class/class.LSsession.php:3154
|
||||
msgid ""
|
||||
"LSsession : The function '%{function}' of the custom action "
|
||||
"'%{customAction}' does not exists or is not configured."
|
||||
|
@ -1369,24 +1382,24 @@ msgstr ""
|
|||
"LSsession : La fonction '%{function}' de l'action personnalisé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."
|
||||
msgstr ""
|
||||
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
|
||||
"depuis LSauth."
|
||||
|
||||
#: includes/class/class.LSsession.php:3158
|
||||
#: includes/class/class.LSsession.php:3160
|
||||
msgid ""
|
||||
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
|
||||
msgstr ""
|
||||
"LSsession : Impossible de se reconnecter au serveur LDAP avec les "
|
||||
"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."
|
||||
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 ""
|
||||
"LSsession : Error during creation of list of levels. Contact administrators. "
|
||||
"(Code : %{code})"
|
||||
|
@ -1394,13 +1407,13 @@ msgstr ""
|
|||
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
|
||||
"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."
|
||||
msgstr ""
|
||||
"LSsession : La récupération de mot de passe est désactivée pour ce serveur "
|
||||
"LDAP."
|
||||
|
||||
#: includes/class/class.LSsession.php:3170
|
||||
#: includes/class/class.LSsession.php:3172
|
||||
msgid ""
|
||||
"LSsession : Some informations are missing to recover your password. Contact "
|
||||
"administrators."
|
||||
|
@ -1408,7 +1421,7 @@ msgstr ""
|
|||
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
|
||||
"de passe. Contacter les administrateurs."
|
||||
|
||||
#: includes/class/class.LSsession.php:3173
|
||||
#: includes/class/class.LSsession.php:3175
|
||||
msgid ""
|
||||
"LSsession : Error during password recovery. Contact administrators.(Step : "
|
||||
"%{step})"
|
||||
|
@ -1416,7 +1429,7 @@ msgstr ""
|
|||
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
|
||||
"les administrateurs. (Etape : %{step})"
|
||||
|
||||
#: includes/class/class.LSsession.php:3176
|
||||
#: includes/class/class.LSsession.php:3178
|
||||
msgid ""
|
||||
"LSsession : The function '%{func}' configured for the view '%{view}' of the "
|
||||
"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 "
|
||||
"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}'."
|
||||
msgstr "LSsession : Impossible de charger le fichier de ressource '%{file}'."
|
||||
|
||||
#: includes/class/class.LSsession.php:3182
|
||||
#: includes/class/class.LSsession.php:3184
|
||||
msgid ""
|
||||
"LSsession : The function '%{func}' configured for the view '%{view}' of the "
|
||||
"LSaddon '%{addon}' doesn't exist."
|
||||
|
@ -1436,11 +1449,11 @@ msgstr ""
|
|||
"LSsession : la fonction '%{func}' configurée pour la vue '%{view}' du "
|
||||
"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."
|
||||
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 ""
|
||||
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
|
||||
"upgrade it."
|
||||
|
@ -1448,7 +1461,7 @@ msgstr ""
|
|||
"LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de "
|
||||
"vues. Merci de le mettre à jour."
|
||||
|
||||
#: includes/class/class.LSsession.php:3191
|
||||
#: includes/class/class.LSsession.php:3193
|
||||
msgid ""
|
||||
"LSsession : You have been redirect from an old-style URL %{url}. Please "
|
||||
"upgrade this link."
|
||||
|
@ -1456,7 +1469,7 @@ msgstr ""
|
|||
"LSsession : Vous avez été redirigé depuis une ancienne URL %{url}. Merci de "
|
||||
"le mettre à jour ce lien."
|
||||
|
||||
#: includes/class/class.LSsession.php:3194
|
||||
#: includes/class/class.LSsession.php:3196
|
||||
msgid ""
|
||||
"LSsession : You always seem to use %{old} in your custom code: Please "
|
||||
"upgrade it and use %{new}.<pre>\n"
|
||||
|
|
|
@ -178,6 +178,24 @@ msgstr ""
|
|||
msgid "PhpLdapAdmin Support : The constant %{const} is not defined."
|
||||
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
|
||||
msgid "Dynamic groups support: The constant %{const} is not defined."
|
||||
msgstr ""
|
||||
|
@ -307,16 +325,11 @@ msgid "Increment"
|
|||
msgstr ""
|
||||
|
||||
#: 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
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
|
||||
#: includes/addons/LSaddons.accesslog.php:181
|
||||
#: includes/addons/LSaddons.showTechInfo.php:117
|
||||
msgid "Go back"
|
||||
msgstr ""
|
||||
|
||||
#: includes/addons/LSaddons.supann.php:27
|
||||
msgid "SUPANN Support : The constant %{const} is not defined."
|
||||
msgstr ""
|
||||
|
@ -1084,165 +1097,165 @@ msgstr ""
|
|||
msgid "Clear"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:501
|
||||
#: includes/class/class.LSsession.php:503
|
||||
msgid "Copy to clipboard"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:502
|
||||
#: includes/class/class.LSsession.php:504
|
||||
msgid "Copied!"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:1645
|
||||
#: includes/class/class.LSsession.php:1647
|
||||
msgid "Connection"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:1665
|
||||
#: includes/class/class.LSsession.php:1667
|
||||
msgid "Recovery of your credentials"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:1674
|
||||
#: includes/class/class.LSsession.php:1676
|
||||
msgid "Please fill the identifier field to proceed recovery procedure"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:1679
|
||||
#: includes/class/class.LSsession.php:1681
|
||||
msgid ""
|
||||
"An email has been sent to %{mail}. Please follow the instructions on it."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:1688
|
||||
#: includes/class/class.LSsession.php:1690
|
||||
msgid "Your new password has been sent to %{mail}."
|
||||
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
|
||||
msgid "Level"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3116
|
||||
#: includes/class/class.LSsession.php:3118
|
||||
msgid "LSsession : The constant '%{const}' is not defined."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3119
|
||||
#: includes/class/class.LSsession.php:3121
|
||||
msgid ""
|
||||
"LSsession : The addon '%{addon}' support is uncertain. Verify system "
|
||||
"compatibility and the add-on configuration."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3122
|
||||
#: includes/class/class.LSsession.php:3124
|
||||
msgid ""
|
||||
"LSsession : LDAP server's configuration data are invalid. Can't connect."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3125
|
||||
#: includes/class/class.LSsession.php:3127
|
||||
msgid "LSsession : Failed to load LSobject type '%{type}' : unknon type."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3128
|
||||
#: includes/class/class.LSsession.php:3130
|
||||
msgid "LSsession : Failed to load LSclass '%{class}'."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3131
|
||||
#: includes/class/class.LSsession.php:3133
|
||||
msgid "LSsession : Login or password incorrect."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3134
|
||||
#: includes/class/class.LSsession.php:3136
|
||||
msgid "LSsession : Impossible to identify you : Duplication of identities."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3137
|
||||
#: includes/class/class.LSsession.php:3139
|
||||
msgid "LSsession : Can't load class of authentification (%{class})."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3140
|
||||
#: includes/class/class.LSsession.php:3142
|
||||
msgid "LSsession : Can't connect to LDAP server."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3143
|
||||
#: includes/class/class.LSsession.php:3145
|
||||
msgid "LSsession : Impossible to authenticate you."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3146
|
||||
#: includes/class/class.LSsession.php:3148
|
||||
msgid "LSsession : Your are not authorized to do this action."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3149
|
||||
#: includes/class/class.LSsession.php:3151
|
||||
msgid "LSsession : Some informations are missing to display this page."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3152
|
||||
#: includes/class/class.LSsession.php:3154
|
||||
msgid ""
|
||||
"LSsession : The function '%{function}' of the custom action "
|
||||
"'%{customAction}' does not exists or is not configured."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3155
|
||||
#: includes/class/class.LSsession.php:3157
|
||||
msgid "LSsession : Fail to retrieve user's LDAP credentials from LSauth."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3158
|
||||
#: includes/class/class.LSsession.php:3160
|
||||
msgid ""
|
||||
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3161
|
||||
#: includes/class/class.LSsession.php:3163
|
||||
msgid "LSsession : No import/export format define for this object type."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3164
|
||||
#: includes/class/class.LSsession.php:3166
|
||||
msgid ""
|
||||
"LSsession : Error during creation of list of levels. Contact administrators. "
|
||||
"(Code : %{code})"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3167
|
||||
#: includes/class/class.LSsession.php:3169
|
||||
msgid "LSsession : The password recovery is disabled for this LDAP server."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3170
|
||||
#: includes/class/class.LSsession.php:3172
|
||||
msgid ""
|
||||
"LSsession : Some informations are missing to recover your password. Contact "
|
||||
"administrators."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3173
|
||||
#: includes/class/class.LSsession.php:3175
|
||||
msgid ""
|
||||
"LSsession : Error during password recovery. Contact administrators.(Step : "
|
||||
"%{step})"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3176
|
||||
#: includes/class/class.LSsession.php:3178
|
||||
msgid ""
|
||||
"LSsession : The function '%{func}' configured for the view '%{view}' of the "
|
||||
"LSaddon '%{addon}' is not declared in the LSaddon file."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3179
|
||||
#: includes/class/class.LSsession.php:3181
|
||||
msgid "LSsession : Failed to load resource file '%{file}'."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3182
|
||||
#: includes/class/class.LSsession.php:3184
|
||||
msgid ""
|
||||
"LSsession : The function '%{func}' configured for the view '%{view}' of the "
|
||||
"LSaddon '%{addon}' doesn't exist."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3185
|
||||
#: includes/class/class.LSsession.php:3187
|
||||
msgid "LSsession : invalid related object's DN pass in parameter."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3188
|
||||
#: includes/class/class.LSsession.php:3190
|
||||
msgid ""
|
||||
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
|
||||
"upgrade it."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3191
|
||||
#: includes/class/class.LSsession.php:3193
|
||||
msgid ""
|
||||
"LSsession : You have been redirect from an old-style URL %{url}. Please "
|
||||
"upgrade this link."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class/class.LSsession.php:3194
|
||||
#: includes/class/class.LSsession.php:3196
|
||||
msgid ""
|
||||
"LSsession : You always seem to use %{old} in your custom code: Please "
|
||||
"upgrade it and use %{new}.<pre>\n"
|
||||
|
|
10
src/templates/default/showSupportInfo.tpl
Normal file
10
src/templates/default/showSupportInfo.tpl
Normal 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}
|
19
src/templates/default/showSupportInfo_raw.tpl
Normal file
19
src/templates/default/showSupportInfo_raw.tpl
Normal 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}
|
Loading…
Reference in a new issue