change default secret key to a variable
This commit is contained in:
parent
f45a186b42
commit
1770795f16
@ -1,5 +1,10 @@
|
||||
<?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
|
||||
|
||||
/**
|
||||
@ -76,7 +81,7 @@ try {
|
||||
}
|
||||
|
||||
// Check if the secret is the default one, and if so, tell the user to change it
|
||||
if ($secret == "set me") {
|
||||
if ($secret == $defaultSecretKey) {
|
||||
returnJson(array(
|
||||
'status' => 'ERROR',
|
||||
'url' => 'You need to set your upload secret in the configuration section of the upload.php file',
|
||||
|
Loading…
Reference in New Issue
Block a user