- /* si on n'a pas trouvé, on renvoit sur x.org */
- redirect('https://www.polytechnique.org/');
+ // Otherwise (if no valid request was found, or if the return URL is not
+ // acceptable), the user is redirected back to our homepage.
+ pl_redirect('/');
+ }
+
+ function handler_admin_authgroupesx(&$page, $action = 'list', $id = null)
+ {
+ $page->setTitle('Administration - Auth groupes X');
+ $page->assign('title', 'Gestion de l\'authentification centralisée');
+ $table_editor = new PLTableEditor('admin/auth-groupes-x','group_auth','id');
+ $table_editor->describe('name','nom',true);
+ $table_editor->describe('privkey','clé privée',false);
+ $table_editor->describe('datafields','champs renvoyés',true);
+ $table_editor->describe('returnurls','urls de retour',true);
+ $table_editor->apply($page, $action, $id);