Написаны 2 функции
This commit is contained in:
parent
83e2ce772b
commit
a25b19fd6a
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
function loaddb() {
|
||||
global $config;
|
||||
$db = json_decode(file_get_contents($config["dbfile"]));
|
||||
return $db;
|
||||
}
|
||||
function savedb($data) {
|
||||
global $config;
|
||||
return file_put_contents($config["dbfile"], json_encode($data));
|
||||
}
|
||||
function createuser($name, $basepoint=0) {}
|
||||
function removeuser($name) {}
|
||||
function points($name) {}
|
||||
|
Reference in New Issue
Block a user