From 51136e393288d81095512bfd6642ff2acdf6574a Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 5 Mar 2024 09:50:08 +0300 Subject: [PATCH] . --- artemsbc.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/artemsbc.php b/artemsbc.php index 8b6df94..11a6ac3 100644 --- a/artemsbc.php +++ b/artemsbc.php @@ -1,10 +1,22 @@ max_size=$max_size; + $bc->file=fopen($filename, "w+"); + if ($lock) { + if (!flock($bc->file, LOCK_EX)) { + return false; + die("bcerror:locked_file"); + } + } + +} function artembc_createbc() {} function artembc_addtransaction() {} function artembc_initblock() {} function artembc_checkbc() {} function artembc_getblock() {} -function artembc_getblocks() {} +function artembc_getbc() {} +function artembc_getnamebc() {} ?> \ No newline at end of file