mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
44148941cc
commit
dc49e0fdff
3 changed files with 10 additions and 4 deletions
|
@ -178,8 +178,8 @@ define('REFERER_VALIDATE_PATH', 2);
|
||||||
|
|
||||||
// phpbb_chmod() permissions
|
// phpbb_chmod() permissions
|
||||||
define('CHMOD_ALL', 7);
|
define('CHMOD_ALL', 7);
|
||||||
define('CHMOD_READ', 4);
|
@define('CHMOD_READ', 4);
|
||||||
define('CHMOD_WRITE', 2);
|
@define('CHMOD_WRITE', 2);
|
||||||
define('CHMOD_EXECUTE', 1);
|
define('CHMOD_EXECUTE', 1);
|
||||||
|
|
||||||
// Additional constants
|
// Additional constants
|
||||||
|
|
|
@ -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". ;)
|
// 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())
|
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.
|
// 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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 . '/install.' . $phpEx);
|
||||||
include($phpbb_root_path . 'language/' . $language . '/posting.' . $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');
|
$mode = request_var('mode', 'overview');
|
||||||
$sub = request_var('sub', '');
|
$sub = request_var('sub', '');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue