mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user