|
@ -32,7 +32,7 @@ if (!isset($config)) $config = []; |
|
|
|
|
|
|
|
|
$action = (isset($_REQUEST['action']) and preg_match(ACTION_REGEX, $_REQUEST['action'])) ? $_REQUEST['action'] : null; |
|
|
$action = (isset($_REQUEST['action']) and preg_match(ACTION_REGEX, $_REQUEST['action'])) ? $_REQUEST['action'] : null; |
|
|
|
|
|
|
|
|
$supplier = array_key_exist('supplier', $_REQUEST) ? $_REQUEST['supplier'] : $requestSupplier; |
|
|
|
|
|
|
|
|
$supplier = array_key_exists('supplier', $_REQUEST) ? $_REQUEST['supplier'] : $requestSupplier; |
|
|
$hasSupplier = is_string($supplier) and preg_match(SUPPLIER_REGEX, $supplier); |
|
|
$hasSupplier = is_string($supplier) and preg_match(SUPPLIER_REGEX, $supplier); |
|
|
|
|
|
|
|
|
if ($hasSupplier) { |
|
|
if ($hasSupplier) { |
|
@ -116,7 +116,7 @@ if ($action === 'config') { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
$event = array_key_exist('event', $_REQUEST) ? $_REQUEST['event'] : $requestEvent; |
|
|
|
|
|
|
|
|
$event = array_key_exists('event', $_REQUEST) ? $_REQUEST['event'] : $requestEvent; |
|
|
$hasEvent = ( |
|
|
$hasEvent = ( |
|
|
is_string($event) |
|
|
is_string($event) |
|
|
and preg_match(EVENT_REGEX, $event) |
|
|
and preg_match(EVENT_REGEX, $event) |
|
|