diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2004-06-06 21:44:49 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-06-06 21:44:49 +0000 |
| commit | c2834abfae4ac9bc02cb245d1bdb5bf78802ec26 (patch) | |
| tree | 6691f2409cd2af03de0ac49b1db42d47cce01704 /phpBB/ucp.php | |
| parent | b3d98c8ba1b6f21b4a7c412b94ce5cae80cb4a40 (diff) | |
| download | forums-c2834abfae4ac9bc02cb245d1bdb5bf78802ec26.tar forums-c2834abfae4ac9bc02cb245d1bdb5bf78802ec26.tar.gz forums-c2834abfae4ac9bc02cb245d1bdb5bf78802ec26.tar.bz2 forums-c2834abfae4ac9bc02cb245d1bdb5bf78802ec26.tar.xz forums-c2834abfae4ac9bc02cb245d1bdb5bf78802ec26.zip | |
- added folder_moved image
- new feature: bookmark topics
- fixed post details link
- added confirmation screen to cookie deletion
git-svn-id: file:///svn/phpbb/trunk@4912 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/ucp.php')
| -rwxr-xr-x | phpBB/ucp.php | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php index bbc77b3ad9..e49566b00e 100755 --- a/phpBB/ucp.php +++ b/phpBB/ucp.php @@ -303,26 +303,34 @@ switch ($mode) case 'delete_cookies': // Delete Cookies with dynamic names (do NOT delete poll cookies) - $set_time = time() - 31536000; - foreach ($_COOKIE as $cookie_name => $cookie_data) + if (confirm_box(true)) { - $cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name); - if (!strstr($cookie_name, '_poll')) + $set_time = time() - 31536000; + foreach ($_COOKIE as $cookie_name => $cookie_data) { - $user->set_cookie($cookie_name, '', $set_time); + $cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name); + if (!strstr($cookie_name, '_poll')) + { + $user->set_cookie($cookie_name, '', $set_time); + } } - } - $user->set_cookie('track', '', $set_time); - $user->set_cookie('data', '', $set_time); - $user->set_cookie('sid', '', $set_time); + $user->set_cookie('track', '', $set_time); + $user->set_cookie('data', '', $set_time); + $user->set_cookie('sid', '', $set_time); - // We destroy the session here, the user will be logged out nevertheless - $user->destroy(); + // We destroy the session here, the user will be logged out nevertheless + $user->destroy(); - meta_refresh(3, "{$phpbb_root_path}index.$phpEx"); + meta_refresh(3, "{$phpbb_root_path}index.$phpEx"); - $message = $user->lang['COOKIES_DELETED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], "<a href=\"{$phpbb_root_path}index.$phpEx\">", '</a>'); - trigger_error($message); + $message = $user->lang['COOKIES_DELETED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], "<a href=\"{$phpbb_root_path}index.$phpEx\">", '</a>'); + trigger_error($message); + } + else + { + confirm_box(false, 'DELETE_COOKIES', ''); + } + redirect("index.$phpEx"); break; } |
