summaryrefslogtreecommitdiff
path: root/forum/utils
diff options
context:
space:
mode:
authordeva <deva>2008-11-25 15:47:42 +0000
committerdeva <deva>2008-11-25 15:47:42 +0000
commit95cf39ed5f2b4b54d073c70cd88d0fef07da05ff (patch)
treeb81e39581d8f0d2e493f5447eee67f67222c479b /forum/utils
parent26293573bd48571e65d9fc63a7e9daa61861a431 (diff)
Made edit autoforward after post. Changed mail to include title of new post.
Diffstat (limited to 'forum/utils')
-rw-r--r--forum/utils/edit.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/forum/utils/edit.php b/forum/utils/edit.php
index b5db282..d65d59e 100644
--- a/forum/utils/edit.php
+++ b/forum/utils/edit.php
@@ -19,7 +19,7 @@ switch($task) {
$posts->thread->tid = $tid;
$posts->thread->lastpost = time();
$posts->write();
- notify("forum", "New thread: " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "New thread \"" . $title . "\" at " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
} else {
error("No forum id supplied!");
}
@@ -35,7 +35,7 @@ case "reply":
$reply->add($post);
$posts->thread->lastpost = time();
$posts->write();
- notify("forum", "New reply: " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "New reply \"" . $title . "\" at " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
} else {
error("Message " . $pid . " not found!");
}
@@ -55,7 +55,7 @@ case "reply":
$edit->message = $message . "\nEdited at: " . date("r", time());
$posts->thread->lastpost = time();
$posts->write();
- notify("forum", "Message has been edited: " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "Message \"" . $title . "\" has been edited: " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
} else {
error("Message " . $pid . " not found!");
}
@@ -87,3 +87,7 @@ case "reply":
echo "<p><a href=\"?fid=" . $fid . "&amp;tid=" . $tid . "\">Return to thread.</a></p>\n";
?>
+<meta http-equiv="refresh" content="0; URL=?fid=<?php echo $fid; ?>&amp;tid=<?php echo $tid; ?>" />
+
+
+