> Login"; $show = 0; $e = 0; if (isset($l)) { if (isset($u_name) && isset($u_pass)) { // Attempt to login $r = login_user($u_name, $u_pass, "no"); if ($r == "") { $error = "Either your Username or your Password was incorrect."; $show = 1; } else { setcookie("user_env", "$r[0]", time()+(3600*100)); setcookie("pass_env", "$r[1]", time()+(3600*100)); setcookie("power_env", "$r[2]", time()+(3600*100)); setcookie("id_env", "$r[3]", time()+(3600*100)); if ($ref == "") { $ref = "index.php"; } $error = "Logged on successfully as user: $r[0], redirecting... "; $e = 1; } } } include "header.php"; if (!isset($user_env)) { if (isset($error)) { echo "$error"; if ($e == 1) { exit; } } echo "
$skin_tableheading
Login
User Name:
Password:
   (Lost Password?) (Need to Register?)
$skin_tablefooter"; } else { echo "
$skin_tableheader
You are already Logged in
Log off
$skin_tablefooter"; } include "footer.php"; ?>