Moved more edit add vars to models

This commit is contained in:
johnnyq
2023-03-21 21:18:12 -04:00
parent 3202bceddd
commit 201db36c24
3 changed files with 32 additions and 48 deletions

View File

@@ -0,0 +1,13 @@
<?php
$client_id = intval($_POST['client_id']);
$name = sanitizeInput($_POST['name']);
$country = sanitizeInput($_POST['country']);
$address = sanitizeInput($_POST['address']);
$city = sanitizeInput($_POST['city']);
$state = sanitizeInput($_POST['state']);
$zip = sanitizeInput($_POST['zip']);
$phone = preg_replace("/[^0-9]/", '',$_POST['phone']);
$hours = sanitizeInput($_POST['hours']);
$notes = sanitizeInput($_POST['notes']);
$contact = intval($_POST['contact']);
$primary_location = intval($_POST['primary_location']);

13
models/client_logins.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
$client_id = intval($_POST['client_id']);
$name = sanitizeInput($_POST['name']);
$uri = sanitizeInput($_POST['uri']);
$username = encryptLoginEntry($_POST['username']);
$password = encryptLoginEntry($_POST['password']);
$otp_secret = sanitizeInput($_POST['otp_secret']);
$note = sanitizeInput($_POST['note']);
$important = intval($_POST['important']);
$contact_id = intval($_POST['contact']);
$vendor_id = intval($_POST['vendor']);
$asset_id = intval($_POST['asset']);
$software_id = intval($_POST['software']);