Server IP : 172.16.15.8 / Your IP : 18.225.72.161 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)) { ?> <!-- Body of page STARTS HERE! --> <HEAD><TITLE>The Fire Room: Feel Around</TITLE> <link rel="stylesheet" type="text/css" href="fireroom.css"></HEAD> <HR> <P>You turn your head automatically as your fingertips brush the surprisingly cold floor. You feel around at first without looking at your fire-submerged hand, but after a while of futile searching, you glance at the pillar of fire directly in front of you. </P> <P>The smooth-looking object glints up at you innocently. From the proximity, you can tell that it's a jewel of some kind, crimson and reflecting the fire that dances upon its faceted sides. </P> <HR> <B><P>What do you choose to do?</P> <FORM action=firegrabjewel.php method=post> <INPUT type=submit value=""> Grab the jewel </FORM> <FORM action=firewithdraw.php method=post> <INPUT type=submit value=""> Withdraw your arm </FORM> </B> <HR> <!-- Body of page ENDS HERE! --> <?php print "<BR><FONT SIZE=2>Logged in as $username <A HREF=cyoalogout.php>Logout</A></FONT>"; } else { // fail message print '<META HTTP-EQUIV="Refresh" Content="3; URL=cyoalogin.html">'; print "<FONT SIZE=4 COLOR=RED><B>Error!</B> Username/password does not match any records.</FONT><BR>"; print "You will now be redirected to the CYOA login page in 3 seconds.<BR>"; print "If you are <B>not</B> redirected, <A HREF=cyoalogin.html>Click Here</A>."; } ?>