mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Some fixes, auto language removal (so buggy) and replenishable status.
This commit is contained in:
parent
a89211a915
commit
2ac12a2e54
9 changed files with 35 additions and 43 deletions
|
@ -271,12 +271,10 @@ function file_write($str, $file, $max_size = LOG_MAX_SIZE, $lock = true, $replac
|
|||
rename($file, $new_name);
|
||||
}
|
||||
}
|
||||
if (!$fp = fopen($file, 'ab')) {
|
||||
if ($dir_created = bb_mkdir(dirname($file))) {
|
||||
$fp = fopen($file, 'ab');
|
||||
}
|
||||
if (file_exists($file) && $dir_created = bb_mkdir(dirname($file))) {
|
||||
$fp = fopen($file, 'ab+');
|
||||
}
|
||||
if ($fp) {
|
||||
if (isset($fp)) {
|
||||
if ($lock) {
|
||||
flock($fp, LOCK_EX);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue