diff --git a/doc/conf/LSaddon.docbook b/doc/conf/LSaddon.docbook index c6cebe59..83266be9 100644 --- a/doc/conf/LSaddon.docbook +++ b/doc/conf/LSaddon.docbook @@ -19,6 +19,7 @@ &conf-LSaddon_mailquota; &conf-LSaddon_phpldapadmin; &conf-LSaddon_ppolicy; + &conf-LSaddon_showSupportInfo; &conf-LSaddon_showTechInfo; diff --git a/doc/conf/LSaddon/LSaddon.entities.xml b/doc/conf/LSaddon/LSaddon.entities.xml index 85d69c14..dbcdea25 100644 --- a/doc/conf/LSaddon/LSaddon.entities.xml +++ b/doc/conf/LSaddon/LSaddon.entities.xml @@ -9,4 +9,5 @@ + diff --git a/doc/conf/LSaddon/LSaddon_showSupportInfo.docbook b/doc/conf/LSaddon/LSaddon_showSupportInfo.docbook new file mode 100644 index 00000000..a4778eb2 --- /dev/null +++ b/doc/conf/LSaddon/LSaddon_showSupportInfo.docbook @@ -0,0 +1,44 @@ + + LSaddon_showSupportInfo + Cet &LSaddon; fourni une page affichant les informations utiles pour + l'équipe assurant le support de l'application. Cette page est accessible à + l'adresse addon/showSupportInfo/showMySupportInfo. 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. + + 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 SHOW_SUPPORT_INFO_IN_MENU à + True. + + Une fonction showMySupportInfo() 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 showMySupportInfo() comme + &customActions; : + + +Exemple d'utilisation array ( + 'showMySupportInfo' => array ( + 'function' => 'showMySupportInfo', + 'label' => 'Show my support information', + 'hideLabel' => True, + 'noConfirmation' => true, + 'disableOnSuccessMsg' => true, + 'icon' => 'terminal', + 'rights' => array ( + 'admin' + ), + ), + ), + [...] +);]]> + + +Le label et l'icône fournis dans cet exemple sont traduits et +délivrés avec &LdapSaisie;. + + diff --git a/src/conf/LSaddons/config.LSaddons.showSupportInfo.php b/src/conf/LSaddons/config.LSaddons.showSupportInfo.php new file mode 100644 index 00000000..0b2f06b7 --- /dev/null +++ b/src/conf/LSaddons/config.LSaddons.showSupportInfo.php @@ -0,0 +1,30 @@ + + * + * @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(); +} diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index 49f6a34c..df606f37 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -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; } diff --git a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo index eea7ca2f..a50fdbe0 100644 Binary files a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo and b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo differ diff --git a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po index f3a9f314..b7c64671 100644 --- a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po +++ b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po @@ -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 \n" "Language-Team: LdapSaisie \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}.
\n"
diff --git a/src/lang/ldapsaisie.pot b/src/lang/ldapsaisie.pot
index 30ed9bb0..1d2d55e3 100644
--- a/src/lang/ldapsaisie.pot
+++ b/src/lang/ldapsaisie.pot
@@ -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}.
\n"
diff --git a/src/templates/default/showSupportInfo.tpl b/src/templates/default/showSupportInfo.tpl
new file mode 100644
index 00000000..5bec0561
--- /dev/null
+++ b/src/templates/default/showSupportInfo.tpl
@@ -0,0 +1,10 @@
+{extends file='ls:base_connected.tpl'}
+{block name="content"}
+
+

{$pagetitle}

+ {include file='ls:LSview_actions.tpl'} +
+{include file='ls:showSupportInfo_raw.tpl'|escape:"htmlall"}
+
+
+{/block} diff --git a/src/templates/default/showSupportInfo_raw.tpl b/src/templates/default/showSupportInfo_raw.tpl new file mode 100644 index 00000000..6577e8cf --- /dev/null +++ b/src/templates/default/showSupportInfo_raw.tpl @@ -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}