mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Update Add Client to use prepared statments
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
||||
|
||||
$name = sanitizeInput($_POST['name']);
|
||||
$type = sanitizeInput($_POST['type']);
|
||||
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
|
||||
$referral = sanitizeInput($_POST['referral']);
|
||||
$name = cleanInput($_POST['name']);
|
||||
$type = cleanInput($_POST['type']);
|
||||
$website = preg_replace("(^https?://)", "", cleanInput($_POST['website']));
|
||||
$referral = cleanInput($_POST['referral']);
|
||||
$rate = floatval($_POST['rate'] ?? 0);
|
||||
$net_terms = intval($_POST['net_terms'] ?? $config_default_net_terms);
|
||||
$tax_id_number = sanitizeInput($_POST['tax_id_number'] ?? '');
|
||||
$abbreviation = sanitizeInput($_POST['abbreviation']);
|
||||
$tax_id_number = cleanInput($_POST['tax_id_number'] ?? '');
|
||||
$abbreviation = cleanInput($_POST['abbreviation'] ?? '');
|
||||
if (empty($abbreviation)) {
|
||||
$abbreviation = shortenClient($name);
|
||||
$abbreviation = shortenClient($name);
|
||||
}
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
$notes = cleanInput($_POST['notes'] ?? '');
|
||||
$lead = intval($_POST['lead'] ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user