mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-11 23:36:02 +01:00
11 lines
240 B
PHP
11 lines
240 B
PHP
|
<?php
|
||
|
namespace Vichan\Functions\Net;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @return bool Returns if the client-server connection is an encrypted one (HTTPS).
|
||
|
*/
|
||
|
function is_connection_secure(): bool {
|
||
|
return !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
|
||
|
}
|