exit(page_renderer::render("Upload Disabled - $setting->sitename","<p>You can't upload anything at the moment because $settings->sitename has uploads disabled. Try contacting ".$settings->admindetails["name"].", your site Administrator. <a href='javascript:history.back();'>Go back</a>.</p>"));
if(!$env->is_logged_in)
exit(page_renderer::render("Upload Error - $settings->sitename","<p>You are not currently logged in, so you can't upload anything.</p>
exit(page_renderer::render("Upload - $settings->sitename","<p>Select an image below, and then type a name for it in the box. This server currently supports uploads up to ".get_max_upload_size()." in size.</p>
exit(page_renderer::render("Upload failed - $settings->sitename","<p>Your upload couldn't be processed because uploads are currently disabled on $settings->sitename. <a href='index.php'>Go back to the main page</a>.</p>"));
exit(page_renderer::render("Upload failed - $settings->sitename","<p>Your upload couldn't be processed because you are not logged in.</p><p>Try <a href='?action=login&returnto=".rawurlencode("?action=upload")."'>logging in</a> first."));
exit(page_renderer::render("Upload Error - $settings->sitename","<p>The file that you uploaded doesn't appear to be an image. $settings->sitename currently only supports uploading images (videos coming soon). <a href='?action=upload'>Go back to try again</a>.</p>"));
break;
case"video":
exit(page_renderer::render("Upload Error - $settings->sitename","<p>You uploaded a video, but $settings->sitename doesn't support them yet. Please try again later.</p>"));
default:
exit(page_renderer::render("Upload Error - $settings->sitename","<p>You uploaded an unnknown file type which couldn't be processed. $settings->sitename thinks that the file you uploaded was a(n) $mime_type, which isn't supported.</p>"));
exit(page_renderer::render("Upload Error - $settings->sitename","<p>A page or file has already been uploaded with the name '$new_filename'. Try deleting it first. If you do not have permission to delete things, try contacting one of the moderators.</p>"));
exit(page_renderer::render("Upload Error - $settings->sitename","<p>The file you uploaded was valid, but $settings->sitename couldn't verify that it was tampered with during the upload process. This probably means that $settings->sitename has been attacked. Please contact ".$settings->admindetails.", your $settings->sitename Administrator.</p>"));