1
0
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:
Paul S. Owen
2003-03-25 14:19:23 +00:00
parent 3d43169b2a
commit b0545e7636
2 changed files with 78 additions and 100 deletions

View File

@@ -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)
{