Handle LSaddon views by using LSurl

This commit is contained in:
Benjamin Renard 2020-05-02 18:32:31 +02:00
parent 23d5161bfe
commit 5474cd2315
8 changed files with 172 additions and 172 deletions

View file

@ -1,49 +0,0 @@
<?php
/*******************************************************************************
* Copyright (C) 2007 Easter-eggs
* http://ldapsaisie.labs.libre-entreprise.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.
******************************************************************************/
require_once 'core.php';
if(LSsession :: startLSsession()) {
if ((isset($_GET['LSaddon'])) && (isset($_GET['view']))) {
$LSaddon=urldecode($_GET['LSaddon']);
$view=urldecode($_GET['view']);
if (LSsession ::loadLSaddon($LSaddon)) {
if ( LSsession :: canAccessLSaddonView($LSaddon,$view) ) {
LSsession :: showLSaddonView($LSaddon,$view);
}
else {
LSerror :: addErrorCode('LSsession_11');
}
}
}
else {
LSerror :: addErrorCode('LSsession_12');
}
}
else {
LSsession :: setTemplate('login.tpl');
}
// Print template
LSsession :: displayTemplate();

View file

@ -2546,7 +2546,7 @@ class LSsession {
}
elseif (array_key_exists(self :: $ldapServer['defaultView'], self :: $LSaddonsViewsAccess)) {
$addon = self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']];
self :: redirect('addon_view.php?LSaddon='.urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['LSaddon'])."&view=".urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['id']));
self :: redirect('addon/'.urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['LSaddon'])."/".urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['id']));
}
}
if ($force)
@ -2654,6 +2654,9 @@ class LSsession {
LSerror :: defineError('LSsession_24',
_("LSsession : invalid related object's DN pass in parameter.")
);
LSerror :: defineError('LSsession_25',
_("LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please upgrade it.")
);
}
/**

View file

@ -61,3 +61,40 @@ function handle_image($request) {
LSurl :: error_404($request);
}
LSurl :: add_handler('#^image/(?P<image>[^/]+)$#', 'handle_image', false);
/*
* Handle LSaddon view request
*
* @param[in] $request LSurlRequest The request
*
* @retval void
**/
function handle_addon_view($request) {
if (LSsession ::loadLSaddon($request -> LSaddon)) {
if ( LSsession :: canAccessLSaddonView($request -> LSaddon, $request -> view) ) {
LSsession :: showLSaddonView($request -> LSaddon, $request -> view);
// Print template
LSsession :: displayTemplate();
}
else {
LSerror :: addErrorCode('LSsession_11');
}
}
}
LSurl :: add_handler('#^addon/(?P<LSaddon>[^/]+)/(?P<view>[^/]+)$#', 'handle_addon_view');
/*
* Handle LSaddon view request old-URL for retro-compatibility
*
* @param[in] $request LSurlRequest The request
*
* @retval void
**/
function handle_old_addon_view($request) {
if ((isset($_GET['LSaddon'])) && (isset($_GET['view']))) {
LSerror :: addErrorCode('LSsession_25', urldecode($_GET['LSaddon']));
LSsession :: redirect('addon/'.$_GET['LSaddon'].'/'.$_GET['view']);
}
LSsession :: redirect();
}
LSurl :: add_handler('#^addon_view.php#', 'handle_old_addon_view');

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2020-05-02 17:14+0200\n"
"PO-Revision-Date: 2020-05-02 18:28+0200\n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n"
@ -77,7 +77,7 @@ msgid "Import"
msgstr "Importer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:156
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1515
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1516
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:36
msgid "Refresh"
msgstr "Rafraîchir"
@ -87,8 +87,8 @@ msgid "Reset"
msgstr "Réinitialiser"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1312
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2439
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1313
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2440
msgid "Level"
msgstr "Niveau"
@ -129,7 +129,7 @@ msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:73
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSconfirmBox.php:37
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsmoothbox.php:39
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1352
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1353
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:68
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_action.php:83
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:51
@ -693,25 +693,25 @@ msgstr "LStemplate : Impossible de charger le fichier de support de Smarty 3"
msgid "LStemplate : Smarty version not recognized."
msgstr "LStemplate : Version de Smarty non reconnue."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:139
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:146
msgid "LStemplate : Can't load Smarty."
msgstr ""
"LStemplate : Impossible de charger le moteur de gestion de template Smarty."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:310
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:317
msgid "Smarty - An exception occured displaying template '%{template}'"
msgstr ""
"Smarty - Un erreur est survenue en affichant le modèle de page '%{template}'."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:330
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:337
msgid "Smarty - An exception occured fetching template '%{template}'"
msgstr "Smarty - Un erreur est survenue en générant le modèle '%{template}'."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:437
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:444
msgid "LStemplate : Template %{file} not found."
msgstr "LStemplate : le template %{file} est introuvable."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:440
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:447
msgid ""
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
"callable."
@ -719,7 +719,7 @@ msgstr ""
"LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement "
"%{event} : il n'est pas un callable."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:443
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:450
msgid ""
"LStemplate : Error during the execution of the trigger %{callable} on event "
"%{event}."
@ -885,69 +885,69 @@ msgstr ""
msgid "Clear"
msgstr "Nettoyer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1292
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1293
msgid "Connection"
msgstr "Connexion"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1302
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1341
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1303
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1342
msgid "LDAP server"
msgstr "Serveur LDAP"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1313
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1351
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1314
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1352
msgid "Identifier"
msgstr "Identifiant"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1314
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1315
msgid "Password"
msgstr "Mot de passe"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1315
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1316
msgid "Connect"
msgstr "Se connecter"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1316
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1317
msgid "Forgot your password ?"
msgstr "Mot de passe perdu ?"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1334
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1335
msgid "Recovery of your credentials"
msgstr "Récupération de votre mot de passe"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1353
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1354
msgid "Back"
msgstr "Retour"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1356
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1357
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"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1361
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1362
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."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1370
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1371
msgid "Your new password has been sent to %{mail}."
msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1531
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1532
msgid "Language"
msgstr "Langue"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1553
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1554
msgid "Connected as"
msgstr "Connecté en tant que"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2586
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2587
msgid "LSsession : The constant %{const} is not defined."
msgstr "LSsession : La constante %{const} n'est pas définie."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2589
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2590
msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration."
@ -955,52 +955,52 @@ msgstr ""
"LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du "
"système et la configuration de l'add-on."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2592
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2593
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."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2595
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2596
msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr ""
"LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2598
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2599
msgid "LSsession : Failed to load LSclass %{class}."
msgstr "LSsession : Impossible de charger la LSclass %{class}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2601
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2602
msgid "LSsession : Login or password incorrect."
msgstr "LSsession : Identifiant ou mot de passe incorrects."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2604
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2605
msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "LSsession : Impossible de vous identifier : Duplication d'identité."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2607
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2608
msgid "LSsession : Can't load class of authentification (%{class})."
msgstr ""
"LSsession : Impossible de charger la classe d'authentification (%{class})."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2610
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2611
msgid "LSsession : Can't connect to LDAP server."
msgstr "LSsession : Impossible de se connecter au serveur LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2613
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2614
msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2616
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2617
msgid "LSsession : Your are not authorized to do this action."
msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2619
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2620
msgid "LSsession : Some informations are missing to display this page."
msgstr "LSsession : Des informations sont manquant pour afficher cette page."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2622
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2623
msgid ""
"LSsession : The function of the custom action %{name} does not exists or is "
"not configured."
@ -1008,24 +1008,24 @@ msgstr ""
"LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou "
"n'est pas configurée."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2625
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2626
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr ""
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
"depuis LSauth."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2628
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2629
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."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2631
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2632
msgid "LSsession : No import/export format define for this object type."
msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2634
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2635
msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})"
@ -1033,13 +1033,13 @@ msgstr ""
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
"administrateurs. (Code : %{type})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2637
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2638
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."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2640
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2641
msgid ""
"LSsession : Some informations are missing to recover your password. Contact "
"administrators."
@ -1047,7 +1047,7 @@ msgstr ""
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
"de passe. Contacter les administrateurs."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2643
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2644
msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})"
@ -1055,25 +1055,33 @@ msgstr ""
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
"les administrateurs. (Etape : %{step})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2646
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2647
msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr ""
"LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2649
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2650
msgid "LSsession : problem during initialisation."
msgstr "LSsession : Problème durant l'initialisation."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2652
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2653
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr ""
"LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2655
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2656
msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2659
msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it."
msgstr ""
"LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de "
"vues. Merci de le mettre à jour."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSldapObject.php:473
msgid "The attribute %{attr} is not valid."
msgstr "L'attribut %{attr} n'est pas valide."
@ -1673,7 +1681,7 @@ msgstr "Afficher la fenêtre de recherche et de sélection étendue."
msgid "Fail to determine the requested URL."
msgstr "Impossible de déterminer l'URL demandée."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSurl.php:199
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSurl.php:200
msgid "Fail to determine the requested URL (loop detected)."
msgstr "Impossible de déterminer l'URL demandée (boucle détectée)."
@ -2076,10 +2084,6 @@ msgstr ""
"L'action personnalisée %{customAction} a été correctement exécutée sur "
"%{objectname}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/image.php:37
msgid "Missing parameter"
msgstr "Paramètre manquant"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:37
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:48
msgid "Deleting"
@ -2097,7 +2101,7 @@ msgstr "Voulez-vous vraiment supprimer <strong>%{displayName}</strong> ?"
msgid "You must provide pattern for global search."
msgstr "Vous devez fournir un mot clé pour les recherches globales."
#: templates/default/fatal_error.tpl:19
#: templates/default/fatal_error.tpl:20
msgid "A fatal error occured. If problem persist, please contact support."
msgstr ""
"Une erreur irrécupérable est survenue. Si le problème persiste, merci de "
@ -2107,7 +2111,7 @@ msgstr ""
msgid "Attributes / Profiles"
msgstr "Attributs / Profils"
#: templates/default/fatal_error.tpl:23
#: templates/default/fatal_error.tpl:24
msgid "Details"
msgstr "Détails"
@ -2119,7 +2123,7 @@ msgstr "Fichier"
msgid "Format"
msgstr "Format"
#: templates/default/top.tpl:35 templates/default/top.tpl:36
#: templates/default/top.tpl:36 templates/default/top.tpl:37
#: templates/default/global_search.tpl:10
msgid "Global search"
msgstr "Recherche globale"
@ -2171,7 +2175,7 @@ msgstr "Lecture"
msgid "Readable / Writable"
msgstr "Lecture / Écriture"
#: templates/default/top.tpl:62
#: templates/default/top.tpl:63
msgid "Refresh my access rights"
msgstr "Rafraîchir mes droits d'accès"
@ -2183,7 +2187,7 @@ msgstr "Relations / Profils"
msgid "Result"
msgstr "Résultat"
#: templates/default/error_404.tpl:19
#: templates/default/error_404.tpl:20
msgid "The requested page was not found."
msgstr "La page demandée est introuvable."
@ -2215,6 +2219,9 @@ msgstr "non"
msgid "yes"
msgstr "oui"
#~ msgid "Missing parameter"
#~ msgstr "Paramètre manquant"
#~ msgid "PHP error : %{error}"
#~ msgstr "Erreur PHP : %{error}"

