mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
- Split into admin and user handlers, each admin page gets its own file now - Enforce role access once for admin POST requests - Automatically load POST logic for admin-based requests based on the referring page, otherwise automatically load all user request logic - Add support for using custom POST handlers
15 lines
578 B
PHP
15 lines
578 B
PHP
<?php
|
|
$client_id = intval($_POST['client_id']);
|
|
$name = sanitizeInput($_POST['name']);
|
|
$description = sanitizeInput($_POST['description']);
|
|
$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']);
|
|
$location_primary = intval($_POST['location_primary']);
|