This commit is contained in:
devdatt 2025-12-12 07:33:54 +05:30
parent 23616e4f46
commit 2193c629d0
1 changed files with 3 additions and 4 deletions

View File

@ -11,7 +11,9 @@ $https = false;
function alert_and_back($message) function alert_and_back($message)
{ {
global $https; global $https;
global $domain;
global $subdomains_raw;
global $email;
$jsonFile = __DIR__ . '/domain.json'; $jsonFile = __DIR__ . '/domain.json';
$new = [ $new = [
@ -25,9 +27,6 @@ function alert_and_back($message)
global $FORM_PAGE; global $FORM_PAGE;
global $domain;
global $subdomains_raw;
global $email;
// SAFELY escape entire message for JavaScript (supports newlines, quotes, etc.) // SAFELY escape entire message for JavaScript (supports newlines, quotes, etc.)
$msg = json_encode($message, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); $msg = json_encode($message, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);