1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-11 14:45:42 +02:00

added return option for client validation

This commit is contained in:
Nils Blume 2023-08-22 14:19:35 +02:00
parent bd7d5bc672
commit 90a62128c0
4 changed files with 37 additions and 19 deletions

View file

@ -17,16 +17,4 @@ if (!file_exists('.env')) {
$config = parse_ini_file('.env', false, INI_SCANNER_TYPED);
// Get the domains from the URL parameter and split them from the comma separated string
$domains = explode(',', $_REQUEST['domain']);
// Loop through each domain and call the Handler
foreach ($domains as $domain) {
// Create a new request object with the current domain
$request = $_REQUEST;
$request['domain'] = trim($domain);
// Call the Handler with the current domain
(new netcup\DNS\API\Handler($config, $request))->doRun();
}
(new netcup\DNS\API\Handler($config, $_REQUEST))->doRun();