Написаны 2 функции

This commit is contained in:
root 2024-02-12 19:52:45 +03:00
parent 83e2ce772b
commit a25b19fd6a

View File

@ -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) {}