OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2257212
)
$HTTP_SERVER_VARS for suppressing notices
author
henoheno
<henoheno>
Sun, 19 Nov 2006 05:41:45 +0000
(14:41 +0900)
committer
umorigu
<umorigu@gmail.com>
Tue, 25 Nov 2014 16:32:41 +0000
(
01:32
+0900)
lib/init.php
patch
|
blob
|
history
diff --git
a/lib/init.php
b/lib/init.php
index
4637018
..
bf631d0
100644
(file)
--- a/
lib/init.php
+++ b/
lib/init.php
@@
-22,6
+22,9
@@
define('S_COPYRIGHT',
/////////////////////////////////////////////////
// Init server variables
+// Comapat and suppress notices
+if (!isset($HTTP_SERVER_VARS)) $HTTP_SERVER_VARS = array();
+
foreach (array('SCRIPT_NAME', 'SERVER_ADMIN', 'SERVER_NAME',
'SERVER_PORT', 'SERVER_SOFTWARE') as $key) {
define($key, isset($_SERVER[$key]) ? $_SERVER[$key] : '');