.
This commit is contained in:
parent
a50b9598e9
commit
51136e3932
16
artemsbc.php
16
artemsbc.php
@ -1,10 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
class artembc {}
|
class artembc {}
|
||||||
function artembc_init() {}
|
function artembc_init($filename, $lock=true, $max_size=4094) {
|
||||||
|
$bc=new artembc;
|
||||||
|
$bc->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_createbc() {}
|
||||||
function artembc_addtransaction() {}
|
function artembc_addtransaction() {}
|
||||||
function artembc_initblock() {}
|
function artembc_initblock() {}
|
||||||
function artembc_checkbc() {}
|
function artembc_checkbc() {}
|
||||||
function artembc_getblock() {}
|
function artembc_getblock() {}
|
||||||
function artembc_getblocks() {}
|
function artembc_getbc() {}
|
||||||
|
function artembc_getnamebc() {}
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user