Compare commits

..

No commits in common. "b6fd907373207e4df78b795931aebd811c1e7a76" and "45d4af2b1fc7855800460606cdefaa6eefcc38d6" have entirely different histories.

3 changed files with 3 additions and 8 deletions

@ -39,7 +39,7 @@ http {
expires 7d;
# Serve the file directly from disk
try_files $uri $uri/ =404;
try_files $uri $uri/;
}
}
}

@ -13,7 +13,7 @@ fi
echo "Setting permissions for upload script"
chmod 777 /var/www/html/upload.php
# Start php dependencies
# Start php dep
echo "Starting PHP"
service php8.1-fpm start

@ -1,10 +1,5 @@
<?php
/**
* DO NOT TOUCH!!!!!!!!
*/
$before = microtime(true); // Start time of the script
$defaultSecretKey = "set me"; // The default secret key
header('Content-type:application/json;charset=utf-8'); // Set the response content type to JSON
/**
@ -81,7 +76,7 @@ try {
}
// Check if the secret is the default one, and if so, tell the user to change it
if ($secret == $defaultSecretKey) {
if ($secret == "set me") {
returnJson(array(
'status' => 'ERROR',
'url' => 'You need to set your upload secret in the configuration section of the upload.php file',