Revision | 3437fe626f19a0401dfb88fab95fd8f2e86d27a7 (tree) |
---|---|
Time | 2014-11-26 01:32:41 |
Author | henoheno <henoheno> |
Commiter | umorigu |
$HTTP_SERVER_VARS for suppressing notices
@@ -22,6 +22,9 @@ define('S_COPYRIGHT', | ||
22 | 22 | ///////////////////////////////////////////////// |
23 | 23 | // Init server variables |
24 | 24 | |
25 | +// Comapat and suppress notices | |
26 | +if (!isset($HTTP_SERVER_VARS)) $HTTP_SERVER_VARS = array(); | |
27 | + | |
25 | 28 | foreach (array('SCRIPT_NAME', 'SERVER_ADMIN', 'SERVER_NAME', |
26 | 29 | 'SERVER_PORT', 'SERVER_SOFTWARE') as $key) { |
27 | 30 | define($key, isset($_SERVER[$key]) ? $_SERVER[$key] : ''); |