diff --git a/client_asset_add_modal.php b/client_asset_add_modal.php index 0128f34e..e931a91d 100644 --- a/client_asset_add_modal.php +++ b/client_asset_add_modal.php @@ -378,7 +378,7 @@
- +
diff --git a/client_asset_edit_modal.php b/client_asset_edit_modal.php index 50d2d34b..2083d5a9 100644 --- a/client_asset_edit_modal.php +++ b/client_asset_edit_modal.php @@ -383,7 +383,7 @@
- +
diff --git a/client_contact_add_modal.php b/client_contact_add_modal.php index 314fcada..486447df 100644 --- a/client_contact_add_modal.php +++ b/client_contact_add_modal.php @@ -132,7 +132,7 @@
- +
diff --git a/client_contact_edit_modal.php b/client_contact_edit_modal.php index c1674657..ff78a295 100644 --- a/client_contact_edit_modal.php +++ b/client_contact_edit_modal.php @@ -239,7 +239,7 @@
- +
diff --git a/client_location_add_modal.php b/client_location_add_modal.php index 8841017a..2df8e59f 100644 --- a/client_location_add_modal.php +++ b/client_location_add_modal.php @@ -61,7 +61,7 @@
- +
diff --git a/client_location_edit_modal.php b/client_location_edit_modal.php index 24cd1591..0f999d31 100644 --- a/client_location_edit_modal.php +++ b/client_location_edit_modal.php @@ -67,7 +67,7 @@
- +
diff --git a/client_rack_add_modal.php b/client_rack_add_modal.php index d1d93eac..8f66ea33 100644 --- a/client_rack_add_modal.php +++ b/client_rack_add_modal.php @@ -132,7 +132,7 @@
- +
diff --git a/client_rack_edit_modal.php b/client_rack_edit_modal.php index a5c054be..3bff86b5 100644 --- a/client_rack_edit_modal.php +++ b/client_rack_edit_modal.php @@ -137,7 +137,7 @@
- +
diff --git a/expense_add_modal.php b/expense_add_modal.php index b6db0189..5689f88d 100644 --- a/expense_add_modal.php +++ b/expense_add_modal.php @@ -181,7 +181,7 @@
- +
diff --git a/expense_edit_modal.php b/expense_edit_modal.php index ab87ffb9..8b9f553f 100644 --- a/expense_edit_modal.php +++ b/expense_edit_modal.php @@ -186,7 +186,7 @@
- +
diff --git a/post/user/asset.php b/post/user/asset.php index 9516d1f0..10fa966c 100644 --- a/post/user/asset.php +++ b/post/user/asset.php @@ -19,7 +19,7 @@ if (isset($_POST['add_asset'])) { $asset_id = mysqli_insert_id($mysqli); // Add Photo - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { $file_tmp_path = $_FILES['file']['tmp_name']; @@ -92,7 +92,7 @@ if (isset($_POST['edit_asset'])) { } // Update Photo - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { // Set directory in which the uploaded file will be moved $file_tmp_path = $_FILES['file']['tmp_name']; diff --git a/post/user/contact.php b/post/user/contact.php index f7b9eb46..1769786b 100644 --- a/post/user/contact.php +++ b/post/user/contact.php @@ -46,7 +46,7 @@ if (isset($_POST['add_contact'])) { } // Check for and process image/photo - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { $file_tmp_path = $_FILES['file']['tmp_name']; @@ -121,7 +121,7 @@ if (isset($_POST['edit_contact'])) { mysqli_query($mysqli,"UPDATE contacts SET contact_name = '$name', contact_title = '$title', contact_phone = '$phone', contact_extension = '$extension', contact_mobile = '$mobile', contact_email = '$email', contact_pin = '$pin', contact_notes = '$notes', contact_important = $contact_important, contact_billing = $contact_billing, contact_technical = $contact_technical, contact_department = '$department', contact_location_id = $location_id, contact_user_id = $contact_user_id WHERE contact_id = $contact_id"); // Upload Photo - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { // Set directory in which the uploaded file will be moved $file_tmp_path = $_FILES['file']['tmp_name']; diff --git a/post/user/expense.php b/post/user/expense.php index bb5cb12f..89a997d1 100644 --- a/post/user/expense.php +++ b/post/user/expense.php @@ -15,7 +15,7 @@ if (isset($_POST['add_expense'])) { // Check for and process attachment $extended_alert_description = ''; - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'pdf'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf'))) { $file_tmp_path = $_FILES['file']['tmp_name']; @@ -54,7 +54,7 @@ if (isset($_POST['edit_expense'])) { // Check for and process attachment $extended_alert_description = ''; - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'pdf'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf'))) { $file_tmp_path = $_FILES['file']['tmp_name']; diff --git a/post/user/location.php b/post/user/location.php index 9ecfb756..0bf4ab3d 100644 --- a/post/user/location.php +++ b/post/user/location.php @@ -33,7 +33,7 @@ if(isset($_POST['add_location'])){ mysqli_query($mysqli,"UPDATE locations SET location_primary = 1 WHERE location_id = $location_id"); } - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { $file_tmp_path = $_FILES['file']['tmp_name']; @@ -95,7 +95,7 @@ if(isset($_POST['edit_location'])){ } } - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { $file_tmp_path = $_FILES['file']['tmp_name']; diff --git a/post/user/rack.php b/post/user/rack.php index 4a5fa025..843c1f0e 100644 --- a/post/user/rack.php +++ b/post/user/rack.php @@ -24,7 +24,7 @@ if (isset($_POST['add_rack'])) { $rack_id = mysqli_insert_id($mysqli); // Add Photo - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { $file_tmp_path = $_FILES['file']['tmp_name']; @@ -67,7 +67,7 @@ if (isset($_POST['edit_rack'])) { mysqli_query($mysqli,"UPDATE racks SET rack_name = '$name', rack_description = '$description', rack_type = '$type', rack_model = '$model', rack_depth = '$depth', rack_units = $units, rack_location_id = $location, rack_physical_location = '$physical_location', rack_notes = '$notes' WHERE rack_id = $rack_id"); // Add Photo - if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png'))) { + if ($new_file_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) { $file_tmp_path = $_FILES['file']['tmp_name'];