Fritzbox
Links[Bearbeiten]
IP-Wechsel melden[Bearbeiten]
$pwort = 'ihr-passwort'; $dyntxt = "textdatei.txt"; $port = ":8080"; $pwortcontrol = $_GET["pass"]; $IP = $_GET["meineip"]; $FW = $_GET["FW"]; if (file_exists($dyntxt)) { if ($pwortcontrol == $pwort) { $a = fopen("$dyntxt", "w"); fwrite($a, $IP); fclose($a); } else { $a = fopen("$dyntxt", "r+"); $dynip = fread($a, filesize($dyntxt)); fclose($a); if ($FW == 1) { $url = "https://" . $dynip; } else { $url = "http://" . $dynip . "" . $port; } header("Location: $url"); } }