Miscellaneous functions that do not really fit elsewhere.
$Id: misc.php 499 2005-08-19 08:41:14Z stijn $
Returns true if insecure logins are allowed.
Insecure logins are logins using the unencrypted http:// method.
Return the complete URL to the current page, including the query string, prefixed with 'https://'.
Return the complete URL to the current page, including the query string but without the 'http://' part.
Return the complete URL to the current page, including the query string and the 'http://' or 'https://' part.
Return the complete URL to the current page, without the query string, prefixed with 'https://'.
Redirect the user to the encrypted version of the current URL.
Will not work if output has been sent to the browser before calling. Respects the configuration setting for 'https' enabled sites. Returns only if the page is requested by secure a method.
Return the canonicalized referrer of the current webpage.
Canonicalized because the query string of the referrer is stripped before being returned. Returns "" if no referrer information was present in the request.
Return the base URL for the user site if the current request is for a user site.
Returns "" if the current request is not for a user site.
Return a username if the current request is for a user site.
Returns "" if the current request is not for a user site.
Return true if the referrer to the current page matches.
The function defaults to checking whether the referrer is the same as the current page, either in SSL or non-SSL mode. An optional referrer may be specified to match against.
Return the complete URL to the current page, without the query string (if any) and without the 'http://' part.
Return the complete URL to the current page, without the query string but with the 'http://' or 'https://' part.
Return the address of the client, as specified by the client.
DO NOT USE FOR SECURITY PURPOSES!. This is not to be trusted. Any client can fake this. It is only useful for identifying the same client during web requests.
Returns "unknown" if the remote client address was not sent along with the request.
Strip the PATH_INFO of an URL.
Strip the query string of an (optional) GET request URL, and return it.
Redirect the user to the unencrypted version of the current URL.
Basically the opposite of encryptProtocol, this function works about the same. No output may have been sent to the browser yet, and it will only return if the page is requested using an insecure method.
Documentation generated on Fri, 30 Jun 2006 10:31:38 +0200 by phpDocumentor 1.3.0RC3