[TUTORIAL] Após o login, ser redirecionado para o próprio perfil

Started by Costa, November 12, 2008, 01:47:07 PM

Previous topic - Next topic

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) Select
   // 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);
      }
   }


Code (substitua por) Select
   // 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);
      }
   }

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

margarett

E mais um:
--> Indice ;)

Daqui a mais, teremos de "moldar" o Indice para "Dicas" e para "Problemas" :P
Está a ficar muito extenso
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

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
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Advertisement: