You are on page 1of 26

1.

INTRODUCTION

1.1 ABOUT THE PROJECT

The GAME PORTAL is a web application for to take


online gaming in an efficient manner and no time wasting
for download game. The main objective of GAME
PORTAL is to efficiently evaluate the candidate
thoroughly through a fully automated system that not only
saves lot of time but also gives fast results.

Modules of the Projects:


 Admin module
 User module

Objectives of GAME PORTAL

 Secure registration and profile management facilities for


Customers.
 Uploading Most popular Game in each category of products in the
Shop
 Customers should be able to mail when they are register in
gameportal
 Customer can easy to download game in any type
 Admin can upload latest game with in 2 to 3 day
Brief overview of the technology

Front end: HTML, CSS

HTML: HTML is used to create and save web document. E.g. Notepad/Notepad++

CSS : (Cascading Style Sheets) Create attractive Layout

Back end: PHP, MySQL

PHP: Hypertext Pre-processor (PHP) is a technology that allows software


developers to create dynamically generated web pages, in HTML, XML, or other
document types, as per client request. PHP is open source software.

MySQL: MySQL is a database, widely used for accessing querying, updating, and
managing data in databases.

Hardware Requirement:

Windows 7

Processor 2.0 GHZ


RAM 2 GB

Hard Disk 30 GB

Software Requirement:
XAMP Server

FEATURES:
1. Easier To Use
With the windows 2000 professional we have faster access
to information and we are able to accomplish test more quickly
and easily.

Windows 2000 professional make it easier to

 Find Information
 Work on the Web
 Work remotely
 Work with the files
Personalize your computer environment

2.Easier To Manage

We can work more efficiently, because many of the


most common computer management tests are automated and
streamlined to the windows 2000Professional

Admin login details:


Login Id: admin
Password: admin

Source Code:
HOME PAGE
Admin Login:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body style="background-image: url('css/images/pubg.jpg');">

<nav class="navbar navbar-inverse">


<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Display Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminDisplayMobile.php"">Mobile Game</a></li>
<li><a href="AdminDisplayPc.php">Windows Game</a></li>
<li><a href="AdmindisplayAction.php">Action Game</a></li>
<li><a href="Admindisplayios.php">IOS Game</a></li>
<li><a href="Admindisplayvideo.php">videodisplay</a></li>

</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Add Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminAddGameMobile.php">Mobile Game</a></li>
<li><a href="AdminAddGamePc.php">Windows Game</a></li>
<li><a href="AdminAddActionGame.php">Action Game</a></li>
<li><a href="AdminAddios.php">IOS Game</a></li>
</ul>
</li>
<li><a href="video.php">Upcoming game</a></li>

<li><a href="login.php">Chart</a></li>
<li><a href="AdminFeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div>
</div>
</nav>

<div class="container">
</div>

</body>
</html>

REGISTER CODE:

<?php include('server.php'); ?>


<!DOCTYPE html>
<html>
<head>
<title>Registration system PHP and MySQL</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body style="background-image: url('images/b1.jpg')";>
<div class="header">
<h2>Register</h2>
</div>

<form method="post" action="regiser.php">


<!--display validation errror -->
<?php include('errors.php'); ?>

<div class="input-group">
<label>Name</label>
<input type="text" name="name" >
</div>
<div class="input-group">
<label>Email</label>
<input type="email" name="email" value="<?php echo $email; ?>">
</div>
<div class="input-group">
<label>phone numbar</label>
<input type="text" name="phone" >
</div>
<div class="input-group">
<label>Address</label>
<input type="text" name="address" >
</div>
<div class="input-group">
<label>Username</label>
<input type="text" name="username" value="<?php echo
$username; ?>">
</div>

<div class="input-group">
<label>Password</label>
<input type="password" name="password_1">
</div>
<div class="input-group">
<label>Confirm password</label>
<input type="password" name="password_2">
</div>
<div class="input-group">
<button type="submit" class="btn"
name="reg_user">Register</button>
</div>
<p>
Already a member? <a href="login1.php">Sign in</a>
</p>
</form>
</body>
</html>
LOGIN CODE:

<?php include('server.php'); ?>


<!DOCTYPE html>
<html>
<head>
<title>Registration system PHP and MySQL</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body style="background-image: url('images/b1.jpg')";>
<div class="header">
<h2>Login</h2>
</div>

<form method="post" action="login1.php">


<!-- display validation error-->
<?php include('errors.php'); ?>

<div class="input-group">
<label>Username</label>
<input type="text" name="username" >
</div>
<div class="input-group">
<label>Password</label>
<input type="password" name="password">
</div>
<div class="input-group">
<button type="submit" class="btn" name="login">Login</button>
</div>
<p>
Not yet a member? <a href="regiser.php">Sign up</a>
</p>

<center>
<?php
session_start();
if(isset($_SESSION['msg'])){
echo $_SESSION['msg'];
unset($_SESSION['msg']);
}
?>
</center>

</form>
</body>

</html>

USerDisplay Game Mobile CODE:

<!-- <?php include('server.php'); ?>


-->

<?php
$db = mysqli_connect('localhost', 'root', '', 'database');
$query="select * from mobilegame ";
//$records=mysql_query($con,$sql);
$results = mysqli_query($db, $query);

?>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></s
cript>

<nav class="navbar navbar-inverse">


<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="UserdisplaygameMobile.php">mobile Game</a></li>
<li><a href="Userdisplaygameios.php">IOS Game</a></li>
<li><a href="UserdisplaygameAction.php">Action
Game</a></li>
<li><a href="UserdisplaygamePc.php">Windows Game</a></li>
</ul>
</li>
<li><a href="videodisplay.php">comingGame</a></li>

<li><a href="login.php">Chart</a></li>
<li><a href="FeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign
Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span>
Login</a></li>
-->
</ul>
</div>
</div>
</nav>
<br>
<style>
th, td {
text-align: left;
padding: 8px;
}

th {
background-color: #CD853F;
color: white;

}
</style>

</head>
<body style="background-image: url('css/images/10.jpg');">
<div align="center">
<h2>Mobile Game</h2>
</div>
<!-- <a method="post" action=""></a>
--><!-- <form method="post" action="">
--> <table width="800" width="520" border="1" align="center" method="post"
background="css/images/6.jpg" cellspacing="1">
<tr>
<th>
<h4>id</h4>
</th>

<th>
<h4> Name</h4>
</th>

<th>
<h4> Type</h4>
</th>

<th>
<h4>image</h4>
</th>
<th>
<h4> file</h4>
</th>

<tr>

<?php

while ($user = mysqli_fetch_assoc($results))


{

echo "<tr>
<td>".$user['id']."</td>
<td>".$user['name']."</td>
<td>".$user['type']."</td>

<td><img src='".$user['image']."' height='70' width='70'</td>


<td>" ?>

<a href="<?php echo $user["file"]; ?>">Downlaod Game</a>


<?php "</td>;
echo </tr>";
}
?>
</body>
</html>

ADMIN DISPLAY GAME CODE:

<?php include('/server.php');
?>

<?php
$db = mysqli_connect('localhost', 'root', '', 'database');
$query="select * from addgame ";
//$records=mysql_query($con,$sql);
$results = mysqli_query($db, $query);
?>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body style="background-image: url('css/images/pubg.jpg');">

<nav class="navbar navbar-inverse">


<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Display Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminDisplayMobile.php"">Mobile Game</a></li>
<li><a href="AdminDisplayPc.php">Windows Game</a></li>
<li><a href="AdmindisplayAction.php">Action Game</a></li>
<li><a href="Admindisplayios.php">IOS Game</a></li>
<li><a href="Admindisplayvideo.php">videodisplay</a></li>

</ul>
</li>

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Add Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminAddGameMobile.php">Mobile Game</a></li>
<li><a href="AdminAddGamePc.php">Windows Game</a></li>
<li><a href="AdminAddActionGame.php">Action Game</a></li>
<li><a href="AdminAddios.php">IOS Game</a></li>
</ul>
</li>
<li><a href="video.php">Upcoming game</a></li>

<li><a href="login.php">Chart</a></li>
<li><a href="AdminFeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div>
</div>
</nav>

<style>th, td {
text-align: left;
padding: 8px;
}

th {
background-color: #CD853F;
color: white;

}</style>

</head>
<body><div>
<div align="center">
<h2>WindowsGame</h2>
</div>
</div>

<!-- <a method="post" action=""></a>


--><!-- <form method="post" action="">
--> <table width="800" width="520" border="1" align="center" cellspacing="1">
<tr>
<th>
<h4>id</h4>
</th>

<th>
<h4> Name</h4>
</th>

<th>
<h4> Type</h4>
</th>

<th>
<h4>image</h4>
</th>
<th>
<h4> file</h4>
</th>
<th>
<h4> Edit</h4>
</th>
<th>
<h4> Delete</h4>
</th>

<tr>

<?php

while ($user = mysqli_fetch_assoc($results))


