[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 109 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
UriSigner:: (5 methods):
__construct()
sign()
check()
computeHash()
buildUrl()
__construct($secret) X-Ref |
Constructor. param: string $secret A secret |
sign($uri) X-Ref |
Signs a URI. The given URI is signed by adding a _hash query string parameter which value depends on the URI and the secret. param: string $uri A URI to sign return: string The signed URI |
check($uri) X-Ref |
Checks that a URI contains the correct hash. The _hash query string parameter must be the last one (as it is generated that way by the sign() method, it should never be a problem). param: string $uri A signed URI return: bool True if the URI is signed correctly, false otherwise |
computeHash($uri) X-Ref |
No description |
buildUrl(array $url, array $params = array() X-Ref |
No description |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |