Fix indentation.
This commit is contained in:
parent
6724f2b75a
commit
7ef68b15f9
@ -149,10 +149,12 @@ class UserPage extends Extension {
|
|||||||
if ($config->get_int("user_loginshowprofile",0) == 0 &&
|
if ($config->get_int("user_loginshowprofile",0) == 0 &&
|
||||||
isset($_SERVER['HTTP_REFERER']) &&
|
isset($_SERVER['HTTP_REFERER']) &&
|
||||||
strstr($_SERVER['HTTP_REFERER'], "post/"))
|
strstr($_SERVER['HTTP_REFERER'], "post/"))
|
||||||
|
{
|
||||||
$page->set_redirect ($_SERVER['HTTP_REFERER']);
|
$page->set_redirect ($_SERVER['HTTP_REFERER']);
|
||||||
else
|
} else {
|
||||||
$page->set_redirect(make_link());
|
$page->set_redirect(make_link());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!$user->check_auth_token()) {
|
if(!$user->check_auth_token()) {
|
||||||
return;
|
return;
|
||||||
@ -354,8 +356,11 @@ class UserPage extends Extension {
|
|||||||
if ($config->get_int("user_loginshowprofile",0) == 0 &&
|
if ($config->get_int("user_loginshowprofile",0) == 0 &&
|
||||||
isset($_SERVER['HTTP_REFERER']) &&
|
isset($_SERVER['HTTP_REFERER']) &&
|
||||||
strstr($_SERVER['HTTP_REFERER'], "post/"))
|
strstr($_SERVER['HTTP_REFERER'], "post/"))
|
||||||
|
{
|
||||||
$page->set_redirect($_SERVER['HTTP_REFERER']);
|
$page->set_redirect($_SERVER['HTTP_REFERER']);
|
||||||
else $page->set_redirect(make_link("user"));
|
} else {
|
||||||
|
$page->set_redirect(make_link("user"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log_warning("user", "Failed to log in as ".html_escape($name)." [$hash]");
|
log_warning("user", "Failed to log in as ".html_escape($name)." [$hash]");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user