summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Deurwaarder (Xeli) <richard@xelification.com>2013-06-24 13:48:34 +0200
committerRichard Deurwaarder (Xeli) <richard@xelification.com>2013-06-24 13:48:34 +0200
commit7cd4055f460f0c191e29d0e2952023d5f6400d30 (patch)
treee86b75456f0497d76a39773384497761b14507e2
parent983b3139d4d834caed06a2341f0cd0beaa09114a (diff)
Use codeigniter coding style
-rw-r--r--system/core/Common.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 467691cbf..db611e39a 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -346,13 +346,20 @@ if ( ! function_exists('is_https'))
*/
function is_https()
{
- if(isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on'){
+ if(isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on')
+ {
return TRUE;
- }elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https'){
+ }
+ elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
+ {
return TRUE;
- }elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && $_SERVER['HTTP_FRONT_END_HTTPS'] == 'on'){
+ }
+ elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && $_SERVER['HTTP_FRONT_END_HTTPS'] == 'on')
+ {
return TRUE;
- }else{
+ }
+ else
+ {
return FALSE;
}
}
@@ -737,6 +744,5 @@ if ( ! function_exists('function_usable'))
return FALSE;
}
}
-
/* End of file Common.php */
/* Location: ./system/core/Common.php */