From 33a0bb1edf2cd26b52336f429893945c38f4e4a8 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 9 Nov 2008 19:29:32 +0000 Subject: ok, trim down the config check significantly for 3.0.3 until we properly discussed this git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9055 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index 2b932ebeeb..8c3f3f4c63 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -487,7 +487,8 @@ class acp_main if (file_exists($phpbb_root_path . 'config.' . $phpEx) && is_writable($phpbb_root_path . 'config.' . $phpEx)) { - $template->assign_var('S_WRITABLE_CONFIG', true); + // World-Writable? (000x) + $template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002)); } $this->tpl_name = 'acp_main'; -- cgit v1.2.1