mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Change theme on click now instead of selecting them then hitting submit more ?? 0s for the form checkboxes
This commit is contained in:
@@ -59,7 +59,7 @@ if (isset($_POST['add_asset'])) {
|
||||
mysqli_query($mysqli,"INSERT INTO asset_history SET asset_history_status = '$status', asset_history_description = '$session_name created $name', asset_history_asset_id = $asset_id");
|
||||
|
||||
//Logging
|
||||
logAction("Asset", "Create", "$session_name created asset $asset_name", $client_id, $asset_id);
|
||||
logAction("Asset", "Create", "$session_name created asset $name", $client_id, $asset_id);
|
||||
|
||||
$_SESSION['alert_message'] = "Asset <strong>$name</strong> created $alert_extended";
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@ $model = sanitizeInput($_POST['model']);
|
||||
$serial = sanitizeInput($_POST['serial']);
|
||||
$os = sanitizeInput($_POST['os']);
|
||||
$ip = sanitizeInput($_POST['ip']);
|
||||
if ($_POST['dhcp'] == 1) {
|
||||
$dhcp = intval($_POST['dhcp'] ?? 0);
|
||||
if ($dhcp == 1) {
|
||||
$ip = 'DHCP';
|
||||
}
|
||||
$ipv6 = sanitizeInput($_POST['ipv6']);
|
||||
|
||||
@@ -4,9 +4,9 @@ $type = sanitizeInput($_POST['type']);
|
||||
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
|
||||
$referral = sanitizeInput($_POST['referral']);
|
||||
$rate = floatval($_POST['rate']);
|
||||
$currency_code = sanitizeInput($_POST['currency_code']);
|
||||
$net_terms = intval($_POST['net_terms']);
|
||||
$currency_code = sanitizeInput($_POST['currency_code'] ?? $session_company_currency); // So we dont have to to have a hidden form input if module sales is disabled
|
||||
$net_terms = intval($_POST['net_terms'] ?? $config_default_net_terms);
|
||||
$tax_id_number = sanitizeInput($_POST['tax_id_number']);
|
||||
$abbreviation = sanitizeInput($_POST['abbreviation']);
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
$lead = intval($_POST['lead']);
|
||||
$lead = intval($_POST['lead'] ?? 0);
|
||||
|
||||
@@ -81,7 +81,7 @@ if (isset($_POST['edit_contact'])) {
|
||||
require_once 'post/user/contact_model.php';
|
||||
|
||||
$contact_id = intval($_POST['contact_id']);
|
||||
$send_email = intval($_POST['send_email']);
|
||||
$send_email = intval($_POST['send_email'] ?? 0);
|
||||
|
||||
// Get Exisiting Contact Photo and contact_user_id
|
||||
$sql = mysqli_query($mysqli,"SELECT contact_photo, contact_user_id FROM contacts WHERE contact_id = $contact_id");
|
||||
|
||||
@@ -9,7 +9,7 @@ $username = encryptLoginEntry(trim($_POST['username']));
|
||||
$password = encryptLoginEntry(trim($_POST['password']));
|
||||
$otp_secret = sanitizeInput($_POST['otp_secret']);
|
||||
$note = sanitizeInput($_POST['note']);
|
||||
$important = intval($_POST['important']);
|
||||
$important = intval($_POST['important'] ?? 0);
|
||||
$contact_id = intval($_POST['contact']);
|
||||
$vendor_id = intval($_POST['vendor']);
|
||||
$asset_id = intval($_POST['asset']);
|
||||
|
||||
@@ -3,7 +3,7 @@ $date = sanitizeInput($_POST['date']);
|
||||
$source = sanitizeInput($_POST['source']);
|
||||
$destination = sanitizeInput($_POST['destination']);
|
||||
$miles = floatval($_POST['miles']);
|
||||
$roundtrip = intval($_POST['roundtrip']);
|
||||
$roundtrip = intval($_POST['roundtrip'] ?? 0);
|
||||
$purpose = sanitizeInput($_POST['purpose']);
|
||||
$user_id = intval($_POST['user']);
|
||||
$client_id = intval($_POST['client']);
|
||||
|
||||
Reference in New Issue
Block a user