On my server none of the files where showing up, so I tried out finding why and I released that if a page included common.php (which they all did), nothing showed up. So looking in common.php I found out that the source of the error is this block of code:
$cookie = $_COOKIE['rac'];
list($tehuser, $tehpass) = split("-", $cookie);
$tehcheck = "SELECT * FROM bb_users WHERE username = '$tehuser'";
$tehcheck = mysql_fetch_object(mysql_query($tehcheck)) or die(mysql_error());
if ($tehcheck->user_password != md5($tehpass)) {
setcookie("user","", time() - 3600);
}
else {
$username = $tehuser;
}
Basically the cookie holds the username and the password. It then checks if the person logged in normally instead of hacking by matching the password in the db with the password in the cookie. If they are not the same it destroys the cookie, otherwise it sets the username as $username.
What in that code is making the pages not show up properly?? I get no errors and I know that the DB info is right.
Thanx in advanced.
Josh.