aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-08-24 11:35:17 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-08-24 11:35:17 +0000
commitdc49e0fdffe41cbf44363eb6af23503558a94d86 (patch)
treed057e1356b96b3fd49450b8c03cbc3262176e691
parent44148941cc18e694e8395f87b03b7fc7b4727adb (diff)
downloadforums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar.gz
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar.bz2
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar.xz
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.zip
fix installation by defining our needed CHMOD_READ and CHMOD_WRITE constants.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8787 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/constants.php4
-rw-r--r--phpBB/includes/functions.php4
-rw-r--r--phpBB/install/index.php6
3 files changed, 10 insertions, 4 deletions
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index 01300c8992..826afb3832 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -178,8 +178,8 @@ define('REFERER_VALIDATE_PATH', 2);
// phpbb_chmod() permissions
define('CHMOD_ALL', 7);
-define('CHMOD_READ', 4);
-define('CHMOD_WRITE', 2);
+@define('CHMOD_READ', 4);
+@define('CHMOD_WRITE', 2);
define('CHMOD_EXECUTE', 1);
// Additional constants
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b3fbd94159..5fcaece0d6 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3131,7 +3131,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
}
// Another quick fix for those having gzip compression enabled, but do not flush if the coder wants to catch "something". ;)
- if ($config['gzip_compress'])
+ if (!empty($config['gzip_compress']))
{
if (@extension_loaded('zlib') && !headers_sent() && !ob_get_level())
{
@@ -3854,7 +3854,7 @@ function exit_handler()
}
// As a pre-caution... some setups display a blank page if the flush() is not there.
- (!$config['gzip_compress']) ? @flush() : @ob_flush();
+ (empty($config['gzip_compress'])) ? @flush() : @ob_flush();
exit;
}
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index 3702558cbc..dc40d7bea0 100644
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -230,6 +230,12 @@ include($phpbb_root_path . 'language/' . $language . '/acp/board.' . $phpEx);
include($phpbb_root_path . 'language/' . $language . '/install.' . $phpEx);
include($phpbb_root_path . 'language/' . $language . '/posting.' . $phpEx);
+// usually we would need every single constant here - and it would be consistent. For 3.0.x, use a dirty hack... :(
+
+// Define needed constants
+define('CHMOD_READ', 4);
+define('CHMOD_WRITE', 2);
+
$mode = request_var('mode', 'overview');
$sub = request_var('sub', '');