Update view_log.php
This commit is contained in:
@@ -81,7 +81,6 @@ $filter_query = "&loglevel=$loglevel&logtext=$logtext&machine_id=$machine_id&tim
|
|||||||
You are not allowed to delete log entries. (insufficient permissions)
|
You are not allowed to delete log entries. (insufficient permissions)
|
||||||
</div>';
|
</div>';
|
||||||
}else{
|
}else{
|
||||||
$id=htmlspecialchars($_GET["delete"]);
|
|
||||||
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
|
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
|
||||||
if ($conn->connect_error) {
|
if ($conn->connect_error) {
|
||||||
die("Connection failed: " . $conn->connect_error);
|
die("Connection failed: " . $conn->connect_error);
|
||||||
@@ -196,8 +195,9 @@ $filter_query = "&loglevel=$loglevel&logtext=$logtext&machine_id=$machine_id&tim
|
|||||||
You will not be able to undo this step. Important security evidence will be lost, if you press the "delete" button!
|
You will not be able to undo this step. Important security evidence will be lost, if you press the "delete" button!
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Cancel</button>
|
<button style="width:70%" type="button" class="btn btn-primary" data-bs-dismiss="modal">Cancel</button>
|
||||||
<a class="btn btn-danger" href="view_log.php?delete_all">Delete anyway</a>
|
<!-- <a class="btn btn-danger" href="view_log.php?delete_all">Delete anyway</a> -->
|
||||||
|
<button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#delete_all_auth">Delete log</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user