diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-08-18 22:21:50 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-08-18 22:26:30 +0200 |
commit | a48889fed83b007202e76ddf1ba5436eca310df0 (patch) | |
tree | 4036210bb9c7dfc3e029ae8ef6f1962b441be056 /phpBB/includes/request/interface.php | |
parent | 24e9fb24d105b8e475dbaf66fd99be2839b86675 (diff) | |
download | forums-a48889fed83b007202e76ddf1ba5436eca310df0.tar forums-a48889fed83b007202e76ddf1ba5436eca310df0.tar.gz forums-a48889fed83b007202e76ddf1ba5436eca310df0.tar.bz2 forums-a48889fed83b007202e76ddf1ba5436eca310df0.tar.xz forums-a48889fed83b007202e76ddf1ba5436eca310df0.zip |
[feature/request-class] Add is_secure method to request for HTTPS
PHPBB3-9716
Diffstat (limited to 'phpBB/includes/request/interface.php')
-rw-r--r-- | phpBB/includes/request/interface.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/request/interface.php b/phpBB/includes/request/interface.php index 983a05d6c4..c0b8768b24 100644 --- a/phpBB/includes/request/interface.php +++ b/phpBB/includes/request/interface.php @@ -122,6 +122,13 @@ interface phpbb_request_interface public function is_ajax(); /** + * Checks if the current request is happening over HTTPS. + * + * @return bool True if the request is secure. + */ + public function is_secure(); + + /** * Returns all variable names for a given super global * * @param phpbb_request_interface::POST|GET|REQUEST|COOKIE $super_global |