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-29 21:29:29 +02:00
include " config.php " ;
2023-09-30 01:28:36 +02:00
$html = " " ;
2023-09-29 21:29:29 +02:00
$html .= " <!DOCTYPE html> \n " ;
$html .= " <html> \n " ;
$html .= " \t <head> \n " ;
2023-09-30 01:28:36 +02:00
$html .= " \t \t <meta name= \" description \" content= \" $instanceName is a simple file uploading site allowing users to upload files by authenticating using a key. \" > \n " ;
2023-09-29 21:29:29 +02:00
$html .= " \t \t <meta name= \" viewport \" content= \" width=device-width, initial-scale=1 \" /> \n " ;
$html .= " \t \t <link rel= \" icon \" href= \" $Icon\ " /> \n " ;
$html .= " \t \t <link type= \" text/css \" rel= \" stylesheet \" href= \" $Stylesheet\ " /> \n " ;
2023-09-30 01:28:36 +02:00
$html .= " \t \t <title> $instanceName </title> \n " ;
2023-09-29 21:29:29 +02:00
$html .= " \t </head> \n " ;
$html .= " \t <body> \n " ;
$html .= " \t \t <div class= \" content \" > \n " ;
$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 " ;
$html .= " \t \t </div> \n " ;
$html .= " \t </body> \n " ;
$html .= " </html> \n " ;
print " $html " ;
2023-09-28 21:29:21 +02:00
?>