!jirafeau_challenge_upload($cfg, get_ip_address($cfg), $_POST['upload_password'])) {
echo 'Error 3: Invalid password';
exit;
- } elseif (!jirafeau_challenge_upload($cfg, get_ip_address($cfg), null)) {
+ } elseif (!isset($_POST['upload_password']) && !jirafeau_challenge_upload($cfg, get_ip_address($cfg), null)) {
echo 'Error 2: No password nor allowed IP';
exit;
}
if [ "$1" == "send" ]; then
if [ ! -f "$2" ]; then
- echo "File \"$2\" does not exists."
+ echo "File \"$2\" does not exist."
exit
fi