mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Post.php - Separate 9k lines into separate files by sub-modules (e.g. ticket, invoice, expense) for easier development and troubleshooting
This commit is contained in:
24
post/scheduled_ticket_model.php
Normal file
24
post/scheduled_ticket_model.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
// HTML Purifier
|
||||
//require_once("plugins/htmlpurifier/HTMLPurifier.standalone.php");
|
||||
//$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
//$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]);
|
||||
//$purifier = new HTMLPurifier($purifier_config);
|
||||
|
||||
$client_id = intval($_POST['client']);
|
||||
$subject = sanitizeInput($_POST['subject']);
|
||||
$priority = sanitizeInput($_POST['priority']);
|
||||
//$details = trim(mysqli_real_escape_string($mysqli, $purifier->purify(html_entity_decode($_POST['details']))));
|
||||
$details = mysqli_real_escape_string($mysqli, $_POST['details']);
|
||||
$frequency = sanitizeInput($_POST['frequency']);
|
||||
|
||||
|
||||
$asset_id = "0";
|
||||
if (isset($_POST['asset'])) {
|
||||
$asset_id = intval($_POST['asset']);
|
||||
}
|
||||
|
||||
$contact_id = "0";
|
||||
if (isset($_POST['contact'])) {
|
||||
$contact_id = intval($_POST['contact']);
|
||||
}
|
||||
Reference in New Issue
Block a user