aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/groupcp.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2002-02-17 17:02:03 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2002-02-17 17:02:03 +0000
commit40e81950455c2f05975c5635eb2be9c4e8052708 (patch)
treea31ccf2c6ce3224e38b67d87a7a674d3df02947a /phpBB/groupcp.php
parentc8b89ff92b048dfae50dad8956c9b0c6b80752f9 (diff)
downloadforums-40e81950455c2f05975c5635eb2be9c4e8052708.tar
forums-40e81950455c2f05975c5635eb2be9c4e8052708.tar.gz
forums-40e81950455c2f05975c5635eb2be9c4e8052708.tar.bz2
forums-40e81950455c2f05975c5635eb2be9c4e8052708.tar.xz
forums-40e81950455c2f05975c5635eb2be9c4e8052708.zip
Cleaned up stuff (for Email)
git-svn-id: file:///svn/phpbb/trunk@2178 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/groupcp.php')
-rw-r--r--phpBB/groupcp.php16
1 files changed, 3 insertions, 13 deletions
diff --git a/phpBB/groupcp.php b/phpBB/groupcp.php
index 4474202640..d435f750e9 100644
--- a/phpBB/groupcp.php
+++ b/phpBB/groupcp.php
@@ -58,16 +58,6 @@ $cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0;
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
//
-// Set default email variables
-//
-$script_name = preg_replace("/^(\/)(.*?)(\/)$/", "\\2", $board_config['script_path']) . '/groupcp.'.$phpEx;
-$server_name = $board_config['server_name'];
-$server_protocol = ( $board_config['cookie_secure'] ) ? "https://" : "http://";
-$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . $board_config['server_port'] . '/' : '/';
-
-$server_url = $server_protocol . $server_name . $server_port . $script_name;
-
-//
// Default var values
//
$is_moderator = FALSE;
@@ -207,7 +197,7 @@ else if( isset($HTTP_POST_VARS['joingroup']) && $group_id )
"GROUP_MODERATOR" => $moderator['username'],
"EMAIL_SIG" => str_replace("<br />", "\n", "-- \n" . $board_config['board_email_sig']),
- "U_GROUPCP" => $server_url . "?" . POST_GROUPS_URL . "=$group_id&validate=true")
+ "U_GROUPCP" => $script_url . "?" . POST_GROUPS_URL . "=$group_id&validate=true")
);
$emailer->send();
$emailer->reset();
@@ -413,7 +403,7 @@ else if( $group_id )
"GROUP_NAME" => $group_name,
"EMAIL_SIG" => str_replace("<br />", "\n", "-- \n" . $board_config['board_email_sig']),
- "U_GROUPCP" => $server_url . "?" . POST_GROUPS_URL . "=$group_id")
+ "U_GROUPCP" => $script_url . "?" . POST_GROUPS_URL . "=$group_id")
);
$emailer->send();
$emailer->reset();
@@ -519,7 +509,7 @@ else if( $group_id )
"GROUP_NAME" => $group_name,
"EMAIL_SIG" => str_replace("<br />", "\n", "-- \n" . $board_config['board_email_sig']),
- "U_GROUPCP" => $server_url . "?" . POST_GROUPS_URL . "=$group_id")
+ "U_GROUPCP" => $script_url . "?" . POST_GROUPS_URL . "=$group_id")
);
$emailer->send();
$emailer->reset();