<?php
$file = __FILE__;
include ("inc/inc_common.php");
include ("inc/inc_connect.php");
include ("inc/inc_admincheck.php");
include ("inc/inc_getdate.php");
include ("inc/inc_forumname.php");
$page = "Login Page";
$pagelink = $file;
include("inc/inc_setonline.php");
$title = "$name1 - Login";
include ("inc/inc_head.php");
include ("inc/inc_body.php");


print "<center><br><br><br><br><br>
<table border=1 cellpadding=0 cellspacing=0 style= bordercolor=\"$bordercolor\" width=\"60%\" bgcolor=\"$fgcolour\">
<tr><td width=\"100%\">
<br><br><center><font face=\"$font\" size=\"$fontsize\"><center>";

$result = mysql_query( "SELECT * FROM tbluser WHERE strName = '$username' LIMIT 0, 1" );
$num_rows = mysql_num_rows( $result );
while ( $a_row = mysql_fetch_object( $result ) )
{
    mail("$a_row->strEmail", "Your $name1 password", "Hi there.\n\nYour password for $name1 is $a_row->strPassword\n\nYours,\n$name1 admin\n\n\n\n\nPowered by Grimforum - see http://www.hsmx.com/info for details.") or DIE ("Could not send mail!<br>You entered an invalid email address, fool!");

    print "Your password has been emailed to the account you specified when you joined ($a_row->strEmail).<br>It should arrive very soon.<br><a href=\"login.php\">Click here</a> to go back to the login screen.<br><br><br></td></tr></table><br><br>";

}

include ("inc/inc_footer.php");
?>