aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-11-09 19:29:32 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-11-09 19:29:32 +0000
commit33a0bb1edf2cd26b52336f429893945c38f4e4a8 (patch)
tree6a1c44399fcfd60e75b01f51902578afd6783724
parent184d410b80088407a41bdcc8eb79198c35f4fbb4 (diff)
downloadforums-33a0bb1edf2cd26b52336f429893945c38f4e4a8.tar
forums-33a0bb1edf2cd26b52336f429893945c38f4e4a8.tar.gz
forums-33a0bb1edf2cd26b52336f429893945c38f4e4a8.tar.bz2
forums-33a0bb1edf2cd26b52336f429893945c38f4e4a8.tar.xz
forums-33a0bb1edf2cd26b52336f429893945c38f4e4a8.zip
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
-rw-r--r--phpBB/adm/style/acp_main.html3
-rw-r--r--phpBB/adm/style/admin.css4
-rw-r--r--phpBB/includes/acp/acp_main.php3
3 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/adm/style/acp_main.html b/phpBB/adm/style/acp_main.html
index 3bfa7602c7..4b6bc1910d 100644
--- a/phpBB/adm/style/acp_main.html
+++ b/phpBB/adm/style/acp_main.html
@@ -22,8 +22,7 @@
<!-- ENDIF -->
<!-- IF S_WRITABLE_CONFIG -->
- <div class="errorbox">
- <h3>{L_WARNING}</h3>
+ <div class="errorbox notice">
<p>{L_WRITABLE_CONFIG}</p>
</div>
<!-- ENDIF -->
diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css
index 219ff20eba..344b5cacf0 100644
--- a/phpBB/adm/style/admin.css
+++ b/phpBB/adm/style/admin.css
@@ -1175,6 +1175,10 @@ input.disabled {
font-weight: bold;
}
+.notice {
+ background-color: #62A5CC;
+}
+
/* Special cases for the error page */
#errorpage #page-header a {
font-weight: bold;
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';