-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdismiss_report.php
More file actions
31 lines (26 loc) · 794 Bytes
/
Copy pathdismiss_report.php
File metadata and controls
31 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
error_reporting(0);
require("config.php");
$report_id = $_POST["target"];
$sql2 = "SELECT * FROM reports where report_id='$report_id';";
$q2 = mysqli_query($con,$sql2);
$r = mysqli_fetch_assoc($q2);
unlink("$r[proof]");
$sql = "DELETE FROM reports where report_id='$report_id';";
$q = mysqli_query($con,$sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="ex_css/dismiss.css">
<script src="js/jquery.min.js"></script>
<title>Dismissed</title>
</head>
<body>
<?php
echo "<div class='container'><p>Report <span class='delete'>Dismissed</span></p> <button onclick='history.go(-1);' class='back-btn'>Go Back</button></div>";
?>
</body>
</html>