API Request
This commit is contained in:
parent
bc54e33621
commit
1b5630215b
4
api.php
4
api.php
@ -38,8 +38,8 @@ Db::connect (DBHOST, DBUSER, DBPASS, DBNAME);
|
||||
//Read API data
|
||||
$json = file_get_contents('php://input');
|
||||
$obj = json_decode($json, true);
|
||||
$logManager->write("[INFO] Rest API request body" . $json, LogRecordType::INFO);
|
||||
$logManager->write("[INFO] Rest API request body -> decodet to json" . var_export($obj), LogRecordType::INFO);
|
||||
$logManager->write("[API] Rest API request body \n" . $json, LogRecordType::INFO);
|
||||
$logManager->write("[API] Rest API request body -> decodet to json \n" . var_export($obj), LogRecordType::INFO);
|
||||
|
||||
//zabespecit proti Ddosu
|
||||
if (isset($obj['user']) && $obj['user'] != ''){
|
||||
|
@ -26,6 +26,7 @@ class Log extends Template
|
||||
}
|
||||
|
||||
$template->prepare('baseDir', BASEDIR);
|
||||
$template->prepare('debugMod', DEBUGMOD);
|
||||
$template->prepare('title', 'Logy');
|
||||
$template->prepare('logsFiles', $result);
|
||||
$template->prepare('langMng', $langMng);
|
||||
|
Loading…
Reference in New Issue
Block a user