diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2013-01-29 14:31:35 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2013-01-29 14:31:35 +0100 |
| commit | b4efebae5551c8d8046a6755412104247a37c1bd (patch) | |
| tree | 91b86874c6a6adb7437eae42ac1f850ce495f62d /inc/mod/pages.php | |
| parent | cac9b868244345d6ab7e097aadfb083da98233b5 (diff) | |
| parent | 45f9b51ad85e087bafaa83ddb3d6a3547cafe315 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'inc/mod/pages.php')
| -rw-r--r-- | inc/mod/pages.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 34945b08..8d215efb 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -28,7 +28,7 @@ function mod_page($title, $template, $args, $subtitle = false) { ); } -function mod_login() { +function mod_login($redirect = false) { global $config; $args = array(); @@ -49,7 +49,10 @@ function mod_login() { // Set cookies setCookies(); - header('Location: ?/', true, $config['redirect_http']); + if ($redirect) + header('Location: ?' . $redirect, true, $config['redirect_http']); + else + header('Location: ?/', true, $config['redirect_http']); } } |
