debog
This commit is contained in:
parent
f313790157
commit
a52c462f45
|
@ -214,7 +214,8 @@ function save_battle($game,$bot1,$bot2,$resultat){
|
|||
ON DUPLICATE KEY UPDATE ".$field." = ".$field." + 1;");
|
||||
}
|
||||
function get_unique_id(){
|
||||
$fp = fopen(__DIR__.'countBattles.txt', 'c+');
|
||||
|
||||
$fp = fopen(__DIR__.'/countBattles.txt', 'c+');
|
||||
flock($fp, LOCK_EX);
|
||||
|
||||
$count = (int)fread($fp, filesize('count.txt'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user