switched from sending the user to the end based on action to sending the user to the end based on request
parent
a63d0b6a40
commit
a9eb39f179
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
%REQUIRE_LOGIN%
|
%REQUIRE_LOGIN%
|
||||||
echo "<div class='margin'><a href='%CONTENT_DIR%/board/?id=$id&action=post'><button> Post something </button></a></div>";
|
echo "<div class='margin'><a href='%CONTENT_DIR%/board/?id=$id&action=post&end'><button> Post something </button></a></div>";
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -15,7 +15,7 @@ $id=$_GET['id'];
|
||||||
<?php
|
<?php
|
||||||
if(isset($_GET['action'])) {
|
if(isset($_GET['action'])) {
|
||||||
if ($_GET['action']=='submit') {
|
if ($_GET['action']=='submit') {
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"5;URL=%CONTENT_DIR%/board/?id=$id?end\">";
|
echo "<meta http-equiv=\"refresh\" content=\"5;URL=%CONTENT_DIR%/board/?id=$id&end\">";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">";
|
echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">";
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
%REQUIRE_LOGIN%
|
%REQUIRE_LOGIN%
|
||||||
echo "<section>";
|
echo "<section>";
|
||||||
if (isset($_GET['reply_to'])) {
|
if (isset($_GET['reply_to'])) {
|
||||||
echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit&reply_to=" . $_GET['reply_to'] . "' method='post'>";
|
echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit&reply_to=" . $_GET['reply_to'] . "&end' method='post'>";
|
||||||
} else {
|
} else {
|
||||||
echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit' method='post'>";
|
echo "<form action='%CONTENT_DIR%/board/?id=$id&action=submit&end' method='post'>";
|
||||||
}
|
}
|
||||||
echo "<input type='text' name='title' maxlength='128' placeholder='Title'/><textarea name='content' maxlength='65535' placeholder='You can contribute to the conversation here. Tell us your story in up to 65535 characters...' rows='3'></textarea><input type='submit' value='Post'></form></section>";
|
echo "<input type='text' name='title' maxlength='128' placeholder='Title'/><textarea name='content' maxlength='65535' placeholder='You can contribute to the conversation here. Tell us your story in up to 65535 characters...' rows='3'></textarea><input type='submit' value='Post'></form></section>";
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue