Search found 2 matches

by MrPancake
Sat Jan 05, 2013 6:17 pm
Forum: Tutorials
Topic: Private message system page view thingy
Replies: 2
Views: 1224

Re: Private message system page view thingy

I got it,

just include:
if(empty($_SESSION['user_id']) && $_GET['page'] !== 'login'){
	header("location: index.php?page=login");
	die();
}
at the pages where you need to be logged in.
by MrPancake
Sat Jan 05, 2013 11:36 am
Forum: Tutorials
Topic: Private message system page view thingy
Replies: 2
Views: 1224

Private message system page view thingy

Hey, MrPancake here. I'm having a question about view pages while you are not logged in on the private message system. In the tutorial is explained how to redirect to the login page if a session has not been set yet. But what if i would make a profile page with the system and i would send some peopl...