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:
parent
a858d133d0
commit
c7fd21fa58
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user