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.
  • [télécharger | voir] (2015-02-20 21:44:22, 1.0 KB) [[attachment:Authwebserver.php.patch]]
  • [télécharger | voir] (2015-02-16 16:02:42, 86.4 KB) [[attachment:auf2014.zip]]
  • [télécharger | voir] (2015-02-20 21:45:02, 1.2 KB) [[attachment:config-defaults.php.patch]]
  • [télécharger | voir] (2015-02-20 21:44:48, 0.7 KB) [[attachment:config.php.patch]]
  • [télécharger | voir] (2015-02-20 21:45:11, 1.1 KB) [[attachment:login.php.patch]]
  • [télécharger | voir] (2015-02-20 21:45:24, 1.4 KB) [[attachment:sondages.auf.org-ssl.patch]]
 All files | Selected Files: delete move to page copy to page

Vous n'êtes pas autorisé à joindre un fichier à cette page.