mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 11:44:08 +02:00
thanks to SHS` for writing an updated version of the terms and the privacy policy.
git-svn-id: file:///svn/phpbb/trunk@5650 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -91,8 +91,38 @@ switch ($mode)
|
||||
trigger_error($message);
|
||||
break;
|
||||
|
||||
case 'terms_of_use':
|
||||
case 'privacy_statement':
|
||||
case 'terms':
|
||||
case 'privacy':
|
||||
|
||||
$message = ($mode == 'terms') ? 'TERMS_OF_USE_CONTENT' : 'PRIVACY_POLICY';
|
||||
$title = ($mode == 'terms') ? 'TERMS_USE' : 'PRIVACY';
|
||||
|
||||
if (empty($user->lang[$message]))
|
||||
{
|
||||
if ($user->data['is_registered'])
|
||||
{
|
||||
redirect("index.$phpEx$SID");
|
||||
}
|
||||
|
||||
login_box("index.$phpEx$SID");
|
||||
}
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'ucp_agreement.html')
|
||||
);
|
||||
|
||||
page_header($user->lang[$title]);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_AGREEMENT' => true,
|
||||
'AGREEMENT_TITLE' => $user->lang[$title],
|
||||
'AGREEMENT_TEXT' => $user->lang[$message],
|
||||
'U_BACK' => "{$phpbb_root_path}ucp.$phpEx$SID&mode=login",
|
||||
'L_BACK' => $user->lang['BACK_TO_LOGIN'])
|
||||
);
|
||||
|
||||
page_footer();
|
||||
|
||||
break;
|
||||
|
||||
case 'delete_cookies':
|
||||
|
Reference in New Issue
Block a user