Advertisement
Advertisement
| 07.18.2008 at 04:49AM PDT, ID: 23576493 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: |
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="413"><img src="images/welcome_yellow.gif" border="0" height="44" width="431"></td><td align="center" background="images/bar.gif"> </td><td width="13" align="right"><img src="images/top_r_yellow.gif" border="0" height="44" width="13"></td>
</tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="EFEFEF"><td colspan="5"><img src="s.gif" width="1" height="5"></td></tr><tr bgcolor="EFEFEF"><td width="25%" rowspan="2" align="left"><img src="s.gif" width="8" height="1"></td>
<td nowrap height="35" valign="middle"><div align="center">
<table width="100%" border="0">
<tr>
<td width="100%"><div align="center">
<?
$query=("SELECT * from user where user_name='$login_user' and user_pass = '$login_pass'");
$result=mysql_query($query);
$num=mysql_numrows($result);
if ($num < 1)
{
echo "The details you entered are incorrect. Please contact us if you have forgotten your password.
[ <a href='mailto:andrew@mysolutionweb.com?subject=Forgot Password (My Office)'>Email Webmaster</a> ]";
}else{
session_register('users');
session_start();
$row = mysql_fetch_array($result);
$users["sess_slvl"]=$row[11];
$users["sess_userid"]=$row[0];
$users["sess_username"]=$row[1];
$users["sess_loggedin"]=1;
session_start();
$last_login = $fulldate2;
$lastq = "UPDATE user SET user_lastlogon = '$last_login' WHERE user_id = $row[0]";
$lastre = mysql_query($lastq);
echo "Welcome to My Office <b><font color='#003399'>".$users['sess_username']."</font></b><br><br>You have successfully been authenticated.";
//echo "<BR><BR>";
//echo "slvl = ".$users["sess_slvl"];
//echo "<BR><BR>";
//echo "userid = ".$users["sess_userid"];
//echo "<BR><BR>";
//echo "username = ".$users["sess_username"];
//echo "<BR><BR>";
//echo "logged in = ".$users["sess_loggedin"];
?>
<input type="hidden" name="newlogon" value="yes" />
<?
}
?>
</div></td>
</tr>
</table>
</div></td><td width="25%"><font size="-2"><br>
</font></td></tr><tr bgcolor="EFEFEF"><td nowrap colspan="5"></td></tr></table>
<?
$rredirector = "<meta HTTP-EQUIV=\"refresh\" content=0;url=\"index.php?page=notice&newlogon=yes\">";
echo $rredirector;
?>
|