diff options
author | tailor <mpg4@janrain.com> | 2006-09-08 18:02:42 +0000 |
---|---|---|
committer | tailor <mpg4@janrain.com> | 2006-09-08 18:02:42 +0000 |
commit | cd06bc340d59fe8e650f539679c8394ce7d089b3 (patch) | |
tree | 9f810de06a664b862c1dbd3ac8268e0cbf11d130 /examples/server/lib/session.php | |
parent | b52569f0469a043e9f8d96e858600c7a73f21403 (diff) | |
download | php-openid-cd06bc340d59fe8e650f539679c8394ce7d089b3.zip php-openid-cd06bc340d59fe8e650f539679c8394ce7d089b3.tar.gz php-openid-cd06bc340d59fe8e650f539679c8394ce7d089b3.tar.bz2 |
[project @ add sreg[email,postcode] support to server,consumer examples]
Diffstat (limited to 'examples/server/lib/session.php')
-rw-r--r-- | examples/server/lib/session.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/server/lib/session.php b/examples/server/lib/session.php index 263a64f..e11fd64 100644 --- a/examples/server/lib/session.php +++ b/examples/server/lib/session.php @@ -188,4 +188,18 @@ function setRequestInfo($info=null) } } + +function getSreg($identity) +{ + // from config.php + global $openid_sreg; + + if (!is_array($openid_sreg)) { + return null; + } + + return $openid_sreg[$identity]; + +} + ?>
\ No newline at end of file |