<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>Manage Users</title> 
<link href="styles.css" rel="stylesheet" type="text/css" /> 
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  <script type="text/javascript">
	$(document).ready(function() {

		$(".delete").click(function() {
				$(".delete a").html("<span  style='color:#c75f3e;' >delete</span>");					
				$getPage = $(this).attr("id");
				$(this).html("<a href='deletepage.php?p="+$getPage+"' style='color:#cf221f;' ><b>Confirm?</b></a>");
				//return false;
			});	
		
	});
</script>
</head> 
 
<body> 
<table id="mytable" cellspacing="0" summary="The technical specifications of the Apple PowerMac G5 series"> 
<caption>
Manage Your FanPagePro 2.0 Users
</caption> 
  <tr> 
    <th scope="col" abbr="Configurations" class="nobg">User names</th> 
    <th scope="col" abbr="Dual 1.8">Date Created</th> 
    <th scope="col" abbr="Dual 2">Email Address</th> 
	<th scope="col" abbr="Dual 2.5">view install</th> 
    <th scope="col" abbr="Dual 2.5">delete</th>
  </tr> 
    <?php
			
		foreach (glob("usrs/*") as $getName) {
			
					$getName = str_replace("usrs/", "", $getName);
					$usrInfo = explode("_", $getName);
					$fName = $usrInfo[0];
					$lName = $usrInfo[1];
					$fbName = $usrInfo[2];
					$getEmail = file_get_contents("usrs/$getName/email.txt", true);
					echo "
					
					  <tr> 
						<th scope='row' abbr='Model' class='spec'>$fName $lName</th> 
						<td>06.02.2011</td> 
						<td class='email' style='font-size:12px;'>$getEmail</td> 
						<td style='font-size:12px;'><a href='usrs/$getName/' target='_blank'>$fbName</a></td> 
						<td style='font-size:12px;'><a href='#' id='$getName' class='delete' >delete</a></td> 
					  </tr> 
					
					";
									
		}
							
	?>
  
</table>

<div>

	<h3>Need to change a password for a user?</h3>
    <p>The only way to change a password is to login into your FTP. Go to the users project in the "usrs" folder.<br />
    Then go to the admin/login/login.ini.php file. Open it up, and change the password there on line 10. You must use
    a sha1 password.</p>

</div>

</body> 
</html> 