fix2
This commit is contained in:
parent
529839bfa8
commit
8f58b38a17
@ -5,14 +5,15 @@ $idcko = $_GET['id'];
|
|||||||
if (!empty($idcko)){
|
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";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user