Open Sencillo
2015.107
Long live the simplicity of PHP
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
All
Data Structures
Namespaces
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 Jul 2 2015 04:02:29 for Open Sencillo by
1.8.6