Skip to content

Commit

Permalink
FILE_APPEND|LOCK_EX なんらかの間違いでputした時でも空白を追加するだけになるのでログが飛ばない。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 26, 2024
1 parent 0f1270b commit 4c85268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions petitnote/functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$functions_ver=20241124;
$functions_ver=20241126;
//編集モードログアウト
function logout(){
$resno=(int)filter_input(INPUT_GET,'resno',FILTER_VALIDATE_INT);
Expand Down Expand Up @@ -1017,7 +1017,7 @@ function init(){
check_dir(__DIR__."/webp");
check_dir(__DIR__."/template/cache");
if(!is_file(LOG_DIR.'alllog.log')){
file_put_contents(LOG_DIR.'alllog.log','',LOCK_EX);
file_put_contents(LOG_DIR.'alllog.log','',FILE_APPEND|LOCK_EX);
chmod(LOG_DIR.'alllog.log',0600);
}
}
Expand Down

0 comments on commit 4c85268

Please sign in to comment.