This commit is contained in:
Bruno Rybársky 2023-06-09 21:54:01 +02:00
parent 529839bfa8
commit 8f58b38a17
No known key found for this signature in database
GPG Key ID: DFE2C061EF985CD4

@ -6,13 +6,14 @@ if (!empty($idcko)){
$ipcka = $_SERVER['REMOTE_ADDR']; $ipcka = $_SERVER['REMOTE_ADDR'];
if(!file_exists("data/logs.json")){
file_put_contents("data/logs.json", "{}");
}
$stranky = json_decode(file_get_contents("data/pageindex.json"), true); $stranky = json_decode(file_get_contents("data/pageindex.json"), true);
$contents = json_decode(file_get_contents("data/contents.json"), true); $contents = json_decode(file_get_contents("data/contents.json"), true);
$logs = json_decode(file_get_contents("data/logs.json"), true); $logs = json_decode(file_get_contents("data/logs.json"), true);
if(!file_exists("data/logs.json")){
file_put_contents("data/logs.json", "{}");
}
$alllog = "data/all.log"; $alllog = "data/all.log";