This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('content-type: text/plain', true); | |
ini_set('display_errors', 0); | |
ini_set('log_errors', 1); | |
ini_set('error_log', 'error.log'); | |
$osiz = getimagesize($_FILES['img']["tmp_name"] ?? __FILE__); | |
if (!$osiz || !ctype_digit(strval($_POST['pix'] ?? "a")) || !in_array($_POST['type'] ?? 0, [1, 2, 3])) { | |
http_response_code(400); | |
exit("Unsupported or missing input"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; You must ensure that the "Microsoft-Windows-Notepad-System-FoD-Package" | |
; optional package is installed and the notepad executable is present at | |
; its usual location, i.e. at "C:\Windows\System32\notepad.exe" | |
; | |
; This will interfere with the text-editing capabilities of the UWP Notepad | |
; app: https://www.microsoft.com/en-us/p/windows-notepad/9msmlrh6lzf3 | |
; So, it is recommended to remove the UWP app, and have ONLY the optional | |
; FoD package installed, before you import this file into the registry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit | |
T_DEV='pppoe-wan' | |
T_LOCK="/tmp/tmp/ddns_$T_DEV.lock" | |
[ "$DEVICE" != "$T_DEV" -o -e "$T_LOCK" ] && exit | |
touch "$T_LOCK" | |
T_USER='username' |