|
@@ -33,7 +33,9 @@ discard block |
|
|
block discarded – undo |
|
33
|
33
|
$stmt = $conn->prepare("SELECT * FROM files WHERE status = 'n'"); |
|
34
|
34
|
$stmt->execute(); |
|
35
|
35
|
$result = $stmt->get_result(); |
|
36
|
|
- if($result->num_rows === 0) echo('There are no items waiting for approval.'); |
|
|
36
|
+ if($result->num_rows === 0) { |
|
|
37
|
+ echo('There are no items waiting for approval.'); |
|
|
38
|
+ } |
|
37
|
39
|
while($row = $result->fetch_assoc()) { |
|
38
|
40
|
echo "<a href='/view/?id=" . $row['id'] . "'>" . $row['title'] . "</a> by <a href='/view/profile?id=" . getID($row['author'], $conn) . "'>" . $row['author'] . "</a> @ " . $row['date'] . " | <a href='approve.php?id=" . $row['id'] . "'>Approve</a> | <a href='deny.php?id=" . $row['id'] . "'>Deny</a><br>"; |
|
39
|
41
|
} |
|
@@ -45,7 +47,9 @@ discard block |
|
|
block discarded – undo |
|
45
|
47
|
$stmt = $conn->prepare("SELECT * FROM users ORDER BY id DESC"); |
|
46
|
48
|
$stmt->execute(); |
|
47
|
49
|
$result = $stmt->get_result(); |
|
48
|
|
- if($result->num_rows === 0) echo('There are no items waiting for approval.'); |
|
|
50
|
+ if($result->num_rows === 0) { |
|
|
51
|
+ echo('There are no items waiting for approval.'); |
|
|
52
|
+ } |
|
49
|
53
|
while($row = $result->fetch_assoc()) { |
|
50
|
54
|
echo "<a href='/view/profile?id=" . $row['id'] . "'>" . $row['username'] . "</a> | <a href='ban.php?id=" . $row['id'] . "'>Ban</a><br>"; |
|
51
|
55
|
} |
Please login to merge, or discard this patch.