Server IP : 172.16.15.8 / Your IP : 18.118.126.44 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/rlbarner/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $username = $_SESSION['username']; $_SESSION['username'] = $username; $password = $_SESSION['password']; $_SESSION['password'] = $password; $fire = $_SESSION['fire']; $_SESSION['fire'] = $fire; $water = $_SESSION['water']; $_SESSION['water'] = $water; $earth = $_SESSION['earth']; $_SESSION['earth'] = $earth; $host = 'localhost'; $user = 'rlbarner'; $passwd = 'cs480'; $database = 'rlbarner'; $connect = mysql_connect($host, $user, $passwd); $table_name = 'CYOAUsers'; $query = "SELECT * FROM $table_name WHERE Username = '$username' && Password = '$password'"; mysql_select_db($database); $result = mysql_query($query, $connect); if(($result) && (mysql_num_rows($result) > 0)) { ?> <TITLE>See Your Stats! Login</TITLE> <HEAD><link rel="stylesheet" type="text/css" href="advstyle.css"></HEAD> <BODY onLoad="document.f1.username.focus()"> <H2>See Your Stats! Login First, Though!</H2> <HR> <Form action=userstatsaction.php method=post name=f1> Please login using your username and password.<BR> Username: <INPUT type=text name=username> <BR> Password: <INPUT type=password name=password> <P> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </Form> </BODY> <HR> <FONT SIZE=2><I>Navigation:</I><BR> <A HREF=cyoafrontpage.php>Return to the Front Page</A><BR> <A HREF=forgotuserpass.php>Forgot Username/Password?</A><BR> <A HREF=changepassword.php>Change Your Password</A><BR> <A HREF=index.html>Website Index</A> </FONT> <?php print "<BR><FONT SIZE=2>Logged in as $username <A HREF=cyoalogout.php>Logout</A></FONT>"; } else { } ?>