Pièce jointe « Authwebserver.php.patch »
Téléchargement 1 --- Authwebserver.php.orig 2015-02-12 12:31:54.984740145 -0500
2 +++ Authwebserver.php 2015-02-12 12:30:42.064742670 -0500
3 @@ -20,7 +20,11 @@
4 'type' => 'checkbox',
5 'label' => 'Check to make default authentication method (This disable Default LimeSurvey authentification by database)',
6 'default' => true,
7 - )
8 + ),
9 + 'logout_url' => array(
10 + 'type' => 'string',
11 + 'label' => 'Remote auth logout URL (LimeSurvey will redirect to this URL after local logout)',
12 + ),
13 );
14
15 public function __construct(PluginManager $manager, $id) {
16 @@ -31,6 +35,7 @@
17 */
18 $this->subscribe('beforeLogin');
19 $this->subscribe('newUserSession');
20 + $this->subscribe('afterLogout');
21 }
22
23 public function beforeLogin()
24 @@ -127,5 +132,13 @@
25
26 }
27
28 -
29 + public function afterLogout()
30 + {
31 + $logoutURL = $this->get('logout_url');
32 + if (!empty($logoutURL))
33 + {
34 + header("Location: $logoutURL");
35 + exit;
36 + }
37 + }
38 }
Fichiers joints
Pour vous référer aux pièces jointes d'une page, utilisez attachment:filename, comme indiqué ci-dessous dans la liste de fichiers. N'utilisez pas l'URL du lien [get], car elle peut changer et donc être facilement cassée.Vous n'êtes pas autorisé à joindre un fichier à cette page.