summaryrefslogtreecommitdiff
path: root/forum/utils
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils')
-rw-r--r--forum/utils/calendar.php2
-rw-r--r--forum/utils/edit.php10
-rw-r--r--forum/utils/editor.php4
-rw-r--r--forum/utils/notify.php14
4 files changed, 8 insertions, 22 deletions
diff --git a/forum/utils/calendar.php b/forum/utils/calendar.php
index 1592195..84ebe18 100644
--- a/forum/utils/calendar.php
+++ b/forum/utils/calendar.php
@@ -17,7 +17,7 @@ if($action=="addentry") {
$events->write();
notify("calendar", "New calendar entry:\n" . $title . "\n" . date("r", $time) . "\n" .
$description . "\n" .
- "http://www.executionroom.com/forum/?mode=calendar&date=" . $time);
+ $FORUM_URL . "/?mode=calendar&date=" . $time);
}
if($action=="edit") {
diff --git a/forum/utils/edit.php b/forum/utils/edit.php
index 0af361c..b5db282 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: http://www.executionroom.com/forum/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "New thread: " . $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: http://www.executionroom.com/forum/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "New reply: " . $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: http://www.executionroom.com/forum/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "Message has been edited: " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
} else {
error("Message " . $pid . " not found!");
}
@@ -74,7 +74,7 @@ case "reply":
$quote->add($post);
$posts->thread->lastpost = time();
$posts->write();
- notify("forum", "New reply (quote): http://www.executionroom.com/forum/?fid=". $fid . "&tid=" . $tid);
+ notify("forum", "New reply (quote): " . $FORUM_URL . "/?fid=". $fid . "&tid=" . $tid);
} else {
error("Message " . $pid . " not found!");
}
@@ -86,4 +86,4 @@ case "reply":
}
echo "<p><a href=\"?fid=" . $fid . "&amp;tid=" . $tid . "\">Return to thread.</a></p>\n";
-?> \ No newline at end of file
+?>
diff --git a/forum/utils/editor.php b/forum/utils/editor.php
index 681b98d..36fb39d 100644
--- a/forum/utils/editor.php
+++ b/forum/utils/editor.php
@@ -130,13 +130,13 @@ foreach($smileys as $smiley) {
<strong>To make a link, simply type the URL, and the system will
automagically transform it into an anchor (remember the
<em>http://</em> part)</strong>.<br/>
- Example: http://www.executionroom.com<br/>
+ Example: http://www.example.com<br/>
</p>
<p>
<strong>To insert an image, simply type the URL to that image, it will
automagically be transformed into an image, with a link to the
original image (again, remember the <em>http://</em> part).</strong><br/>
- Example: http://www.executionroom.com/gfx/logos/die_logo_bloody.png
+ Example: http://www.example.com/image.jpg
</p>
<p>
<button type="submit">Post</button>
diff --git a/forum/utils/notify.php b/forum/utils/notify.php
index f52d167..9c34e65 100644
--- a/forum/utils/notify.php
+++ b/forum/utils/notify.php
@@ -3,20 +3,6 @@
include_once($UTIL_DIR . "/error.php");
include_once($UTIL_DIR . "/log.php");
-/**
- * CONFIG
- */
-$subject_prefix = "DIE CMS notifier";
-$sender = "DIE <info@executionroom.com>";
-$replyto = $sender;
-$footer = "
-
-Stay Brutal!
-// DIE
-http://www.executionroom.com
-info@executionroom.com
-";
-
function send($email, $subject, $message)
{
global $subject_prefix;