Files
xxx/publish/preview.inc.php
T
tim 1468cf7138 Require a captcha for visitor submissions and for login.
Without the form field, the check was skipped. A solved captcha lasts
30 minutes in the session.
2026-09-25 21:54:14 +02:00

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;
?>