When someone goes to http://www.domain.com/gallery/profile.php?uid=(VALID USER NUMBER HERE), it shows the users profile if they are logged in or not. Is there a way to redirect to the login page if someone goes to that URL and is not logged in?
Edit profile.php, find include("include/smilies.inc.php");
and add into a new line after itif (!USER_ID) {
cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}