<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
This code is published under a 0BSD license.
Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
*/
require_once('inc/base.php');
require_once('inc/security.php');
require_role(ROLE_SYSTEMUSER);
require_once('dnsinclude.php');
$section = 'dns_dyndns';
$new = true;
$dyndns = [];
if (isset($_REQUEST['id'])) {
$dyndns = get_dyndns_account($_REQUEST['id']);
$new = false;
}
$username_http = $_SESSION['userinfo']['username'];
if (isset($dyndns['handle'])) {
$username_http .= "_{$dyndns['handle']}";
}
$http_update_info = '';
if (isset($dyndns['password'])) {
$http_update_info = ' Lassen Sie das Passworteingabefeld unberührt um das bestehende Passwort zu erhalten. Entfernen Sie das bestehende Passwort um das HTTP-Update zu deaktivieren.';
}
$html_header .= '<script type="text/javascript">
var username = "' . $_SESSION['userinfo']['username'] . '";
var handle;
var http_username;
function updateUsernameHTTP() {
handle = document.getElementById("handle").value;
http_username = username;
if (handle != "")