дописанно несколько новых функций
This commit is contained in:
parent
a25b19fd6a
commit
4c8e3800b4
@ -8,11 +8,25 @@ function savedb($data) {
|
|||||||
global $config;
|
global $config;
|
||||||
return file_put_contents($config["dbfile"], json_encode($data));
|
return file_put_contents($config["dbfile"], json_encode($data));
|
||||||
}
|
}
|
||||||
function createuser($name, $basepoint=0) {}
|
function createuser($name, $basepoint=0.0) {
|
||||||
function removeuser($name) {}
|
$db = loaddb();
|
||||||
function points($name) {}
|
$db["points"][$name] = $basepoint;
|
||||||
|
$db["logs"][$name][] = "Init wallet:" . $basepoint;
|
||||||
|
savedb($db);
|
||||||
|
}
|
||||||
|
function removeuser($name) {
|
||||||
|
$db = loaddb();
|
||||||
|
unset($db["points"][$name], $db["logs"][$name]);
|
||||||
|
savedb($db);
|
||||||
|
}
|
||||||
|
function points($name) {
|
||||||
|
chechtimebanpoint();
|
||||||
|
$db = loaddb();
|
||||||
|
$temp = $db["points"][$name];
|
||||||
|
return $temp;
|
||||||
|
}
|
||||||
function addpoint($name, $point, $reason="") {}
|
function addpoint($name, $point, $reason="") {}
|
||||||
function rmpoint($name, $point, $reason="") {}
|
function rmpoint($name, $point, $reason="", $force=true) {}
|
||||||
function paypoint($byname, $toname, $point, $reason="") {}
|
function paypoint($byname, $toname, $point, $reason="") {}
|
||||||
function logpoint($name) {}
|
function logpoint($name) {}
|
||||||
function banpoint($name, $point, $by="ANON_ADM", $len="perm", $reason="", $id=0) {}
|
function banpoint($name, $point, $by="ANON_ADM", $len="perm", $reason="", $id=0) {}
|
||||||
|
Reference in New Issue
Block a user