1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-04 16:39:34 +00:00

sharex .json -> .sxcu

This commit is contained in:
Rouji 2017-03-28 17:59:43 +02:00
parent a858d133d0
commit c7fd21fa58

View File

@ -234,10 +234,11 @@ function sendShareXConfig()
{ {
global $HTTP_PROTO; global $HTTP_PROTO;
$host = $_SERVER["HTTP_HOST"]; $host = $_SERVER["HTTP_HOST"];
$filename = $host.".json"; $filename = $host.".sxcu";
$content = <<<EOT $content = <<<EOT
{ {
"Name": "$host", "Name": "$host",
"DestinationType": "None",
"RequestType": "POST", "RequestType": "POST",
"RequestURL": "$HTTP_PROTO://$host/", "RequestURL": "$HTTP_PROTO://$host/",
"FileFormName": "file", "FileFormName": "file",