SMF Support > Arquivo
[TUTORIAL] Após o login, ser redirecionado para o próprio perfil
(1/1)
Costa:
In4tek SMF, fórum de suporte e traduções de mods para o SMF.
Após o login, ser redirecionado para o próprio perfil.
./Sources/LogInOut.php
--- Code: (encontre) --- // Double check the cookie...
elseif (isset($_GET['sa']) && $_GET['sa'] == 'check')
{
// Strike! You're outta there!
if ($_GET['member'] != $ID_MEMBER)
fatal_lang_error('login_cookie_error', false);
// Some whitelisting for login_url...
if (empty($_SESSION['login_url']))
redirectexit();
else
{
// Best not to clutter the session data too much...
$temp = $_SESSION['login_url'];
unset($_SESSION['login_url']);
redirectexit($temp);
}
}
--- End code ---
--- Code: (substitua por) --- // Double check the cookie...
elseif (isset($_GET['sa']) && $_GET['sa'] == 'check')
{
// Strike! You're outta there!
if ($_GET['member'] != $ID_MEMBER)
fatal_lang_error('login_cookie_error', false);
// Some whitelisting for login_url...
if (empty($_SESSION['login_url']))
redirectexit($scripturl . '?action=profile');
else
{
// Best not to clutter the session data too much...
$temp = $_SESSION['login_url'];
unset($_SESSION['login_url']);
redirectexit($temp);
}
}
--- End code ---
margarett:
E mais um:
--> Indice ;)
Daqui a mais, teremos de "moldar" o Indice para "Dicas" e para "Problemas" :P
Está a ficar muito extenso
Costa:
tbm pensei nisso
Um indice para Truques e dicas e outro para suporte e problemas
Algo assim, sei lá :P
Ou então pedir aos admins do SMf para criarem sub-fóruns...
Pronto, divaguei demais :P :P :P
Navigation
[0] Message Index
Go to full version