{

echo "<tr>
<td>".$user['id']."</td>
<td>".$user['name']."</td>
<td>".$user['type']."</td>

<td><img src='".$user['image']."' height='70' width='70'</td>


<td><a href='AdminUpdatePc.php?ru=$user[name] & rp=$user[type] & rr=$user[image]
'>Edit</a></td>
<td><a href='AdminDisplayPc.php?ru=$user[name]' onclick='return checkdelete()'>Delete</a></td>

<td>"

?>

<a href="<?php echo $user["file"]; ?>">Downlaod Game</a>


<?php "</td>;
echo </tr>";
}
?>
<script >
function checkdelete()
{
return confirm('you want to delete');
}
</script>

</body>
</html>

<!-- <?php
//$_GET['ru'];
$name=$_GET['ru'];

$db = mysqli_connect('localhost', 'root', '', 'database');

$query="DELETE FROM addgame where name='$name'";

$results = mysqli_query($db, $query);

if($results)
{
echo "<script> alert('delete data')</script";
//header('location: Admin/ActionGame.php');
}
else
{
echo "not delete data";
//header('location:Admin/ActionGame.php');
}
?>
-->

ADD Upcoming GAME CODE:

<?php include('server.php'); ?>


<!DOCTYPE html>
<html>
<head>
<title>Registration system PHP and MySQL</title>
<link rel="stylesheet" type="text/css" href="style.css">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body style="background-image: url('css/images/pubg.jpg');">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Display Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminDisplayMobile.php"">Mobile Game</a></li>
<li><a href="AdminDisplayPc.php">Windows Game</a></li>
<li><a href="AdmindisplayAction.php">Action Game</a></li>
<li><a href="Admindisplayios.php">IOS Game</a></li>
<li><a href="Admindisplayvideo.php">videodisplay</a></li>

</ul>
</li>

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Add Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminAddGameMobile.php">Mobile Game</a></li>
<li><a href="AdminAddGamePc.php">Windows Game</a></li>
<li><a href="AdminAddActionGame.php">Action Game</a></li>
<li><a href="AdminAddios.php">IOS Game</a></li>
</ul>
</li>
<li><a href="video.php">Upcoming game</a></li>

<li><a href="login.php">Chart</a></li>
<li><a href="AdminFeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div>
</div>
</nav>

</head>
<body>
<div class="header">
<h2>Coming Game</h2>
</div>

<form method="post" action="server.php" enctype="multipart/form-data">


<!--display validation errror -->
<?php include('errors.php'); ?>

<div class="input-group">
<label>Name</label>
<input type="text" name="name" placeholder="Game Name" >
</div>

<div class="input-group">
<label>type</label>
<input type="text" name="type" placeholder="type of Game" >
</div>

<div class="input-group">
<label>video</label>
<input type="file" name="video" placeholder="type of Game" >
</div>

<div class="input-group">
<button type="submit" class="btn" name="Addvideo">AddGame</button>
<button class="btn"><a href="AdminIndex.php">Back</a> </button>

</div>

</form>
</body>
</html>
DISPLAY UPCOMING GAME CODE:

<?php include('/server.php');
?>

<?php
$db = mysqli_connect('localhost', 'root', '', 'database');
$query="select * from video ";
$results = mysqli_query($db, $query);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="UserdisplaygameMobile.php">mobile Game</a></li>
<li><a href="Userdisplaygameios.php">IOS Game</a></li>
<li><a href="UserdisplaygameAction.php">Action Game</a></li>
<li><a href="UserdisplaygamePc.php">Windows Game</a></li>
</ul>
</li>
<li><a href="videodisplay.php">comingGame</a></li>

<li><a href="login.php">Chart</a></li>
<li><a href="FeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div> </div>
</nav>
<style>th, td {
text-align: left;
padding: 8px;
}
th {
background-color: #CD853F;
color: white;

}</style>

</head>
<body style="background-image: url('css/images/10.jpg');">
<div align="center">
<h2>comingGame</h2>
</div>

<!-- <a method="post" action=""></a>


--><!-- <form method="post" action="">
-->
</br>
<table width="800" width="520" border="1" align="center"
background="css/images/6.jpg" cellspacing="1">
<tr>
<th>
<h4>No.</h4>
</th>

<th>
<h4> Name</h4>
</th>
<th>
<h4> Type</h4>
</th>
<th>
<h4>video</h4>
</th>
<tr>

<?php

while ($user = mysqli_fetch_assoc($results))


{
echo "<tr>
<td>".$user['id']."</td>
<td>".$user['name']."</td>
<td>".$user['type']."</td>
<td><embed src='".$user['video']."' height='80' width='180'></embed></td>
</tr>";
}
?>
</body>
</html>