Results 1 to 3 of 3

Thread: Log In / Sign Up redirect

  1. #1
    Join Date
    Apr 2010
    Posts
    26

    Default Log In / Sign Up redirect

    I found a bug. When I'm logged in I typed http://.../login/ in the address bar, but the original login page appears, instead of redirecting me to the profile page. Thanks!
    Last edited by forg4t; 12-11-2010 at 06:37 PM.

  2. #2

    Default

    Hi,

    The following code will be solved that bug.

    Open login.php, add
    Code:
    if (isset($_SESSION['UID']) && !empty($_SESSION['UID']))
    {
        $redirect_url = VSHARE_URL . '/' . $_SESSION['USERNAME'];
        redirect($redirect_url);
    }
    after
    Code:
    require 'include/language/' . LANG . '/lang_login.php';
    then open signup.php, add the above code after
    Code:
    require 'include/language/' . LANG . '/lang_signup.php';
    Your Friendly,
    Buyscripts Team
    Last edited by vshare2; 12-13-2010 at 04:36 AM.

  3. #3
    Join Date
    Apr 2010
    Posts
    26

    Default

    thank!!! It works!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •