修訂 | f61d10de742a5123fd13dc2d4089514cbfcf14c8 (tree) |
---|---|
時間 | 2011-03-06 23:40:31 |
作者 | henoheno <henoheno> |
Commiter | henoheno |
Merged 1.50
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: init.php,v 1.46.2.3 2007/08/15 15:32:13 henoheno Exp $ | |
3 | +// $Id: init.php,v 1.46.2.4 2011/03/06 14:40:31 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2007 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -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] : ''); |