Preparation for launch:info

This commit is contained in:
Pinga 2023-12-21 09:11:51 +02:00
parent 7e34dd7501
commit e7e1b61c8a

View file

@ -196,6 +196,23 @@ function processDomainInfo($conn, $db, $xml, $trans) {
return;
}
if (isset($launch_info)) {
$phaseType = (string) $launch_info->children('urn:ietf:params:xml:ns:launch-1.0')->phase;
// Get the <launch:applicationID> element if it exists
$applicationIDElement = $launch_info->children('urn:ietf:params:xml:ns:launch-1.0')->applicationID;
// Check if the <launch:applicationID> element is present and set the variable accordingly
$applicationID = isset($applicationIDElement) ? (string) $applicationIDElement : null;
// Get the attributes of the <launch:info> node
$attributes = $launch_info->attributes('launch', true);
$includeMark = (string) ($attributes->includeMark ?? 'false');
// Check if includeMark is 'true'
$includeMarkBool = strtolower($includeMark) === 'true';
}
try {
$stmt = $db->prepare("SELECT * FROM domain WHERE name = :name");
$stmt->execute(['name' => $domainName]);