From e59d7bc707524db79448874926a947db1af2ac0a Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 26 Apr 2008 08:01:39 +0000 Subject: [PATCH] should fix issues on IIS --- fp-includes/core/core.system.php | 10 ++++++++++ fp-includes/core/core.theme.php | 2 ++ fp-interface/sharedtpls/comments.tpl | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.system.php b/fp-includes/core/core.system.php index 2c50e0c..2dbf657 100755 --- a/fp-includes/core/core.system.php +++ b/fp-includes/core/core.system.php @@ -122,6 +122,15 @@ utils_redirect(); } } + + function system_prepare_iis() { + if (!@$_SERVER['REQUEST_URI']) { + $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 ); + if (isset($_SERVER['QUERY_STRING'])) { + $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; + } + } + } function system_init_action_params() { @@ -143,6 +152,7 @@ system_sanitizequery(); system_unregister_globals(); + system_prepare_iis(); $GLOBALS['fpdb'] =& new FPDB; diff --git a/fp-includes/core/core.theme.php b/fp-includes/core/core.theme.php index 11b840f..7364007 100644 --- a/fp-includes/core/core.theme.php +++ b/fp-includes/core/core.theme.php @@ -270,6 +270,8 @@ } $flatpress['themeurl'] = $themeurl; + + $flatpress['params'] = $fp_params; $flatpress_upper = array_change_key_case($flatpress, CASE_UPPER); diff --git a/fp-interface/sharedtpls/comments.tpl b/fp-interface/sharedtpls/comments.tpl index de9d3b8..c6c11fd 100755 --- a/fp-interface/sharedtpls/comments.tpl +++ b/fp-interface/sharedtpls/comments.tpl @@ -4,7 +4,7 @@