Add 'Reply' button to article.php.

This commit is contained in:
Retro_Guy 2024-11-22 03:04:09 -07:00
parent 1cb98869b1
commit 6dfb2e487e
1 changed files with 18 additions and 15 deletions

View File

@ -37,16 +37,16 @@ $thread_show["lastdate"] = false;
$thread_show["threadsize"] = false;
if (isset($frames_on) && $frames_on === true) {
?>
<script>
var contentURL=window.location.pathname+window.location.search+window.location.hash;
if ( window.self !== window.top ) {
/* Great! now we move along */
} else {
window.location.href = '../index.php?content='+encodeURIComponent(contentURL);
}
top.history.replaceState({}, 'Title', 'index.php?content='+encodeURIComponent(contentURL));
</script>
?>
<script>
var contentURL = window.location.pathname + window.location.search + window.location.hash;
if (window.self !== window.top) {
/* Great! now we move along */
} else {
window.location.href = '../index.php?content=' + encodeURIComponent(contentURL);
}
top.history.replaceState({}, 'Title', 'index.php?content=' + encodeURIComponent(contentURL));
</script>
<?php
}
@ -91,12 +91,15 @@ if (! $message)
// article not found
echo $text_error["article_not_found"];
else {
if ($article_showthread)
if ($article_showthread) {
$thread = thread_cache_load($group);
// echo "<br>";
message_show($group, $id, 0, $message);
if ($article_showthread)
}
$is_blocked = message_show($group, $id, 0, $message);
if (((! $CONFIG['readonly']) && ($message)) && $is_blocked != "blocked") {
echo '<form action="' . $file_post . '">' . '<input type="hidden" name="id" value="' . urlencode($id) . '">' . '<input type="hidden" name="type" value="reply">' . '<input type="hidden" name="group" value="' . urlencode($group) . '">' . '<input type="submit" value="' . $text_article["button_answer"] . '">' . '</form>';
}
if ($article_showthread) {
message_thread($message->header->id, $group, $thread);
}
}
include "tail.inc";
?>