From 00b6fbe0fef035e63a2e9cf957c10193e5ebcaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 9 May 2014 17:46:45 +0200 Subject: [PATCH] Show sample script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- doc/config.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/config.rst b/doc/config.rst index aff80623e2..9c4773af8a 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -995,10 +995,13 @@ Server connection settings Name of PHP script to be sourced and executed to obtain login credentials. This is alternative approach to session based single - signon. The script needs to provide function + signon. The script has to provide a function called ``get_login_credentials`` which returns list of username and password, accepting single parameter of existing username (can be - empty). See :file:`examples/signon-script.php` for an example. + empty). See :file:`examples/signon-script.php` for an example: + + .. literalinclude:: ../examples/signon-script.php + :language: php .. config:option:: $cfg['Servers'][$i]['SignonSession']