diff --git a/addevent.php b/addevent.php index 3a6eebc..c235ebf 100644 --- a/addevent.php +++ b/addevent.php @@ -95,7 +95,7 @@ if( $_SESSION['access'] != 1 ) {
-

BMS Events

+

BMS Events


-
+ diff --git a/editevent.php b/editevent.php index b7a789a..436d388 100644 --- a/editevent.php +++ b/editevent.php @@ -63,7 +63,7 @@ if( $_SESSION['access'] != 1 ) { } include "includes/classes/select2.class.php"; ?>
- +
@@ -161,7 +161,7 @@ if( $_SESSION['access'] != 1 ) { Issue Description: - +
diff --git a/includes/insert_event.php b/includes/insert_event.php index 61e4556..94b331d 100644 --- a/includes/insert_event.php +++ b/includes/insert_event.php @@ -4,7 +4,7 @@ $conn = mysqli_connect($servername, $username, $password, $db); $unit = mysqli_real_escape_string($conn, $_POST['unit']); $start_date_time = mysqli_real_escape_string($conn, $_POST['start_date_time']); -$description = mysqli_real_escape_string($conn, $_POST['description']); +$description = $_POST['description']; $is_ongoing = mysqli_real_escape_string($conn, $_POST['is_ongoing']); $end_date_time = mysqli_real_escape_string($conn, $_POST['end_date_time']); $alert = mysqli_real_escape_string($conn, $_POST['alert']); diff --git a/includes/update_event.php b/includes/update_event.php index 00f2cd8..dbb91e7 100644 --- a/includes/update_event.php +++ b/includes/update_event.php @@ -1,9 +1,9 @@ COM"; + $headers = "From: FROM-EMAIL@DOMAIN.COM"; $message = "BMS Unit: ".$unitname." \n Type of Alert: ".$alertname." \n Start Date / Time: ".$start_date_time." \n End Date / Time: ".$end_date_time." \n Description: ".$description." \n Updated by: ".$user." \n Event Link: https://DOMAIN.com/bms/viewevent.php?eventid=$event_id \n \n This message generated by https://DOMAIN.com/bms"; - //WordWrap the message - $message_wrapped = wordwrap($message, 70, "\n", true); + //WordWrap the message + $message_wrapped = wordwrap($message, 70, "\n", true); //Send the email mail($to,$subject,$message_wrapped,$headers); } else{
@@ -127,7 +127,7 @@ if( $_SESSION['access'] != 1 ) { Issue Description: - +