Compare commits

...

2 Enmetoj

Author SHA1 Message Date
Jaidyn Ann 1d3b7bceba Add file-upload error if lack of upload-dir/perms 2024-02-14 21:56:36 -06:00
Jaidyn Ann 37c4ce18f2 Fix variable typo 2024-02-14 21:50:41 -06:00
4 changed files with 10 additions and 3 deletions

View File

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

View File

@ -5,8 +5,8 @@
// Return the absolute path to the project's root.
function get_project_root()
{
return preg_replace("%" . $GLOBALS["root_name"] . ".*" . "%",
$GLOBALS["root_name"] . "/",
return preg_replace("%" . $GLOBALS["root"] . ".*" . "%",
$GLOBALS["root"] . "/",
getcwd());
}

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",
$file_beam_die_alt, $file_beam_die_img);
break;
case ($error == 3):
create_page($item . " on fire",
"coin/death-3.html",
$file_beam_die_alt, $file_beam_die_img);
break;
default:
create_page($item . " on fire",
"coin/death.html",