aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
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)
{