1.	<?php // Script 9.6 - welcome.php #2
2.	/* This is the welcome page. The user is redirected here
3.	after they successfully log in. */
4.	
5.	// Need the session:
6.	session_start();
7.	
8.	// Set the page title and include the header file:
9.	define('TITLE', 'Welcome to the Elliott Smith Fan Club!');
10.	require('templates/header.html'); 
11.	
12.	// Print a greeting:
13.	print '<h1>Welcome to the Elliott Smith Fan Club, ' . $_SESSION['email'] . '!</h1>';
14.		
15.	// Print how long they've been logged in:
16.	date_default_timezone_set('America/New_York');
17.	print '<p>You have been logged in since: ' . date('g:i a', $_SESSION['loggedin']) . '</p>';
18.	
19.	// Make a logout link:
20.	print '<p><a href="logout.php">Click here to logout.</a></p>';
21.		
22.	require('templates/footer.html'); // Need the footer.
23.	?>