Without the form field, the check was skipped. A solved captcha lasts 30 minutes in the session.
24 lines
749 B
PHP
24 lines
749 B
PHP
<?php
|
|
$result = get_post_data(TRUE);
|
|
extract($result[0], EXTR_OVERWRITE);
|
|
|
|
echo '<p>Please review your submission. Once you\'ve finished, please click "Submit" at the bottom of the page, or click "Preview" to check it again.</p>';
|
|
|
|
// Keep a new image outside the web root until the story is saved;
|
|
// display.php shows it to this session only.
|
|
if (is_uploaded_file($_FILES['upload']['tmp_name'] ?? '') && !isset($validate['upload'])) {
|
|
if (store_upload($_FILES['upload']['tmp_name']))
|
|
$file_src = pending_upload_url();
|
|
} else if (isset($uploaded) && $uploaded === 'pending' && pending_upload() && !$remove_img) {
|
|
$file_src = pending_upload_url();
|
|
}
|
|
|
|
echo display_stories();
|
|
|
|
echo "<br /><br />\n";
|
|
|
|
include('./write.inc.php');
|
|
|
|
return;
|
|
?>
|