3 if (!function_exists(
'getallheaders')) {
10 function getallheaders()
15 'CONTENT_TYPE' =>
'Content-Type',
16 'CONTENT_LENGTH' =>
'Content-Length',
17 'CONTENT_MD5' =>
'Content-Md5',
21 if (substr(
$key, 0, 5) ===
'HTTP_') {
23 if (!isset($copy_server[
$key]) || !isset(
$_SERVER[$key])) {
24 $key = str_replace(
' ',
'-', ucwords(strtolower(str_replace(
'_',
' ', $key))));
25 $headers[
$key] = $value;
27 } elseif (isset($copy_server[$key])) {
28 $headers[$copy_server[
$key]] = $value;
32 if (!isset($headers[
'Authorization'])) {
33 if (isset(
$_SERVER[
'REDIRECT_HTTP_AUTHORIZATION'])) {
34 $headers[
'Authorization'] =
$_SERVER[
'REDIRECT_HTTP_AUTHORIZATION'];
35 } elseif (isset(
$_SERVER[
'PHP_AUTH_USER'])) {
37 $headers[
'Authorization'] =
'Basic ' . base64_encode(
$_SERVER[
'PHP_AUTH_USER'] .
':' . $basic_pass);
38 } elseif (isset(
$_SERVER[
'PHP_AUTH_DIGEST'])) {
39 $headers[
'Authorization'] =
$_SERVER[
'PHP_AUTH_DIGEST'];
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Create styles array
The data for the language used.