Move curl outside of if statement

This commit is contained in:
Jacob 2023-10-01 17:41:02 +02:00
parent 2c2ac8ffed
commit 8f750c932c

View file

@ -27,9 +27,10 @@ if (isset($_COOKIE[$cookieTypeName]) || ($publicUploading || $publicUploading ==
$html .= printFileUploadForm($html, $Error);
} else {
$html .= "\t\t\t\t<p>To upload a file, <a href=\"login.php\">log in using your key</a> and select a file to upload. After uploading, you will receive a link to the file stored on the servers.</p>\n";
$html .= "\t\t\t\t<p>You can also upload a file using <code>curl</code> (or any POST request):<br><br><code>curl -F \"file=@myfile\" -F \"key=mykey\" \"https://dl.speedie.site/upload.php\"</code>.</p>\n";
}
$html .= "\t\t\t\t<p>You can also upload a file using <code>curl</code> (or any POST request):<br><br><code>curl -F \"file=@myfile\" -F \"key=mykey\" \"https://dl.speedie.site/upload.php\"</code>.</p>\n";
// End the content div and print footer
$html = printFooter($html);