Replace view.php by LSurl routes

This commit is contained in:
Benjamin Renard 2020-05-03 18:48:33 +02:00
parent 5c372cdb44
commit 06455db4f3
23 changed files with 554 additions and 486 deletions

View file

@ -83,14 +83,14 @@ if(LSsession :: startLSsession()) {
if (isset($_REQUEST['ajax'])) { if (isset($_REQUEST['ajax'])) {
LSsession :: displayAjaxReturn ( LSsession :: displayAjaxReturn (
array( array(
'LSredirect' => 'view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()) 'LSredirect' => "object/$LSobject/".urlencode($object -> getDn())
) )
); );
exit(); exit();
} }
else { else {
if (!LSdebugDefined()) { if (!LSdebugDefined()) {
LSsession :: redirect('view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn())); LSurl :: redirect("object/$LSobject/".urlencode($object -> getDn()));
} }
} }
} }

View file

@ -54,10 +54,10 @@ if(LSsession :: startLSsession()) {
} }
} }
if ($config['redirectToObjectList']) { if ($config['redirectToObjectList']) {
LSsession :: redirect('view.php?LSobject='.$LSobject.'&refresh'); LSurl :: redirect("object/$LSobject?refresh");
} }
else if (!isset($config['noRedirect']) || !$config['noRedirect']) { else if (!isset($config['noRedirect']) || !$config['noRedirect']) {
LSsession :: redirect('view.php?LSobject='.$LSobject.'&dn='.urlencode($dn)); LSurl :: redirect("object/$LSobject/".urlencode($dn));
} }
} }
else { else {

View file

@ -54,7 +54,7 @@ if(LSsession :: startLSsession()) {
} }
} }
if (!isset($config['redirectToObjectList']) || $config['redirectToObjectList']) { if (!isset($config['redirectToObjectList']) || $config['redirectToObjectList']) {
LSsession :: redirect('view.php?LSobject='.$LSobject.'&refresh'); LSurl :: redirect("object/$LSobject?refresh");
} }
} }
else { else {

View file

@ -93,7 +93,7 @@ if(LSsession :: startLSsession()) {
} }
if ($onlyOne && $onlyOneObject && isset($_REQUEST['LSsearch_submit'])) { if ($onlyOne && $onlyOneObject && isset($_REQUEST['LSsearch_submit'])) {
LSsession :: redirect('view.php?LSobject='.$onlyOneObject['LSobject'].'&dn='.urlencode($onlyOneObject['dn'])); LSurl :: redirect('object/'.$onlyOneObject['LSobject'].'/'.urlencode($onlyOneObject['dn']));
} }
LStemplate :: assign('pattern',$pattern); LStemplate :: assign('pattern',$pattern);

View file

@ -354,7 +354,7 @@ class LSrelation {
else { else {
$class=''; $class='';
} }
$data['html'].= "<li class='LSrelation'><a href='view.php?LSobject=$LSobjectInRelation&amp;dn=".urlencode($o -> getDn())."' class='LSrelation$class' id='LSrelation_".$_REQUEST['id']."_".$o -> getDn()."'>".$o -> getDisplayName(NULL,true)."</a></li>\n"; $data['html'].= "<li class='LSrelation'><a href='object/$LSobjectInRelation/".urlencode($o -> getDn())."' class='LSrelation$class' id='LSrelation_".$_REQUEST['id']."_".$o -> getDn()."'>".$o -> getDisplayName(NULL,true)."</a></li>\n";
} }
} }
else { else {

View file

@ -1197,7 +1197,7 @@ class LSsearch {
**/ **/
public function redirectWhenOnlyOneResult() { public function redirectWhenOnlyOneResult() {
if ($this -> total == 1 && $this -> result && self::formIsSubmited()) { if ($this -> total == 1 && $this -> result && self::formIsSubmited()) {
LSsession :: redirect('view.php?LSobject='.$this -> LSobject.'&dn='.urlencode($this -> result['list'][0]['dn'])); LSurl :: redirect('object/'.$this -> LSobject.'/'.urlencode($this -> result['list'][0]['dn']));
} }
return; return;
} }

View file

@ -157,7 +157,7 @@ class LSsearchEntry {
$this -> cache['actions'] = array ( $this -> cache['actions'] = array (
array( array(
'label' => _('View'), 'label' => _('View'),
'url' =>'view.php?LSobject='.$this -> LSobject.'&amp;dn='.urlencode($this -> dn), 'url' => 'object/'.$this -> LSobject.'/'.urlencode($this -> dn),
'action' => 'view' 'action' => 'view'
) )
); );

View file

@ -2549,11 +2549,11 @@ class LSsession {
public static function redirectToDefaultView($force=false) { public static function redirectToDefaultView($force=false) {
if (isset(self :: $ldapServer['defaultView'])) { if (isset(self :: $ldapServer['defaultView'])) {
if (array_key_exists(self :: $ldapServer['defaultView'], self :: $LSaccess[self :: $topDn])) { if (array_key_exists(self :: $ldapServer['defaultView'], self :: $LSaccess[self :: $topDn])) {
self :: redirect('view.php?LSobject='.self :: $ldapServer['defaultView']); LSurl :: redirect('object/'.self :: $ldapServer['defaultView']);
} }
elseif (array_key_exists(self :: $ldapServer['defaultView'], self :: $LSaddonsViewsAccess)) { elseif (array_key_exists(self :: $ldapServer['defaultView'], self :: $LSaddonsViewsAccess)) {
$addon = self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]; $addon = self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']];
self :: redirect('addon/'.urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['LSaddon'])."/".urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['id'])); LSurl :: redirect('addon/'.urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['LSaddon'])."/".urlencode(self :: $LSaddonsViewsAccess[self :: $ldapServer['defaultView']]['id']));
} }
} }
if ($force) if ($force)
@ -2664,6 +2664,9 @@ class LSsession {
LSerror :: defineError('LSsession_25', LSerror :: defineError('LSsession_25',
_("LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please upgrade it.") _("LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please upgrade it.")
); );
LSerror :: defineError('LSsession_26',
_("LSsession : You have been redirect from an old-style URL %{url}. Please upgrade this link.")
);
} }
/** /**

View file

@ -217,7 +217,7 @@ var LSformElement_select_object_field = new Class({
var a = new Element('a'); var a = new Element('a');
a.addClass('LSformElement_select_object'); a.addClass('LSformElement_select_object');
a.href="view.php?LSobject="+this.params['object_type']+"&dn="+dn; a.href="object/"+this.params['object_type']+"/"+dn;
a.set('html',name); a.set('html',name);
a.injectInside(li); a.injectInside(li);
@ -238,7 +238,7 @@ var LSformElement_select_object_field = new Class({
else { // Non Multiple else { // Non Multiple
var a = this.ul.getElement('a'); var a = this.ul.getElement('a');
if ($type(a)) { // Deja initialise if ($type(a)) { // Deja initialise
a.href="view.php?LSobject="+this.params['object_type']+"&dn="+dn; a.href="object/"+this.params['object_type']+"/"+dn;
a.set('html',name); a.set('html',name);
a.removeClass('LSformElement_select_object_deleted'); a.removeClass('LSformElement_select_object_deleted');
@ -254,7 +254,7 @@ var LSformElement_select_object_field = new Class({
var a = new Element('a'); var a = new Element('a');
a.addClass('LSformElement_select_object'); a.addClass('LSformElement_select_object');
a.href="view.php?LSobject="+this.params['object_type']+"&dn="+dn; a.href="object/"+this.params['object_type']+"/"+dn;
a.set('html',name); a.set('html',name);
a.injectInside(li); a.injectInside(li);

View file

@ -62,6 +62,287 @@ function handle_image($request) {
} }
LSurl :: add_handler('#^image/(?P<image>[^/]+)$#', 'handle_image', false); LSurl :: add_handler('#^image/(?P<image>[^/]+)$#', 'handle_image', false);
/*
************************************************************
* LSobject views
************************************************************
*/
/*
* LSobject view helper to retreive LSobject from request
*
* This helper load LSobject type from 'LSobject' request
* parameter, check user access. If instanciate parameter
* is True, an object of this type will be instanciate and
* return. Moreover, if 'dn' request parameter is present,
* the data of this object will be loaded from LDAP.
*
* @param[in] $request LSurlRequest The request
* @param[in] $instanciate boolean Instanciate and return an object (optional, default: true)
*
* @retval LSobject|boolean The instanciated LSobject (or True if $instanciate=false), or False
* on error/access refused
*/
function get_LSobject_from_request($request, $instanciate=true) {
$LSobject = $request -> LSobject;
$dn = (isset($request -> dn)?$request -> dn:null);
// Handle SELF redirect
if ( $LSobject == 'SELF' ) {
$LSobject = LSsession :: getLSuserObject() -> getType();
$dn = LSsession :: getLSuserObjectDn();
LSurl :: redirect("object/$LSobject/".urlencode($dn));
}
// If $dn, check user access to this LSobject
if ($dn) {
if (!LSsession :: canAccess($LSobject, $dn)) {
LSerror :: addErrorCode('LSsession_11');
return false;
}
}
else if (!LSsession :: in_menu($LSobject) && !LSsession :: canAccess($LSobject)) {
LSerror :: addErrorCode('LSsession_11');
return false;
}
// Load LSobject type
if ( !LSsession :: loadLSobject($LSobject) )
return false;
// If not $instanciate (and $dn not defined), just return true
if (!$instanciate && !$dn)
return True;
// Instanciate object
$object = new $LSobject();
// Load $dn data (if defined)
if ($dn && !$object -> loadData($dn)) {
LSurl :: error_404($request);
return false;
}
return $object;
}
/*
* Handle LSobject search/list request
*
* @param[in] $request LSurlRequest The request
*
* @retval void
**/
function handle_LSobject_search($request) {
$object = get_LSobject_from_request($request, true);
if (!$object)
return;
$LSobject = $object -> getType();
if (!LSsession :: loadLSclass('LSsearch')) {
LSsession :: addErrorCode('LSsession_05','LSsearch');
return false;
}
// Set pagetitle
LStemplate :: assign('pagetitle', $object -> getLabel());
// Instanciate a LSsearch
$LSsearch = new LSsearch($LSobject, 'LSview', null, (isset($_REQUEST['reset'])));
$LSsearch -> setParam('extraDisplayedColumns', True);
$LSsearch -> setParamsFormPostData();
// List user available actions for this LSobject type
$LSview_actions = array();
if(LSsession :: canCreate($LSobject)) {
$LSview_actions['create'] = array (
'label' => _('New'),
'url' => 'create.php?LSobject='.$LSobject,
'action' => 'create'
);
if ($object -> listValidIOformats()) {
$LSview_actions['import'] = array (
'label' => _('Import'),
'url' => 'import.php?LSobject='.$LSobject,
'action' => 'import'
);
}
}
$LSview_actions['refresh'] = array (
'label' => _('Refresh'),
'url' => "object/$LSobject?refresh",
'action' => 'refresh'
);
$LSview_actions['reset'] = array (
'label' => _('Reset'),
'url' => "object/$LSobject?reset",
'action' => 'reset'
);
// Custum Actions
$customActionsConfig = LSconfig :: get('LSobjects.'.$LSobject.'.LSsearch.customActions');
if (is_array($customActionsConfig)) {
foreach($customActionsConfig as $name => $config) {
if (LSsession :: canExecuteLSsearchCustomAction($LSsearch,$name)) {
$LSview_actions[] = array (
'label' => ((isset($config['label']))?__($config['label']):__($name)),
'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False),
'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False),
'url' => 'custom_search_action.php?LSobject='.$LSobject.'&amp;customAction='.$name,
'action' => ((isset($config['icon']))?$config['icon']:'generate'),
'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')
);
}
}
}
// Run search
$LSsearch -> run();
$LSsearch -> redirectWhenOnlyOneResult();
// Handle page parameter and retreive corresponding page from search
$page = (isset($_REQUEST['page'])?(int)$_REQUEST['page']:0);
$page = $LSsearch -> getPage($page);
// Set template variables
LStemplate :: assign('page', $page);
LStemplate :: assign('LSsearch', $LSsearch);
LStemplate :: assign('LSview_actions', $LSview_actions);
LStemplate :: assign('searchForm', array (
'action' => "object/$LSobject",
'recursive' => (! LSsession :: isSubDnLSobject($LSobject) && LSsession :: subDnIsEnabled() ),
'labels' => array (
'submit' => _('Search'),
'approx' => _('Approximative search'),
'recursive' => _('Recursive search')
),
'values' => array (
'pattern' => $LSsearch -> getParam('pattern'),
'approx' => $LSsearch -> getParam('approx'),
'recursive' => $LSsearch -> getParam('recursive')
),
'names' => array (
'submit' => 'LSsearch_submit'
),
'hiddenFields' => $LSsearch -> getHiddenFieldForm(),
'predefinedFilter' => $LSsearch -> getParam('predefinedFilter')
));
if (LSsession :: loadLSclass('LSform')) {
LSform :: loadDependenciesDisplayView();
}
// Set & display template
LSsession :: setTemplate('viewSearch.tpl');
LSsession :: displayTemplate();
}
LSurl :: add_handler('#^object/(?P<LSobject>[^/]+)/?$#', 'handle_LSobject_search');
/*
* Handle LSobject show request
*
* @param[in] $request LSurlRequest The request
*
* @retval void
**/
function handle_LSobject_show($request) {
$object = get_LSobject_from_request($request, true);
if (!$object)
return;
$LSobject = $object -> getType();
$dn = $object -> getDn();
// List user available actions for this LSobject
$LSview_actions = array();
if ( LSsession :: canEdit($LSobject, $dn) ) {
$LSview_actions[] = array(
'label' => _('Modify'),
'url' =>'modify.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn),
'action' => 'modify'
);
}
if (LSsession :: canCreate($LSobject)) {
$LSview_actions[] = array(
'label' => _('Copy'),
'url' =>'create.php?LSobject='.$LSobject.'&amp;load='.urlencode($dn),
'action' => 'copy'
);
}
if (LSsession :: canRemove($LSobject, $dn)) {
$LSview_actions[] = array(
'label' => _('Delete'),
'url' => 'remove.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn),
'action' => 'delete'
);
}
// Custum Actions
$customActionsConfig = LSconfig :: get('LSobjects.'.$LSobject.'.customActions');
if (is_array($customActionsConfig)) {
foreach($customActionsConfig as $name => $config) {
if (LSsession :: canExecuteCustomAction($dn, $LSobject, $name)) {
$LSview_actions[] = array (
'label' => ((isset($config['label']))?__($config['label']):__($name)),
'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False),
'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False),
'url' => 'custom_action.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn).'&amp;customAction='.$name,
'action' => ((isset($config['icon']))?$config['icon']:'generate'),
'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')
);
}
}
}
$view = $object -> getView();
$view -> displayView();
// LSrelations
if (LSsession :: loadLSclass('LSrelation')) {
LSrelation :: displayInLSview($object);
}
LStemplate :: assign('pagetitle', (LSsession :: getLSuserObjectDn() == $dn?_('My account'):$object -> getDisplayName()));
LStemplate :: assign('LSldapObject', $object);
LStemplate :: assign('LSview_actions', $LSview_actions);
// Set & display template
LSsession :: setTemplate('view.tpl');
LSsession :: displayTemplate();
}
LSurl :: add_handler('#^object/(?P<LSobject>[^/]+)/?(?P<dn>[^/]+)/?$#', 'handle_LSobject_show');
/*
* Handle old view.php request for retro-compatibility
*
* @param[in] $request LSurlRequest The request
*
* @retval void
**/
function handle_old_view_php($request) {
if (!isset($_GET['LSobject']))
$url = null;
elseif (isset($_GET['dn']))
$url = "object/".$_GET['LSobject']."/".$_GET['dn'];
else
$url = "object/".$_GET['LSobject'];
LSerror :: addErrorCode('LSsession_26', 'view.php');
LSurl :: redirect($url);
}
LSurl :: add_handler('#^view.php#', 'handle_old_view_php');
/*
************************************************************
* LSaddon views
************************************************************
*/
/* /*
* Handle LSaddon view request * Handle LSaddon view request
* *

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: LdapSaisie\n" "Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: 2020-05-02 18:28+0200\n" "PO-Revision-Date: 2020-05-03 18:40+0200\n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n" "Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise." "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n" "org>\n"
@ -20,78 +20,38 @@ msgstr ""
"X-Poedit-Basepath: /var/www/ldapsaisie/trunk\n" "X-Poedit-Basepath: /var/www/ldapsaisie/trunk\n"
"X-Generator: Poedit 2.2.1\n" "X-Generator: Poedit 2.2.1\n"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:44 #: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:67
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:217
#: templates/default/global_search.tpl:7
msgid "Search"
msgstr "Rechercher"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:68
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:218
msgid "Approximative search"
msgstr "Recherche approximative"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:69
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:219
msgid "Recursive search"
msgstr "Recherche récursive"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1319
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2446
msgid "Level"
msgstr "Niveau"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:54 #: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:54
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannCompositeAttribute.php:106 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannCompositeAttribute.php:106
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:260 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:260
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:68 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:68
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannLabeledValue.php:62 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannLabeledValue.php:62
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:167 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:167
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:263
msgid "Modify" msgid "Modify"
msgstr "Modifier" msgstr "Modifier"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:52
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:175
msgid "Copy"
msgstr "Copier"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:60
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:111
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:216
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:215
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:69
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:85
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:183
msgid "Delete"
msgstr "Supprimer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:90
msgid "My account"
msgstr "Mon compte"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:123
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:67
#: templates/default/global_search.tpl:7
msgid "Search"
msgstr "Rechercher"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:124
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:68
msgid "Approximative search"
msgstr "Recherche approximative"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:125
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:69
msgid "Recursive search"
msgstr "Recherche récursive"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:143
#: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:120
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:267
msgid "New"
msgstr "Nouveau"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:149
#: /home/brenard/dev/ldapsaisie_clean3/public_html/import.php:59
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:1516
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:36
msgid "Refresh"
msgstr "Rafraîchir"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:161
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:1313
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2440
msgid "Level"
msgstr "Niveau"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:60 #: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:60
msgid "The object has been partially modified." msgid "The object has been partially modified."
msgstr "L'objet a été partiellement modifié." msgstr "L'objet a été partiellement modifié."
@ -105,6 +65,21 @@ msgstr "L'objet a bien été modifié."
msgid "View" msgid "View"
msgstr "Voir" msgstr "Voir"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:111
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:216
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:215
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:69
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:85
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:183
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:279
msgid "Delete"
msgstr "Supprimer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/import.php:59
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:166
msgid "Import"
msgstr "Importer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:75 #: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:75
msgid "Data entry form" msgid "Data entry form"
msgstr "Masque de saisie" msgstr "Masque de saisie"
@ -113,6 +88,12 @@ msgstr "Masque de saisie"
msgid "Object has been added." msgid "Object has been added."
msgstr "L'objet a été ajouté." msgstr "L'objet a été ajouté."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:120
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:267
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:160
msgid "New"
msgstr "Nouveau"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:53 #: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:53
msgid "" msgid ""
"The custom action %{title} have been successfully execute on this search." "The custom action %{title} have been successfully execute on this search."
@ -129,7 +110,7 @@ msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:73 #: /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.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.LSsmoothbox.php:39
#: /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:1359
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:68 #: /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/custom_action.php:83
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:51 #: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:51
@ -885,69 +866,75 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "Nettoyer" msgstr "Nettoyer"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1293 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1299
msgid "Connection" msgid "Connection"
msgstr "Connexion" msgstr "Connexion"
#: /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:1309
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1342 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1348
msgid "LDAP server" msgid "LDAP server"
msgstr "Serveur LDAP" msgstr "Serveur LDAP"
#: /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:1320
#: /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:1358
msgid "Identifier" msgid "Identifier"
msgstr "Identifiant" msgstr "Identifiant"
#: /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:1321
msgid "Password" msgid "Password"
msgstr "Mot de passe" msgstr "Mot de passe"
#: /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:1322
msgid "Connect" msgid "Connect"
msgstr "Se connecter" msgstr "Se connecter"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1317 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1323
msgid "Forgot your password ?" msgid "Forgot your password ?"
msgstr "Mot de passe perdu ?" msgstr "Mot de passe perdu ?"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1335 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1341
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "Récupération de votre mot de passe" msgstr "Récupération de votre mot de passe"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1354 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1360
msgid "Back" msgid "Back"
msgstr "Retour" msgstr "Retour"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1357 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1363
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
"Merci d'entrer votre identifiant pour poursuivre la procédure de récupération" "Merci d'entrer votre identifiant pour poursuivre la procédure de récupération"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1362 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1368
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
"Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les " "Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les "
"indications qu'il contient." "indications qu'il contient."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1371 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1377
msgid "Your new password has been sent to %{mail}." msgid "Your new password has been sent to %{mail}."
msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}." msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1532 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1522
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:173
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:36
msgid "Refresh"
msgstr "Rafraîchir"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1538
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1554 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1560
msgid "Connected as" msgid "Connected as"
msgstr "Connecté en tant que" msgstr "Connecté en tant que"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2587 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2593
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "LSsession : La constante %{const} n'est pas définie." msgstr "LSsession : La constante %{const} n'est pas définie."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2590 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2596
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
@ -955,52 +942,52 @@ msgstr ""
"LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du " "LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du "
"système et la configuration de l'add-on." "système et la configuration de l'add-on."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2593 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2599
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
"LSsession : Les données de configuration du serveur LDAP sont invalide. " "LSsession : Les données de configuration du serveur LDAP sont invalide. "
"Impossible de s'y connecter." "Impossible de s'y connecter."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2596 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2602
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
"LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu." "LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2599 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2605
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "LSsession : Impossible de charger la LSclass %{class}." msgstr "LSsession : Impossible de charger la LSclass %{class}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2602 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2608
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "LSsession : Identifiant ou mot de passe incorrects." msgstr "LSsession : Identifiant ou mot de passe incorrects."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2605 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2611
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "LSsession : Impossible de vous identifier : Duplication d'identité." msgstr "LSsession : Impossible de vous identifier : Duplication d'identité."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2608 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2614
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
"LSsession : Impossible de charger la classe d'authentification (%{class})." "LSsession : Impossible de charger la classe d'authentification (%{class})."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2611 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2617
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "LSsession : Impossible de se connecter au serveur LDAP." msgstr "LSsession : Impossible de se connecter au serveur LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2614 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2620
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier." msgstr "LSsession : Impossible de vous identifier."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2617 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2623
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action." msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2620 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2626
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "LSsession : Des informations sont manquant pour afficher cette page." msgstr "LSsession : Des informations sont manquant pour afficher cette page."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2623 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2629
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
@ -1008,24 +995,24 @@ msgstr ""
"LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou " "LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou "
"n'est pas configurée." "n'est pas configurée."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2626 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2632
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur " "LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
"depuis LSauth." "depuis LSauth."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2629 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2635
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
"LSsession : Impossible de se reconnecter au serveur LDAP avec les " "LSsession : Impossible de se reconnecter au serveur LDAP avec les "
"identifiants de l'utilisateur." "identifiants de l'utilisateur."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2632 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2638
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet." msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2635 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2641
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
@ -1033,13 +1020,13 @@ msgstr ""
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les " "LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
"administrateurs. (Code : %{type})" "administrateurs. (Code : %{type})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2638 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2644
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
"LSsession : La récupération de mot de passe est désactivée pour ce serveur " "LSsession : La récupération de mot de passe est désactivée pour ce serveur "
"LDAP." "LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2641 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2647
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
@ -1047,7 +1034,7 @@ msgstr ""
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot " "LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
"de passe. Contacter les administrateurs." "de passe. Contacter les administrateurs."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2644 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2650
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
@ -1055,26 +1042,26 @@ msgstr ""
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter " "LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
"les administrateurs. (Etape : %{step})" "les administrateurs. (Etape : %{step})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2647 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2653
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
"LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}." "LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2650 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2656
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "LSsession : Problème durant l'initialisation." msgstr "LSsession : Problème durant l'initialisation."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2653 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2659
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
"LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas." "LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2656 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2662
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres." msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2659 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2665
msgid "" msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please " "LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it." "upgrade it."
@ -1082,6 +1069,14 @@ msgstr ""
"LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de " "LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de "
"vues. Merci de le mettre à jour." "vues. Merci de le mettre à jour."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2668
msgid ""
"LSsession : You have been redirect from an old-style URL %{url}. Please "
"upgrade this link."
msgstr ""
"LSsession : Vous avez été redirigé depuis une ancienne URL %{url}. Merci de "
"le mettre à jour ce lien."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSldapObject.php:473 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSldapObject.php:473
msgid "The attribute %{attr} is not valid." msgid "The attribute %{attr} is not valid."
msgstr "L'attribut %{attr} n'est pas valide." msgstr "L'attribut %{attr} n'est pas valide."
@ -2041,6 +2036,11 @@ msgstr "Stop"
msgid "Unknown error : %{error}" msgid "Unknown error : %{error}"
msgstr "Erreur inconnu : %{error}" msgstr "Erreur inconnu : %{error}"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:175
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:271
msgid "Copy"
msgstr "Copier"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:251 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:251
msgid "Unknown property !" msgid "Unknown property !"
msgstr "Propriété inconnue !" msgstr "Propriété inconnue !"
@ -2063,6 +2063,14 @@ msgstr ""
msgid "Home" msgid "Home"
msgstr "Accueil" msgstr "Accueil"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:178
msgid "Reset"
msgstr "Réinitialiser"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:310
msgid "My account"
msgstr "Mon compte"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/functions.php:112 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/functions.php:112
msgid "" msgid ""
"Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist." "Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist."

View file

@ -1,75 +1,35 @@
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:44 #: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:67
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:217
#: templates/default/global_search.tpl:7
msgid "Search"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:68
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:218
msgid "Approximative search"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:69
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:219
msgid "Recursive search"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1319
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2446
msgid "Level"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:54 #: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:54
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannCompositeAttribute.php:106 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannCompositeAttribute.php:106
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:260 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:260
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:68 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:68
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannLabeledValue.php:62 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_supannLabeledValue.php:62
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:167 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:167
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:263
msgid "Modify" msgid "Modify"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:52
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:175
msgid "Copy"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:60
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:111
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:216
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:215
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:69
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:85
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:183
msgid "Delete"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:90
msgid "My account"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:123
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:67
#: templates/default/global_search.tpl:7
msgid "Search"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:124
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:68
msgid "Approximative search"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:125
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:69
msgid "Recursive search"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:143
#: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:120
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:267
msgid "New"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:149
#: /home/brenard/dev/ldapsaisie_clean3/public_html/import.php:59
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:1516
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:36
msgid "Refresh"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/view.php:161
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:1313
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2440
msgid "Level"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:60 #: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:60
msgid "The object has been partially modified." msgid "The object has been partially modified."
msgstr "" msgstr ""
@ -83,6 +43,21 @@ msgstr ""
msgid "View" msgid "View"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/modify.php:111
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:216
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:215
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:69
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSformElement_select_object.php:85
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:183
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:279
msgid "Delete"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/import.php:59
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:166
msgid "Import"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:75 #: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:75
msgid "Data entry form" msgid "Data entry form"
msgstr "" msgstr ""
@ -91,6 +66,12 @@ msgstr ""
msgid "Object has been added." msgid "Object has been added."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/create.php:120
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSrelation.php:267
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:160
msgid "New"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:53 #: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:53
msgid "" msgid ""
"The custom action %{title} have been successfully execute on this search." "The custom action %{title} have been successfully execute on this search."
@ -103,7 +84,7 @@ msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/custom_search_action.php:73 #: /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.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.LSsmoothbox.php:39
#: /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:1359
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSform.php:68 #: /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/custom_action.php:83
#: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:51 #: /home/brenard/dev/ldapsaisie_clean3/public_html/remove.php:51
@ -751,176 +732,188 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1293 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1299
msgid "Connection" msgid "Connection"
msgstr "" msgstr ""
#: /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:1309
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1342 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1348
msgid "LDAP server" msgid "LDAP server"
msgstr "" 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:1320
#: /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:1358
msgid "Identifier" msgid "Identifier"
msgstr "" 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:1321
msgid "Password" msgid "Password"
msgstr "" 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:1322
msgid "Connect" msgid "Connect"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1317 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1323
msgid "Forgot your password ?" msgid "Forgot your password ?"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1335 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1341
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1354 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1360
msgid "Back" msgid "Back"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1357 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1363
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1362 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1368
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1371 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1377
msgid "Your new password has been sent to %{mail}." msgid "Your new password has been sent to %{mail}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1532 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1522
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:173
#: /home/brenard/dev/ldapsaisie_clean3/public_html/global_search.php:36
msgid "Refresh"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1538
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1554 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1560
msgid "Connected as" msgid "Connected as"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2587 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2593
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2590 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2596
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2593 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2599
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2596 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2602
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2599 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2605
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2602 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2608
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2605 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2611
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2608 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2614
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2611 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2617
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2614 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2620
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2617 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2623
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2620 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2626
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2623 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2629
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2626 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2632
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2629 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2635
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2632 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2638
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2635 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2641
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2638 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2644
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2641 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2647
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2644 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2650
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2647 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2653
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2650 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2656
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2653 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2659
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2656 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2662
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2659 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2665
msgid "" msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please " "LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it." "upgrade it."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2668
msgid ""
"LSsession : You have been redirect from an old-style URL %{url}. Please "
"upgrade this link."
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSldapObject.php:473 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSldapObject.php:473
msgid "The attribute %{attr} is not valid." msgid "The attribute %{attr} is not valid."
msgstr "" msgstr ""
@ -1739,6 +1732,11 @@ msgstr ""
msgid "Unknown error : %{error}" msgid "Unknown error : %{error}"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:175
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:271
msgid "Copy"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:251 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsearchEntry.php:251
msgid "Unknown property !" msgid "Unknown property !"
msgstr "" msgstr ""
@ -1757,6 +1755,14 @@ msgstr ""
msgid "Home" msgid "Home"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:178
msgid "Reset"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/routes.php:310
msgid "My account"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/functions.php:112 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/functions.php:112
msgid "" msgid ""
"Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist." "Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist."

View file

@ -65,14 +65,14 @@ if(LSsession :: startLSsession()) {
if (isset($_REQUEST['ajax'])) { if (isset($_REQUEST['ajax'])) {
LSsession :: displayAjaxReturn ( LSsession :: displayAjaxReturn (
array( array(
'LSredirect' => 'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn() 'LSredirect' => "object/$LSobject/".$object -> getDn()
) )
); );
exit(); exit();
} }
else { else {
if (!LSdebugDefined()) { if (!LSdebugDefined()) {
LSsession :: redirect('view.php?LSobject='.$LSobject.'&dn='.$object -> getDn()); LSurl :: redirect("object/$LSobject/".$object -> getDn());
} }
else { else {
LSsession :: displayTemplate(); LSsession :: displayTemplate();
@ -102,7 +102,7 @@ if(LSsession :: startLSsession()) {
else { else {
$LSview_actions[] = array( $LSview_actions[] = array(
'label' => _('View'), 'label' => _('View'),
'url' =>'view.php?LSobject='.$LSobject.'&amp;dn='.urlencode($object -> getDn()), 'url' => "object/$LSobject/".urlencode($object -> getDn()),
'action' => 'view' 'action' => 'view'
); );

View file

@ -37,7 +37,7 @@ if(LSsession :: startLSsession()) {
LStemplate :: assign('pagetitle',_('Deleting').' : '.$objectname); LStemplate :: assign('pagetitle',_('Deleting').' : '.$objectname);
if ($object -> remove()) { if ($object -> remove()) {
LSsession :: addInfo($objectname.' '._('has been deleted successfully').'.'); LSsession :: addInfo($objectname.' '._('has been deleted successfully').'.');
LSsession :: redirect('view.php?LSobject='.$LSobject.'&refresh'); LSurl :: redirect("object/$LSobject?refresh");
} }
else { else {
LSerror :: addErrorCode('LSldapObject_15',$objectname); LSerror :: addErrorCode('LSldapObject_15',$objectname);

View file

@ -93,7 +93,7 @@ if(LSsession :: startLSsession()) {
$LSview_actions=array( $LSview_actions=array(
array ( array (
'label' => 'Refresh', 'label' => 'Refresh',
'url' => 'view.php?LSobject='.$LSobject.'&amp;refresh', 'url' => "object/$LSobject?refresh",
'action' => 'refresh' 'action' => 'refresh'
) )
); );

View file

@ -1,5 +1,5 @@
{if $dn} {if $dn}
<a href='view.php?LSobject={$selectableObject|escape:"url"}&dn={$dn|escape:'url'}' class='LSformElement_select_object'>{$txt|escape:"htmlall"}</a> <a href='object/{$selectableObject|escape:"url"}/{$dn|escape:'url'}' class='LSformElement_select_object'>{$txt|escape:"htmlall"}</a>
{if !$freeze}<input type='hidden' class='LSformElement_select_object' name='{$attr_name|escape:"htmlall"}[]' value='{$dn|escape:"htmlall"}' />{/if} {if !$freeze}<input type='hidden' class='LSformElement_select_object' name='{$attr_name|escape:"htmlall"}[]' value='{$dn|escape:"htmlall"}' />{/if}
{else} {else}
{$noValueTxt|escape:"htmlall"} {$noValueTxt|escape:"htmlall"}

View file

@ -8,7 +8,7 @@
{/if} {/if}
<ul id='LSrelation_ul_{$item.id|escape:"quotes"}' class='LSrelation'> <ul id='LSrelation_ul_{$item.id|escape:"quotes"}' class='LSrelation'>
{foreach from=$item.objectList item=object} {foreach from=$item.objectList item=object}
<li class='LSrelation'><a href='view.php?LSobject={$item.LSobject|escape:"url"}&amp;dn={$object.dn|escape:'url'}' class='LSrelation{if $object.canEdit} LSrelation_editable{/if}' id='LSrelation_{$item.id|escape:"quotes"}_{$object.dn|escape:"quotes"}'>{$object.text|escape:"htmlall"}</a></li> <li class='LSrelation'><a href='object/{$item.LSobject|escape:"url"}/{$object.dn|escape:'url'}' class='LSrelation{if $object.canEdit} LSrelation_editable{/if}' id='LSrelation_{$item.id|escape:"quotes"}_{$object.dn|escape:"quotes"}'>{$object.text|escape:"htmlall"}</a></li>
{foreachelse} {foreachelse}
<li class='LSrelation'>{$item.emptyText|escape:"htmlall"}</li> <li class='LSrelation'>{$item.emptyText|escape:"htmlall"}</li>
{/foreach} {/foreach}

View file

@ -6,7 +6,7 @@
<tr class='LSobject-list'> <tr class='LSobject-list'>
<th class='LSobject-list'> <th class='LSobject-list'>
{if $LSsearch->sort} {if $LSsearch->sort}
<a href='view.php?LSobject={$LSsearch->LSobject}&amp;sortBy=displayName&amp;nocache={$smarty.now}'> <a href='object/{$LSsearch->LSobject}?sortBy=displayName&amp;nocache={$smarty.now}'>
{if $LSsearch->sortBy == 'displayName'} {if $LSsearch->sortBy == 'displayName'}
<strong>{$LSsearch->label_objectName|escape:'htmlall'}</strong> <strong>{$LSsearch->label_objectName|escape:'htmlall'}</strong>
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/> <img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
@ -21,7 +21,7 @@
{if $LSsearch->displaySubDn} {if $LSsearch->displaySubDn}
<th class='LSobject-list LSobject-list-subdn'> <th class='LSobject-list LSobject-list-subdn'>
{if $LSsearch->sort} {if $LSsearch->sort}
<a href='view.php?LSobject={$LSsearch->LSobject}&amp;sortBy=subDn&amp;nocache={$smarty.now}'> <a href='object/{$LSsearch->LSobject}?sortBy=subDn&amp;nocache={$smarty.now}'>
{if $LSsearch->sortBy == 'subDn'} {if $LSsearch->sortBy == 'subDn'}
<strong>{$LSsearch->label_level|escape:'htmlall'}</strong> <strong>{$LSsearch->label_level|escape:'htmlall'}</strong>
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/> <img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
@ -38,7 +38,7 @@
</tr> </tr>
{foreach from=$page.list item=object} {foreach from=$page.list item=object}
<tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'> <tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'>
<td class='LSobject-list LSobject-list-names'><a href='view.php?LSobject={$LSsearch->LSobject|escape:'url'}&amp;dn={$object->dn|escape:'url'}' class='LSobject-list'>{$object->displayName|escape:'htmlall'}</a> </td> <td class='LSobject-list LSobject-list-names'><a href='object/{$LSsearch->LSobject|escape:'url'}/{$object->dn|escape:'url'}' class='LSobject-list'>{$object->displayName|escape:'htmlall'}</a> </td>
{if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn|escape:'htmlall'}</td>{/if} {if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn|escape:'htmlall'}</td>{/if}
<td class='LSobject-list LSobject-list-actions'> <td class='LSobject-list LSobject-list-actions'>
{foreach from=$object->actions item=item} {foreach from=$object->actions item=item}
@ -66,21 +66,21 @@
{else} {else}
{assign var=start value=0} {assign var=start value=0}
{/if} {/if}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:'url'}&amp;page=0' class='LSobject-list-page'>&lt;</a> <a href='object/{$LSsearch->LSobject|escape:'url'}?page=0' class='LSobject-list-page'>&lt;</a>
{foreach from=0|range:10 item=i} {foreach from=0|range:10 item=i}
{if $page.nb==$start+$i} {if $page.nb==$start+$i}
<strong class='LSobject-list-page'>{$page.nb+1}</strong> <strong class='LSobject-list-page'>{$page.nb+1}</strong>
{else} {else}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:'url'}&amp;page={$i+$start}' class='LSobject-list-page'>{$i+$start+1}</a> <a href='object/{$LSsearch->LSobject|escape:'url'}?page={$i+$start}' class='LSobject-list-page'>{$i+$start+1}</a>
{/if} {/if}
{/foreach} {/foreach}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:'url'}&amp;page={$page.nbPages-1}' class='LSobject-list-page'>&gt;</a> <a href='object/{$LSsearch->LSobject|escape:'url'}?page={$page.nbPages-1}' class='LSobject-list-page'>&gt;</a>
{else} {else}
{section name=listpage loop=$page.nbPages step=1} {section name=listpage loop=$page.nbPages step=1}
{if $page.nb == $smarty.section.listpage.index} {if $page.nb == $smarty.section.listpage.index}
<strong class='LSobject-list-page'>{$page.nb+1}</strong> <strong class='LSobject-list-page'>{$page.nb+1}</strong>
{else} {else}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:'url'}&amp;page={$smarty.section.listpage.index}' class='LSobject-list-page'>{$smarty.section.listpage.index+1}</a> <a href='object/{$LSsearch->LSobject|escape:'url'}?page={$smarty.section.listpage.index}' class='LSobject-list-page'>{$smarty.section.listpage.index+1}</a>
{/if} {/if}
{/section} {/section}
{/if} {/if}

View file

@ -69,7 +69,7 @@
<h2 class='LSimport_imported_objects'>{tr msg='Imported objects'} ({count($result.imported)})</h2> <h2 class='LSimport_imported_objects'>{tr msg='Imported objects'} ({count($result.imported)})</h2>
<ul class='LSimport_imported_objects'> <ul class='LSimport_imported_objects'>
{foreach $result.imported as $dn => $name} {foreach $result.imported as $dn => $name}
<li><a href='view.php?LSobject={$LSobject|escape:"url"}&dn={$dn|escape:"url"}'>{$name|escape:"htmlall"}</a></li> <li><a href='object/{$LSobject|escape:"url"}/{$dn|escape:"url"}'>{$name|escape:"htmlall"}</a></li>
{foreachelse} {foreachelse}
<li>{tr msg='No imported object'}</li> <li>{tr msg='No imported object'}</li>
{/foreach} {/foreach}
@ -79,7 +79,7 @@
<h2 class='LSimport_updated_objects'>{tr msg='Updated objects'} ({count($result.updated)})</h2> <h2 class='LSimport_updated_objects'>{tr msg='Updated objects'} ({count($result.updated)})</h2>
<ul class='LSimport_updated_objects'> <ul class='LSimport_updated_objects'>
{foreach $result.updated as $dn => $name} {foreach $result.updated as $dn => $name}
<li><a href='view.php?LSobject={$LSobject|escape:"url"}&dn={$dn|escape:"url"}'>{$name|escape:"htmlall"}</a></li> <li><a href='object/{$LSobject|escape:"url"}/{$dn|escape:"url"}'>{$name|escape:"htmlall"}</a></li>
{/foreach} {/foreach}
</ul> </ul>
{/if} {/if}

View file

@ -18,7 +18,7 @@
<tr> <tr>
<td rowspan=2 id='left'> <td rowspan=2 id='left'>
<a href='index.php'><img src='{img name='logo'}' alt='Logo' id='logo'/></a> <a href='index.php'><img src='{img name='logo'}' alt='Logo' id='logo'/></a>
{if $LSsession_subDn!=""} {if $LSsession_subDn!=""}
<form action="index.php" method='post' id='LSsession_topDn_form'> <form action="index.php" method='post' id='LSsession_topDn_form'>
<label>{$label_level|escape:"htmlall"} <label>{$label_level|escape:"htmlall"}
@ -40,7 +40,7 @@
<ul class='menu'> <ul class='menu'>
{foreach from=$LSaccess item=label key=LSobject_type} {foreach from=$LSaccess item=label key=LSobject_type}
<li class='menu'><a href='view.php?LSobject={$LSobject_type|escape:"url"}' class='menu'>{tr msg=$label}</a></li> <li class='menu'><a href='object/{$LSobject_type|escape:"url"}' class='menu'>{tr msg=$label}</a></li>
{/foreach} {/foreach}
{foreach from=$LSaddonsViewsAccess item=access} {foreach from=$LSaddonsViewsAccess item=access}
{if $access.showInMenu} {if $access.showInMenu}
@ -66,7 +66,3 @@
</tr> </tr>
<tr> <tr>
<td id='right'> <td id='right'>

View file

@ -5,7 +5,7 @@
{foreach from=$searchForm.hiddenFields item=value key=name} {foreach from=$searchForm.hiddenFields item=value key=name}
<input type='hidden' name='{$name|escape:"htmlall"}' value='{$value|escape:"htmlall"}' /> <input type='hidden' name='{$name|escape:"htmlall"}' value='{$value|escape:"htmlall"}' />
{/foreach} {/foreach}
<input type='text' name='pattern' class='LSview_search' value='{$searchForm.values.pattern|escape:"htmlall"}'/> <input type='text' name='pattern' class='LSview_search' value='{$searchForm.values.pattern|escape:"htmlall"}'/>
<input type='submit' value='{$searchForm.labels.submit|escape:"htmlall"}' name='{$searchForm.names.submit|escape:"htmlall"}' class='LSview_search' /> <input type='submit' value='{$searchForm.labels.submit|escape:"htmlall"}' name='{$searchForm.names.submit|escape:"htmlall"}' class='LSview_search' />
<p id='LSview_search_param'> <p id='LSview_search_param'>
@ -42,7 +42,7 @@
<tr class='LSobject-list'> <tr class='LSobject-list'>
<th class='LSobject-list'> <th class='LSobject-list'>
{if $LSsearch->sort} {if $LSsearch->sort}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;sortBy=displayName&amp;nocache={$smarty.now}'> <a href='object/{$LSsearch->LSobject|escape:"url"}?sortBy=displayName&amp;nocache={$smarty.now}'>
{if $LSsearch->sortBy == 'displayName'} {if $LSsearch->sortBy == 'displayName'}
<strong>{$LSsearch->label_objectName|escape:"htmlall"}</strong> <strong>{$LSsearch->label_objectName|escape:"htmlall"}</strong>
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/> <img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
@ -57,7 +57,7 @@
{if $LSsearch->displaySubDn} {if $LSsearch->displaySubDn}
<th class='LSobject-list LSobject-list-subdn'> <th class='LSobject-list LSobject-list-subdn'>
{if $LSsearch->sort} {if $LSsearch->sort}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;sortBy=subDn&amp;nocache={$smarty.now}'> <a href='object/{$LSsearch->LSobject|escape:"url"}?sortBy=subDn&amp;nocache={$smarty.now}'>
{if $LSsearch->sortBy == 'subDn'} {if $LSsearch->sortBy == 'subDn'}
<strong>{$LSsearch->label_level|escape:"htmlall"}</strong> <strong>{$LSsearch->label_level|escape:"htmlall"}</strong>
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/> <img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
@ -74,7 +74,7 @@
{foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid} {foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid}
<th class='LSobject-list'{if $conf.cssStyle} style='{$conf.cssStyle|escape:"htmlall"}'{/if}> <th class='LSobject-list'{if $conf.cssStyle} style='{$conf.cssStyle|escape:"htmlall"}'{/if}>
{if $LSsearch->sort} {if $LSsearch->sort}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;sortBy={$cid|escape:"url"}&amp;nocache={$smarty.now}'> <a href='object/{$LSsearch->LSobject|escape:"url"}?sortBy={$cid|escape:"url"}&amp;nocache={$smarty.now}'>
{if $LSsearch->sortBy == $cid} {if $LSsearch->sortBy == $cid}
<strong>{tr msg=$conf.label|escape:"htmlall"}</strong> <strong>{tr msg=$conf.label|escape:"htmlall"}</strong>
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/> <img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
@ -92,7 +92,7 @@
</tr> </tr>
{foreach from=$page.list item=object} {foreach from=$page.list item=object}
<tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'> <tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'>
<td class='LSobject-list LSobject-list-names'><a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;dn={$object->dn|escape:'url'}' class='LSobject-list'>{$object->displayName|escape:"htmlall"}</a> </td> <td class='LSobject-list LSobject-list-names'><a href='object/{$LSsearch->LSobject|escape:"url"}/{$object->dn|escape:'url'}' class='LSobject-list'>{$object->displayName|escape:"htmlall"}</a> </td>
{if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn|escape:"htmlall"}</td>{/if} {if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn|escape:"htmlall"}</td>{/if}
{if $LSsearch->extraDisplayedColumns} {if $LSsearch->extraDisplayedColumns}
{foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid} {foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid}
@ -110,7 +110,7 @@
<td colspan='{if $LSsearch->extraDisplayedColumns}{count($LSsearch->visibleExtraDisplayedColumns)+3}{else}3{/if}' class='LSobject-list-without-result'> <td colspan='{if $LSsearch->extraDisplayedColumns}{count($LSsearch->visibleExtraDisplayedColumns)+3}{else}3{/if}' class='LSobject-list-without-result'>
{$LSsearch->label_no_result|escape:"htmlall"} {$LSsearch->label_no_result|escape:"htmlall"}
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</table> </table>
@ -120,9 +120,9 @@
{tr msg='Nb / page :'} {tr msg='Nb / page :'}
{foreach from=$LSsearch->getParam('nbObjectsByPageChoices') item=choice} {foreach from=$LSsearch->getParam('nbObjectsByPageChoices') item=choice}
{if $LSsearch->getParam('nbObjectsByPage') == $choice} {if $LSsearch->getParam('nbObjectsByPage') == $choice}
<strong><a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;nbObjectsByPage={$choice}' class='LSobject-list-nb-by-page'>{$choice}</a></strong> <strong><a href='object/{$LSsearch->LSobject|escape:"url"}?nbObjectsByPage={$choice}' class='LSobject-list-nb-by-page'>{$choice}</a></strong>
{else} {else}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;nbObjectsByPage={$choice}' class='LSobject-list-nb-by-page'>{$choice}</a> <a href='object/{$LSsearch->LSobject|escape:"url"}?nbObjectsByPage={$choice}' class='LSobject-list-nb-by-page'>{$choice}</a>
{/if} {/if}
{/foreach} {/foreach}
</p> </p>
@ -130,7 +130,7 @@
{if $page.nbPages > 1} {if $page.nbPages > 1}
<p class='LSobject-list-page'> <p class='LSobject-list-page'>
{if $page.nbPages > 10} {if $page.nbPages > 10}
{if $page.nb > 5} {if $page.nb > 5}
{if $page.nb > $page.nbPages-6} {if $page.nb > $page.nbPages-6}
@ -141,21 +141,21 @@
{else} {else}
{assign var=start value=0} {assign var=start value=0}
{/if} {/if}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;page=0' class='LSobject-list-page'>&lt;</a> <a href='object/{$LSsearch->LSobject|escape:"url"}?page=0' class='LSobject-list-page'>&lt;</a>
{foreach from=0|range:10 item=i} {foreach from=0|range:10 item=i}
{if $page.nb==$start+$i} {if $page.nb==$start+$i}
<strong class='LSobject-list-page'>{$page.nb+1}</strong> <strong class='LSobject-list-page'>{$page.nb+1}</strong>
{else} {else}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;page={$i+$start}' class='LSobject-list-page'>{$i+$start+1}</a> <a href='object/{$LSsearch->LSobject|escape:"url"}?page={$i+$start}' class='LSobject-list-page'>{$i+$start+1}</a>
{/if} {/if}
{/foreach} {/foreach}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;page={$page.nbPages-1}' class='LSobject-list-page'>&gt;</a> <a href='object/{$LSsearch->LSobject|escape:"url"}?page={$page.nbPages-1}' class='LSobject-list-page'>&gt;</a>
{else} {else}
{section name=listpage loop=$page.nbPages step=1} {section name=listpage loop=$page.nbPages step=1}
{if $page.nb == $smarty.section.listpage.index} {if $page.nb == $smarty.section.listpage.index}
<strong class='LSobject-list-page'>{$page.nb+1}</strong> <strong class='LSobject-list-page'>{$page.nb+1}</strong>
{else} {else}
<a href='view.php?LSobject={$LSsearch->LSobject|escape:"url"}&amp;page={$smarty.section.listpage.index}' class='LSobject-list-page'>{$smarty.section.listpage.index+1}</a> <a href='object/{$LSsearch->LSobject|escape:"url"}?page={$smarty.section.listpage.index}' class='LSobject-list-page'>{$smarty.section.listpage.index+1}</a>
{/if} {/if}
{/section} {/section}
{/if} {/if}

View file

@ -1,226 +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($_REQUEST['LSobject'])) {
$LSobject = $_REQUEST['LSobject'];
if ( $LSobject == 'SELF' ) {
$LSobject = LSsession :: getLSuserObject() -> getType();
$dn = LSsession :: getLSuserObjectDn();
}
else {
$dn = isset($_REQUEST['dn'])?urldecode($_REQUEST['dn']):null;
}
if (LSsession :: in_menu($LSobject) || LSsession :: canAccess($LSobject,$dn)) {
if ( LSsession :: loadLSobject($LSobject) ) {
// Affichage d'un objet
if ( $dn!='' ) {
if (LSsession :: canAccess($LSobject,$dn)) {
if ( LSsession :: canEdit($LSobject,$dn) ) {
$LSview_actions[] = array(
'label' => _('Modify'),
'url' =>'modify.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn),
'action' => 'modify'
);
}
if (LSsession :: canCreate($LSobject)) {
$LSview_actions[] = array(
'label' => _('Copy'),
'url' =>'create.php?LSobject='.$LSobject.'&amp;load='.urlencode($dn),
'action' => 'copy'
);
}
if (LSsession :: canRemove($LSobject,$dn)) {
$LSview_actions[] = array(
'label' => _('Delete'),
'url' => 'remove.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn),
'action' => 'delete'
);
}
// Custum Actions
$customActionsConfig = LSconfig :: get('LSobjects.'.$LSobject.'.customActions');
if (is_array($customActionsConfig)) {
foreach($customActionsConfig as $name => $config) {
if (LSsession :: canExecuteCustomAction($dn,$LSobject,$name)) {
$LSview_actions[] = array (
'label' => ((isset($config['label']))?__($config['label']):__($name)),
'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False),
'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False),
'url' => 'custom_action.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn).'&amp;customAction='.$name,
'action' => ((isset($config['icon']))?$config['icon']:'generate'),
'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')
);
}
}
}
if (LSsession :: getLSuserObjectDn() != $dn) {
$object = new $LSobject();
$object -> loadData($dn);
LStemplate :: assign('pagetitle',$object -> getDisplayName());
}
else {
$object = LSsession :: getLSuserObject();
LStemplate :: assign('pagetitle',_('My account'));
}
LStemplate :: assign('LSldapObject',$object);
$view = $object -> getView();
$view -> displayView();
// LSrelations
if (LSsession :: loadLSclass('LSrelation')) {
LSrelation :: displayInLSview($object);
}
LStemplate :: assign('LSview_actions',$LSview_actions);
LSsession :: setTemplate('view.tpl');
}
else {
LSerror :: addErrorCode('LSsession_11');
}
}
// Affichage d'une liste d'un type d'objet
elseif (LSsession :: loadLSclass('LSsearch')) {
$object = new $LSobject();
LStemplate :: assign('pagetitle',$object -> getLabel());
$LSsearch = new LSsearch($LSobject, 'LSview', null, (isset($_REQUEST['reset'])));
$LSsearch -> setParam('extraDisplayedColumns',True);
$LSsearch -> setParamsFormPostData();
$searchForm = array (
'action' => $_SERVER['PHP_SELF'],
'recursive' => (! LSsession :: isSubDnLSobject($LSobject) && LSsession :: subDnIsEnabled() ),
'labels' => array (
'submit' => _('Search'),
'approx' => _('Approximative search'),
'recursive' => _('Recursive search')
),
'values' => array (
'pattern' => $LSsearch->getParam('pattern'),
'approx' => $LSsearch->getParam('approx'),
'recursive' => $LSsearch->getParam('recursive')
),
'names' => array (
'submit' => 'LSsearch_submit'
),
'hiddenFields' => $LSsearch -> getHiddenFieldForm(),
'predefinedFilter' => $LSsearch->getParam('predefinedFilter')
);
LStemplate :: assign('searchForm',$searchForm);
$LSview_actions=array();
if(LSsession :: canCreate($LSobject)) {
$LSview_actions['create'] = array (
'label' => _('New'),
'url' => 'create.php?LSobject='.$LSobject,
'action' => 'create'
);
if ($object -> listValidIOformats()) {
$LSview_actions['import'] = array (
'label' => _('Import'),
'url' => 'import.php?LSobject='.$LSobject,
'action' => 'import'
);
}
}
$LSview_actions['refresh'] = array (
'label' => _('Refresh'),
'url' => 'view.php?LSobject='.$LSobject.'&amp;refresh',
'action' => 'refresh'
);
$LSview_actions['reset'] = array (
'label' => _('Reset'),
'url' => 'view.php?LSobject='.$LSobject.'&amp;reset',
'action' => 'reset'
);
/*$LSview_actions['purge'] = array (
'label' => 'Purge the cache',
'url' => 'view.php?LSobject='.$LSobject.'&amp;LSsearchPurgeSession',
'action' => 'delete'
);*/
// Custum Actions
$customActionsConfig = LSconfig :: get('LSobjects.'.$LSobject.'.LSsearch.customActions');
if (is_array($customActionsConfig)) {
foreach($customActionsConfig as $name => $config) {
if (LSsession :: canExecuteLSsearchCustomAction($LSsearch,$name)) {
$LSview_actions[] = array (
'label' => ((isset($config['label']))?__($config['label']):__($name)),
'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False),
'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False),
'url' => 'custom_search_action.php?LSobject='.$LSobject.'&amp;customAction='.$name,
'action' => ((isset($config['icon']))?$config['icon']:'generate'),
'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')
);
}
}
}
LStemplate :: assign('LSview_actions',$LSview_actions);
$LSsearch -> run();
$LSsearch -> redirectWhenOnlyOneResult();
$page=(isset($_REQUEST['page'])?(int)$_REQUEST['page']:0);
$page = $LSsearch -> getPage($page);
LStemplate :: assign('page',$page);
LStemplate :: assign('LSsearch',$LSsearch);
if (LSsession :: loadLSclass('LSform')) {
LSform :: loadDependenciesDisplayView();
}
LSsession :: setTemplate('viewSearch.tpl');
}
else {
LSsession :: addErrorCode('LSsession_05','LSsearch');
}
}
}
else {
LSerror :: addErrorCode('LSsession_11');
}
}
else {
LSerror :: addErrorCode('LSsession_12');
}
}
else {
LSsession :: setTemplate('login.tpl');
}
// Affichage des retours d'erreurs
LSsession :: displayTemplate();
if (isset($LSsearch)) {
$LSsearch->afterUsingResult();
}