mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 02:12:37 +02:00
Another Option
if you want to be judicious w/ adding lines of code, I offer this alternative.
This commit is contained in:
@@ -681,12 +681,8 @@ class DirectoryLister {
|
||||
protected function _getAppUrl() {
|
||||
|
||||
// Get the server protocol
|
||||
if (!empty($_SERVER['HTTPS'])) {
|
||||
if ($_SERVER['HTTPS']!=="off" {
|
||||
$protocol = 'https://';
|
||||
} else {
|
||||
$protocol = 'http://';
|
||||
}
|
||||
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']!=="off") {
|
||||
$protocol = 'https://';
|
||||
} else {
|
||||
$protocol = 'http://';
|
||||
}
|
||||
|
Reference in New Issue
Block a user