1st commit for syncing own Jlog developments with master
This commit is contained in:
parent
2ae67af572
commit
517c58344d
54 changed files with 1784 additions and 1062 deletions
12
scripts/proto.inc.php
Normal file
12
scripts/proto.inc.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
function proto() {
|
||||
if (isset($_SERVER['REQUEST_SCHEME']))
|
||||
return $_SERVER['REQUEST_SCHEME'];
|
||||
|
||||
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
|
||||
return 'https';
|
||||
|
||||
return 'http';
|
||||
}
|
||||
// eof
|
Loading…
Add table
Add a link
Reference in a new issue