OpenSencillo
2016.106
Long live the simplicity of PHP
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
All
Data Structures
Namespaces
Files
Functions
Pages
main-config.php
1
<?php
13
define(
'PAGE'
,$_GET[
"p"
]);
14
define(
"USER_IP"
,$_SERVER[
"REMOTE_ADDR"
]);
15
define(
"USER_BROWSER"
,$_SERVER[
"HTTP_USER_AGENT"
]);
16
if
(isset($_SERVER[
'HTTPS'
]) && ($_SERVER[
'HTTPS'
] ==
'on'
|| $_SERVER[
'HTTPS'
] == 1) || isset($_SERVER[
'HTTP_X_FORWARDED_PROTO'
]) && $_SERVER[
'HTTP_X_FORWARDED_PROTO'
] ==
'https'
)
17
{
18
$protocol =
'https://'
;
19
}
20
else
21
{
22
$protocol =
'http://'
;
23
}
24
define(
"PROTOCOL"
,$protocol);
25
?>
fw_headers
main-config.php
Generated on Thu May 19 2016 21:35:26 for OpenSencillo by
1.8.3