fix
This commit is contained in:
@ -18,8 +18,8 @@ if (!empty($idcko)){
|
|||||||
if ($stmt1->num_rows() < 1) {
|
if ($stmt1->num_rows() < 1) {
|
||||||
die("Nonexistent link");
|
die("Nonexistent link");
|
||||||
}
|
}
|
||||||
if (empty($_POST['action'])){
|
|
||||||
while ($stmt1->fetch()) {
|
while ($stmt1->fetch()) {
|
||||||
|
if (empty($_POST['action'])){
|
||||||
$stmt2 = $mysqli->prepare("SELECT `Content` FROM Content WHERE `ContentID` = ?");
|
$stmt2 = $mysqli->prepare("SELECT `Content` FROM Content WHERE `ContentID` = ?");
|
||||||
$stmt2->bind_param("s", $contentid);
|
$stmt2->bind_param("s", $contentid);
|
||||||
$stmt2->bind_result ($content);
|
$stmt2->bind_result ($content);
|
||||||
@ -39,15 +39,15 @@ if (!empty($idcko)){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else{
|
else{
|
||||||
$action = $_POST['action'];
|
$action = $_POST['action'];
|
||||||
$extrainfo = $_POST['extrainfo'];
|
$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->bind_param('sssssss', $action, $extrainfo, $idcko, $contentid, $curdate, $nickname, $ipcka);
|
||||||
$stmt4->execute();
|
$stmt4->execute();
|
||||||
$stmt4->store_result();
|
$stmt4->store_result();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
die("No link");
|
die("No link");
|
||||||
|
Reference in New Issue
Block a user