Update add_entry.php
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
//this page has no gui, it may return ok or error
|
//this page has no gui, it may return ok or error
|
||||||
if(!isset($_GET["loglevel"]) or !isset($_GET["logtext"]) or !isset($_GET["machine_id"]))
|
if(!isset($_GET["loglevel"]) or !isset($_GET["logtext"]) or !isset($_GET["machine_id"]))
|
||||||
echo("syn_err");
|
echo("syn_err");
|
||||||
|
else{
|
||||||
$loglevel=htmlspecialchars($_GET["loglevel"]);
|
$loglevel=htmlspecialchars($_GET["loglevel"]);
|
||||||
$logtext=htmlspecialchars($_GET["logtext"]);
|
$logtext=htmlspecialchars($_GET["logtext"]);
|
||||||
$machine_id=htmlspecialchars($_GET["machine_id"]);
|
$machine_id=htmlspecialchars($_GET["machine_id"]);
|
||||||
@@ -23,5 +24,5 @@ if(!$stmt->execute())
|
|||||||
echo("wrt_err");
|
echo("wrt_err");
|
||||||
$stmt->close();
|
$stmt->close();
|
||||||
$conn->close();
|
$conn->close();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user