mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 16:45:19 +02:00
add warning to ACP index if config file is writeable
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8688 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
04814560c8
commit
0ce66e6552
@ -21,6 +21,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- IF S_WRITEABLE_CONFIG -->
|
||||||
|
<div class="errorbox">
|
||||||
|
<h3>{L_WARNING}</h3>
|
||||||
|
<p>{L_WRITEABLE_CONFIG}</p>
|
||||||
|
</div>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<table cellspacing="1">
|
<table cellspacing="1">
|
||||||
<caption>{L_FORUM_STATS}</caption>
|
<caption>{L_FORUM_STATS}</caption>
|
||||||
<col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" />
|
<col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" />
|
||||||
|
@ -463,6 +463,11 @@ class acp_main
|
|||||||
$template->assign_var('S_REMOVE_INSTALL', true);
|
$template->assign_var('S_REMOVE_INSTALL', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file_exists($phpbb_root_path . 'config.' . $phpEx) && is_writeable($phpbb_root_path . 'config.' . $phpEx))
|
||||||
|
{
|
||||||
|
$template->assign_var('S_WRITEABLE_CONFIG', true);
|
||||||
|
}
|
||||||
|
|
||||||
$this->tpl_name = 'acp_main';
|
$this->tpl_name = 'acp_main';
|
||||||
$this->page_title = 'ACP_MAIN';
|
$this->page_title = 'ACP_MAIN';
|
||||||
}
|
}
|
||||||
|
@ -362,6 +362,7 @@ $lang = array_merge($lang, array(
|
|||||||
'VIEW_INACTIVE_USERS' => 'View inactive users',
|
'VIEW_INACTIVE_USERS' => 'View inactive users',
|
||||||
|
|
||||||
'WELCOME_PHPBB' => 'Welcome to phpBB',
|
'WELCOME_PHPBB' => 'Welcome to phpBB',
|
||||||
|
'WRITEABLE_CONFIG' => 'Your config file (config.php) is currently world-writeable. We strongly encourage you to change the permissions to 640 or at least to 644 (for example: <a href="http://en.wikipedia.org/wiki/Chmod" rel="external">chmod</a> 640 config.php).',
|
||||||
));
|
));
|
||||||
|
|
||||||
// Inactive Users
|
// Inactive Users
|
||||||
|
Loading…
x
Reference in New Issue
Block a user