diff options
author | deva <deva> | 2008-10-13 12:39:17 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-13 12:39:17 +0000 |
commit | 71f846affc51a062261aab575e53c37d2972bdfd (patch) | |
tree | 958ed1799d43f57e9c1eb68eda3beff30a04ad7b /forum | |
parent | 42032d4bd8dd0c9772afd6ef7c1b09104cb22e8b (diff) |
Removed all hardcoded executionroom.com references.
Diffstat (limited to 'forum')
-rw-r--r-- | forum/htdocs/config.php.defaults | 11 | ||||
-rw-r--r-- | forum/htdocs/index.php | 2 | ||||
-rw-r--r-- | forum/utils/calendar.php | 2 | ||||
-rw-r--r-- | forum/utils/edit.php | 10 | ||||
-rw-r--r-- | forum/utils/editor.php | 4 | ||||
-rw-r--r-- | forum/utils/notify.php | 14 |
6 files changed, 20 insertions, 23 deletions
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 <info@example.com>"; +$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"); <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> -<title>ExecutionForum</title> +<title><?php echo $FORUM_TITLE; ?></title> <meta name="MSSmartTagsPreventParsing" content="true"/> <meta http-equiv="Content-Type" content="text/html"/> <link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/> 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 . "&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; |