mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
File lock
This commit is contained in:
parent
54823b1003
commit
4e2b136b49
7 changed files with 57 additions and 58 deletions
|
|
@ -135,7 +135,7 @@ class Settings
|
|||
$config += $this->convertRequestToConfig();
|
||||
$configFile = file_get_contents("config/config.ini.example");
|
||||
$configFile = $this->overwriteINI($config, $configFile);
|
||||
file_put_contents("config/config.ini", $configFile);
|
||||
file_put_contents("config/config.ini", $configFile, LOCK_EX);
|
||||
|
||||
//save users/[Username].ini
|
||||
$userFile = file_get_contents("config/users/username.ini.example");
|
||||
|
|
@ -152,7 +152,7 @@ class Settings
|
|||
'role' => 'admin',
|
||||
), $userFile);
|
||||
}
|
||||
file_put_contents("config/users/" . $this->user . ".ini", $userFile);
|
||||
file_put_contents("config/users/" . $this->user . ".ini", $userFile, LOCK_EX);
|
||||
}
|
||||
|
||||
protected function testTheEnvironment()
|
||||
|
|
@ -438,4 +438,4 @@ function checkCommentSystemSelection(){
|
|||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue