Update add_incident.php
This commit is contained in:
@@ -46,7 +46,7 @@ include "../../../api/php/log/add_server_entry.php"; //to log things
|
|||||||
<button type="submit" class="btn btn-primary btn-block">Create incident</button>
|
<button type="submit" class="btn btn-primary btn-block">Create incident</button>
|
||||||
</form>
|
</form>
|
||||||
<br>
|
<br>
|
||||||
<!-- php code to add user-->
|
<!-- php code to add incidents-->
|
||||||
<?php
|
<?php
|
||||||
// Check if the form is submitted
|
// Check if the form is submitted
|
||||||
if ($_SERVER["REQUEST_METHOD"] == "POST" and $block==0) {
|
if ($_SERVER["REQUEST_METHOD"] == "POST" and $block==0) {
|
||||||
@@ -72,6 +72,7 @@ include "../../../api/php/log/add_server_entry.php"; //to log things
|
|||||||
Incident added successfully!
|
Incident added successfully!
|
||||||
</div>';
|
</div>';
|
||||||
log_action("INCIDENT::ADD::SUCCESS","User ".$_SESSION["username"]." added an incident.",$_SESSION["id"]);
|
log_action("INCIDENT::ADD::SUCCESS","User ".$_SESSION["username"]." added an incident.",$_SESSION["id"]);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user