Add file-upload error if lack of upload-dir/perms

This commit is contained in:
Jaidyn Ann 2024-02-14 21:56:36 -06:00
parent 37c4ce18f2
commit 1d3b7bceba
3 changed files with 8 additions and 1 deletions

View File

@ -39,7 +39,7 @@ switch (true) {
break; break;
default: default:
redirect(make_url("result/beam.php")); redirect(make_url("result/beam.php?error=3"));
break; break;
} }

View File

@ -0,0 +1,2 @@
<p>Couldnt save your coin; this is likely a configuration error.</p>
<p>Does insert-coin have access to the coin directory?</p>

View File

@ -26,6 +26,11 @@ switch (true) {
"coin/death-2.html", "coin/death-2.html",
$file_beam_die_alt, $file_beam_die_img); $file_beam_die_alt, $file_beam_die_img);
break; break;
case ($error == 3):
create_page($item . " on fire",
"coin/death-3.html",
$file_beam_die_alt, $file_beam_die_img);
break;
default: default:
create_page($item . " on fire", create_page($item . " on fire",
"coin/death.html", "coin/death.html",