mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-11 06:38:02 +02:00
add docker functionality
This commit is contained in:
parent
058a32533b
commit
28f384ee92
10 changed files with 46 additions and 0 deletions
20
data/update.php
Executable file
20
data/update.php
Executable file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
error_reporting(-1);
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('html_errors', 0);
|
||||
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
|
||||
require_once __DIR__ . '/src/Soap.php';
|
||||
require_once __DIR__ . '/src/Config.php';
|
||||
require_once __DIR__ . '/src/Payload.php';
|
||||
require_once __DIR__ . '/src/Handler.php';
|
||||
|
||||
if (!file_exists('.env')) {
|
||||
throw new RuntimeException('.env file missing');
|
||||
}
|
||||
|
||||
$config = parse_ini_file('.env', false, INI_SCANNER_TYPED);
|
||||
|
||||
(new netcup\DNS\API\Handler($config, $_REQUEST))->doRun();
|
Loading…
Add table
Add a link
Reference in a new issue