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