Server IP : 172.16.15.8 / Your IP : 18.119.19.205 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 Earth Room: Use Key on Keyhole Stone</TITLE> <link rel="stylesheet" type="text/css" href="earthroom.css"></HEAD> <HR> <P>Being careful not to tread on any of the mounds, your hand tenses around the cold golden key as you step in front of the round-topped stone engraved with a keyhole. </P> <P><I>This is crazy. Why am I even doing this? There's no way this is gonna work, but I guess it's worth a shot... right...? </I></P> <P>You shrug to yourself as you bend and hold out the key, as if you are about to put the key into the engraved keyhole. </P> <P>As soon as the metal touches the engraving, the entire stone enlarges to your height and width, as if it was a cardboard cutout of your stony profile. The stone stops moving after a few seconds and the keyhole engraving quickly fades out of view. </P> <P>You're no longer looking at the lifeless face of a stone; you're now looking down a fully accessible hallway. </P> <HR> <B><P>What do you choose to do?</P> <FORM action=earthturnback.php method=post> <INPUT type=submit value=""> Turn back the way you came </FORM> <FORM action=earthredirect.php method=post> <INPUT type=submit value=""> Go through the hallway </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>."; } ?>