All pastes #421851 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-03 02:17 UTC
rendered paste body
<?php # Script 12.5 - index.php
if(!session_id())
{
        session_start();
}

require_once ('/usr/local/www/mysql_connect.php'); // Connect to the database. 


if (isset($_SESSION['_amember_id'])) {
$member_id=$_SESSION['_amember_id'];
$local_member_id=$member_id;
$_SESSION['local_member_id'] = $member_id;

//$query = 'SELECT name_f,name_l, login, total_downloads, download_update_date FROM amember_members WHERE member_id='.$local_member_id;
$query = 'SELECT name_f,name_l FROM amember_members WHERE member_id='.$local_member_id;
$result = mysql_query ($query);
$data = mysql_fetch_array($result);
	$first_name=($data['name_f']);
	$last_name=($data['name_l']);
	
	$login=($data['login']);
	/*$total_downloads=($data['total_downloads']);
	$total_downloads=round($total_downloads/1048576, 1) . ' mb';
	$download_update_date=($data['download_update_date']);
	$new_timestamp = strtotime($download_update_date);
 	$date_formatted = date ("m/d/Y", $new_timestamp);
 	

	$dayselapsed = round((strtotime($today) - strtotime($download_update_date))/(60*60*24)-1);//gives us the number of days since last download update
		//moved from here	
 	
 	//FIRST TIME VISITORS NEED A DOWNLOAD_UPDATE_DATE
 	if (is_null($download_update_date)) 
		{
		$query = "UPDATE amember_members SET total_downloads = 1, download_update_date = NOW() WHERE member_id=".$member_id;
		$result = @mysql_query ($query); // Run the query.
		}
 	
 	if ($dayselapsed > 29) 
 	{// its more than 30 days now so reset download limit and let them pass
		$query = "UPDATE amember_members SET download_update_date = NOW(), total_downloads =1 WHERE member_id=".$member_id;
		$result = @mysql_query ($query); // Run the query.
	}
 	
 		*/
$page_title = 'Welcome '.ucwords($login);
require_once ('../includes/new_logged_in_header.html');
}

?>
<div id="container">
<div id="left"></div>
<div id="content">
 
 <h2>Special Thanks</h2>