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!
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.
Hi,
The following code will be solved that bug.
Open login.php, add
afterCode:if (isset($_SESSION['UID']) && !empty($_SESSION['UID'])) { $redirect_url = VSHARE_URL . '/' . $_SESSION['USERNAME']; redirect($redirect_url); }
then open signup.php, add the above code afterCode:require 'include/language/' . LANG . '/lang_login.php';
Your Friendly,Code:require 'include/language/' . LANG . '/lang_signup.php';
Buyscripts Team
Last edited by vshare2; 12-13-2010 at 04:36 AM.
thank!!! It works!
Bookmarks