From 71f846affc51a062261aab575e53c37d2972bdfd Mon Sep 17 00:00:00 2001
From: deva
Date: Mon, 13 Oct 2008 12:39:17 +0000
Subject: Removed all hardcoded executionroom.com references.
---
forum/htdocs/config.php.defaults | 11 +++++++++++
forum/htdocs/index.php | 2 +-
forum/utils/calendar.php | 2 +-
forum/utils/edit.php | 10 +++++-----
forum/utils/editor.php | 4 ++--
forum/utils/notify.php | 14 --------------
6 files changed, 20 insertions(+), 23 deletions(-)
(limited to 'forum')
diff --git a/forum/htdocs/config.php.defaults b/forum/htdocs/config.php.defaults
index 7f0d643..ec29e89 100644
--- a/forum/htdocs/config.php.defaults
+++ b/forum/htdocs/config.php.defaults
@@ -7,4 +7,15 @@ $PERMSTORE = $DATA_DIR . "/files";
$IMAGECACHE = $DATA_DIR . "/imagecache";
$LOG_FILE = $DATA_DIR . "/forum.log";
$FILE_MAX_SIZE = 5*1024; // 5kb
+$FORUM_URL = "http://www.example.com/forum";
+$FORUM_TITLE = "Example CMS";
+
+/**
+ * Mail Configuration
+ */
+$subject_prefix = "CMS notifier";
+$sender = "Example User ";
+$replyto = $sender;
+$footer = "----
+Happy happy joy joy!";
?>
diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php
index ab63d9b..aa3be9c 100644
--- a/forum/htdocs/index.php
+++ b/forum/htdocs/index.php
@@ -29,7 +29,7 @@ include_once($UTIL_DIR . "/clientinfo.php");
-ExecutionForum
+
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 "Return to thread.
\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) {
To make a link, simply type the URL, and the system will
automagically transform it into an anchor (remember the
http:// part) .
- Example: http://www.executionroom.com
+ Example: http://www.example.com
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 http:// part).
- Example: http://www.executionroom.com/gfx/logos/die_logo_bloody.png
+ Example: http://www.example.com/image.jpg
Post
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 ";
-$replyto = $sender;
-$footer = "
-
-Stay Brutal!
-// DIE
-http://www.executionroom.com
-info@executionroom.com
-";
-
function send($email, $subject, $message)
{
global $subject_prefix;
--
cgit v1.2.3