HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/panomity.de/panomity.com/dyndns/update_debug.php
<?php
/*  debug_update.php  – verbosely logs a DynDNS call from the FRITZ!Box
 *  Drop it next to your existing update.php.
 *  chmod 640 and make it readable by the web server user (nobody, lsadm, …)
 */

$logFile = '/tmp/fritz_dyndns.log';          // writeable by webserver
$now     = date('c');

/* ---- collect request data ------------------------------------------ */

$lines   = [];
$lines[] = "==== $now =================================================";
$lines[] = 'REMOTE_ADDR='.($_SERVER['REMOTE_ADDR'] ?? '');
$lines[] = 'REQUEST_URI='.$_SERVER['REQUEST_URI'];
$lines[] = 'REQUEST_METHOD='.$_SERVER['REQUEST_METHOD'];
$lines[] = '-- HEADERS ------------------------------------------------';
foreach (getallheaders() as $k => $v) {
    $lines[] = "$k: $v";
}
$lines[] = '-- GET ----------------------------------------------------';
foreach ($_GET as $k => $v) {
    $lines[] = "$k = $v";
}
$lines[] = '-- AUTH ---------------------------------------------------';
$lines[] = 'PHP_AUTH_USER='.($_SERVER['PHP_AUTH_USER'] ?? '');
$lines[] = 'PHP_AUTH_PW  ='.($_SERVER['PHP_AUTH_PW']   ?? '');
$lines[] = "================================================================\n";

/* ---- write log atomically ----------------------------------------- */

file_put_contents($logFile, implode("\n", $lines), FILE_APPEND | LOCK_EX);

/* ---- minimal DynDNS response so the box thinks “success” ---------- */

$ip = $_GET['myip'] ?? $_SERVER['REMOTE_ADDR'];
if (!filter_var($ip, FILTER_VALIDATE_IP)) {
    echo "911 bad ip\n";                     // Box will log Fehlergrund 13
    exit;
}

echo "good $ip\n";                           // makes the box think update OK