mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-25 22:48:00 +01:00
install.php: check that secrets.php is writable
This commit is contained in:
parent
3de9fa24dd
commit
8799c142b0
@ -5,6 +5,11 @@ define('VERSION', '5.1.4');
|
|||||||
require 'inc/bootstrap.php';
|
require 'inc/bootstrap.php';
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
|
if (!is_writable('inc/secrets.php')) {
|
||||||
|
echo 'install.php does not have permission to write to /inc/secrets.php, without permission the installer cannot continue';
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
// Salt generators
|
// Salt generators
|
||||||
class SaltGen {
|
class SaltGen {
|
||||||
public $salt_length = 128;
|
public $salt_length = 128;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user