keyload/index.php

27 lines
892 B
PHP
Raw Normal View History

2023-09-28 21:29:21 +02:00
<?php
/* curload
* Simple file uploading using POST requests and temporary keys
* Licensed under the GNU Affero General Public License version 3.0
*/
2023-09-30 20:31:01 +02:00
function main() {
include "config.php";
include "core.php";
2023-09-29 21:29:29 +02:00
2023-09-30 20:31:01 +02:00
$html = "";
2023-09-30 22:24:02 +02:00
$html = printHeader($html);
2023-09-29 21:29:29 +02:00
2023-09-30 20:31:01 +02:00
$html .= "\t\t\t<h1>speedie's super awesome file uploader junk</h1>\n";
$html .= "\t\t\t<form action=\"upload.php\" method=\"post\" enctype=\"multipart/form-data\">Select file to upload<br><input type=\"file\" name=\"file\" id=\"file\"><br><input type=\"text\" name=\"key\" placeholder=\"Upload key here\"><br><input type=\"submit\" value=\"Upload selected file\" name=\"web\"></form>\n";
$html .= "\t\t\t<p>Max file size: $maxFileSize MB</p>\n";
$html .= "\t\t\t<a href=\"https://git.speedie.site/speedie/curload\">source code</a>\n";
2023-09-29 21:29:29 +02:00
2023-09-30 20:31:01 +02:00
$html = printFooter($html);
2023-09-29 21:29:29 +02:00
2023-09-30 20:31:01 +02:00
print "$html";
}
main();
2023-09-28 21:29:21 +02:00
?>