aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-03-25 14:19:23 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-03-25 14:19:23 +0000
commitb0545e7636dd88a53cb54dd84fc8951fd8b7488e (patch)
treef771813d8d542cb34902d1c63ddf5d827e821522 /phpBB/includes/functions.php
parent3d43169b2a46f84fc9bf36b87d95bc7b666dafaa (diff)
downloadforums-b0545e7636dd88a53cb54dd84fc8951fd8b7488e.tar
forums-b0545e7636dd88a53cb54dd84fc8951fd8b7488e.tar.gz
forums-b0545e7636dd88a53cb54dd84fc8951fd8b7488e.tar.bz2
forums-b0545e7636dd88a53cb54dd84fc8951fd8b7488e.tar.xz
forums-b0545e7636dd88a53cb54dd84fc8951fd8b7488e.zip
Tidy up and simplify emailer class, add generate_board_url function ... note changes to emailer setup! Example will be adm/index.php remind
git-svn-id: file:///svn/phpbb/trunk@3718 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 34fda0d4d3..77a0812861 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -766,6 +766,13 @@ function obtain_icons(&$icons)
return;
}
+function generate_board_url()
+{
+ global $config;
+
+ return (($config['cookie_secure']) ? 'https://' : 'http://') . trim($config['server_name']) . (($config['server_port'] <> 80) ? ':' . trim($config['server_port']) . '/' : '/') . preg_replace('/^\/?(.*?)\/?$/', '\1', trim($config['script_path']));
+}
+
// Redirects the user to another page then exits the script nicely
function redirect($url)
{