This commit is contained in:
Bruno Rybársky 2023-06-12 15:46:23 +02:00
parent 946a593f62
commit 69b1e99cfb
No known key found for this signature in database
GPG Key ID: DFE2C061EF985CD4

@ -18,8 +18,8 @@ if (!empty($idcko)){
if ($stmt1->num_rows() < 1) {
die("Nonexistent link");
}
if (empty($_POST['action'])){
while ($stmt1->fetch()) {
if (empty($_POST['action'])){
$stmt2 = $mysqli->prepare("SELECT `Content` FROM Content WHERE `ContentID` = ?");
$stmt2->bind_param("s", $contentid);
$stmt2->bind_result ($content);
@ -39,15 +39,15 @@ if (!empty($idcko)){
}
}
}
else{
$action = $_POST['action'];
$extrainfo = $_POST['extrainfo'];
$stmt4 = $mysqli->prepare("INSERT INTO Logs (`Action`, `ExtraInfo`, `LinkID`, `ContentID`, `Datetime`, `Nickname`, `IP`) VALUES (?, ?, ?, ?, ?, ?);");
$stmt4 = $mysqli->prepare("INSERT INTO Logs (`Action`, `ExtraInfo`, `LinkID`, `ContentID`, `Datetime`, `Nickname`, `IP`) VALUES (?, ?, ?, ?, ?, ?, ?);");
$stmt4->bind_param('sssssss', $action, $extrainfo, $idcko, $contentid, $curdate, $nickname, $ipcka);
$stmt4->execute();
$stmt4->store_result();
}
}
}
else{
die("No link");