Thread: login/signup
View Single Post
  #2  
Old 10th September 2019, 14:07
fireknight's Avatar
fireknight fireknight is offline
Administrator
 
Join Date: Aug 2010
Australia
Posts: 173
Default
Simple answer is because they can access the login page ( even when logged in ).


Why == because there is nothing to stop them accessing the page.

You need something to redirect them away from that page.
Not knowing what TBDev version you are using - this is off the top of my head and un tested.


login.php


Find
Code:
require_once("include/bittorrent.php");
dbconn();
Add this below
Code:
if ($CURUSER)
{
    header("Location: index.php");

    exit;
}

Hope this helps.
Reply With Quote