View file

@ -55,7 +55,7 @@ msgid "Import"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:156
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1515
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1516
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:36
msgid "Refresh"
msgstr ""
@ -65,8 +65,8 @@ msgid "Reset"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1312
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2439
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1313
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2440
msgid "Level"
msgstr ""
@ -103,7 +103,7 @@ msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:73
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSconfirmBox.php:37
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsmoothbox.php:39
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1352
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1353
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:68
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_action.php:83
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:51
@ -600,29 +600,29 @@ msgstr ""
msgid "LStemplate : Smarty version not recognized."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:139
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:146
msgid "LStemplate : Can't load Smarty."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:310
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:317
msgid "Smarty - An exception occured displaying template '%{template}'"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:330
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:337
msgid "Smarty - An exception occured fetching template '%{template}'"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:437
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:444
msgid "LStemplate : Template %{file} not found."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:440
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:447
msgid ""
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
"callable."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:443
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LStemplate.php:450
msgid ""
"LStemplate : Error during the execution of the trigger %{callable} on event "
"%{event}."
@ -751,170 +751,176 @@ msgstr ""
msgid "Clear"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1292
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1293
msgid "Connection"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1302
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1341
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1303
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1342
msgid "LDAP server"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1313
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1351
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1314
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1352
msgid "Identifier"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1314
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1315
msgid "Password"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1315
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1316
msgid "Connect"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1316
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1317
msgid "Forgot your password ?"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1334
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1335
msgid "Recovery of your credentials"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1353
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1354
msgid "Back"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1356
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1357
msgid "Please fill the identifier field to proceed recovery procedure"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1361
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1362
msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1370
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1371
msgid "Your new password has been sent to %{mail}."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1531
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1532
msgid "Language"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1553
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1554
msgid "Connected as"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2586
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2587
msgid "LSsession : The constant %{const} is not defined."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2589
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2590
msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2592
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2593
msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2595
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2596
msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2598
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2599
msgid "LSsession : Failed to load LSclass %{class}."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2601
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2602
msgid "LSsession : Login or password incorrect."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2604
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2605
msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2607
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2608
msgid "LSsession : Can't load class of authentification (%{class})."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2610
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2611
msgid "LSsession : Can't connect to LDAP server."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2613
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2614
msgid "LSsession : Impossible to authenticate you."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2616
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2617
msgid "LSsession : Your are not authorized to do this action."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2619
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2620
msgid "LSsession : Some informations are missing to display this page."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2622
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2623
msgid ""
"LSsession : The function of the custom action %{name} does not exists or is "
"not configured."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2625
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2626
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2628
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2629
msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2631
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2632
msgid "LSsession : No import/export format define for this object type."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2634
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2635
msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2637
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2638
msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2640
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2641
msgid ""
"LSsession : Some informations are missing to recover your password. Contact "
"administrators."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2643
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2644
msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2646
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2647
msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2649
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2650
msgid "LSsession : problem during initialisation."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2652
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2653
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2655
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2656
msgid "LSsession : invalid related object's DN pass in parameter."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2659
msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSldapObject.php:473
msgid "The attribute %{attr} is not valid."
msgstr ""
@ -1413,7 +1419,7 @@ msgstr ""
msgid "Fail to determine the requested URL."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSurl.php:199
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSurl.php:200
msgid "Fail to determine the requested URL (loop detected)."
msgstr ""
@ -1770,10 +1776,6 @@ msgid ""
"%{objectname}."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/image.php:37
msgid "Missing parameter"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:37
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:48
msgid "Deleting"
@ -1791,7 +1793,7 @@ msgstr ""
msgid "You must provide pattern for global search."
msgstr ""
#: templates/default/fatal_error.tpl:19
#: templates/default/fatal_error.tpl:20
msgid "A fatal error occured. If problem persist, please contact support."
msgstr ""
@ -1799,7 +1801,7 @@ msgstr ""
msgid "Attributes / Profiles"
msgstr ""
#: templates/default/fatal_error.tpl:23
#: templates/default/fatal_error.tpl:24
msgid "Details"
msgstr ""
@ -1811,7 +1813,7 @@ msgstr ""
msgid "Format"
msgstr ""
#: templates/default/top.tpl:35 templates/default/top.tpl:36
#: templates/default/top.tpl:36 templates/default/top.tpl:37
#: templates/default/global_search.tpl:10
msgid "Global search"
msgstr ""
@ -1863,7 +1865,7 @@ msgstr ""
msgid "Readable / Writable"
msgstr ""
#: templates/default/top.tpl:62
#: templates/default/top.tpl:63
msgid "Refresh my access rights"
msgstr ""
@ -1875,7 +1877,7 @@ msgstr ""
msgid "Result"
msgstr ""
#: templates/default/error_404.tpl:19
#: templates/default/error_404.tpl:20
msgid "The requested page was not found."
msgstr ""

