mirror of
https://github.com/itflow-org/itflow
synced 2026-11-25 13:57:26 +00:00
Development mode for a test copy, set on Admin Backup and kept in config.php: every email goes to the test inbox with its recipient in the subject or is cancelled without one, texts wait, the ticket mailbox is not read, AI Triage, Stripe, autopay, RMM device actions, log forwarding, managed check-ins and telemetry are off, and a DEVELOPMENT badge shows in the top bar; 26.11.9 changelog entries
This commit is contained in:
@@ -112,6 +112,11 @@ function managedRequestBaseUrl(): string
|
||||
/* POST JSON and read JSON back - ['ok', 'code', 'json', 'err'] */
|
||||
function managedHttpJson(string $url, array $body, array $headers = []): array
|
||||
{
|
||||
// Development mode: a copy doesn't talk to a manager as the ITFlow it was copied from (functions/dev_mode.php)
|
||||
if (devModeOn()) {
|
||||
return ['ok' => false, 'code' => 0, 'json' => [], 'err' => 'Development mode - this server doesn\'t talk to a manager'];
|
||||
}
|
||||
|
||||
$ch = curl_init($url);
|
||||
curl_setopt_array($ch, [
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
|
||||
Reference in New Issue
Block a user