htdocs/include/functions.php 2 locations
|
@@ 764-768 (lines=5) @@
|
| 761 |
|
function xoops_getenv($key) |
| 762 |
|
{ |
| 763 |
|
$ret = ''; |
| 764 |
|
if (array_key_exists($key, $_SERVER) && isset($_SERVER[$key])) { |
| 765 |
|
$ret = $_SERVER[$key]; |
| 766 |
|
|
| 767 |
|
return $ret; |
| 768 |
|
} |
| 769 |
|
if (array_key_exists($key, $_ENV) && isset($_ENV[$key])) { |
| 770 |
|
$ret = $_ENV[$key]; |
| 771 |
|
|
|
@@ 769-773 (lines=5) @@
|
| 766 |
|
|
| 767 |
|
return $ret; |
| 768 |
|
} |
| 769 |
|
if (array_key_exists($key, $_ENV) && isset($_ENV[$key])) { |
| 770 |
|
$ret = $_ENV[$key]; |
| 771 |
|
|
| 772 |
|
return $ret; |
| 773 |
|
} |
| 774 |
|
|
| 775 |
|
return $ret; |
| 776 |
|
} |