View file

@ -3,7 +3,7 @@
<h1>{$pagetitle}</h1>
<ul class="LSaccessRightsMatrixView_tabs">
{foreach $LSobjects as $obj => $obj_conf}
<li{if $LSobject==$obj} class="LSaccessRightsMatrixView_active_tab"{/if}><a href="addon_view.php?LSaddon=LSaccessRightsMatrixView&view=accessRightsMatrix&LSobject={$obj}">{$obj_conf.label}</a></li>
<li{if $LSobject==$obj} class="LSaccessRightsMatrixView_active_tab"{/if}><a href="addon/LSaccessRightsMatrixView/accessRightsMatrix&LSobject={$obj}">{$obj_conf.label}</a></li>
{/foreach}
</ul>

View file

@ -44,7 +44,7 @@
{/foreach}
{foreach from=$LSaddonsViewsAccess item=access}
{if $access.showInMenu}
<li class='menu'><a href='addon_view.php?LSaddon={$access.LSaddon|escape:"url"}&view={$access.id|escape:"url"}' class='menu'>{tr msg=$access.label}</a></li>
<li class='menu'><a href='addon/{$access.LSaddon|escape:"url"}/{$access.id|escape:"url"}' class='menu'>{tr msg=$access.label}</a></li>
{/if}
{/foreach}
</ul>