-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
95 lines (72 loc) · 2.48 KB
/
Copy pathhome.php
File metadata and controls
95 lines (72 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
session_start();
error_reporting(0);
require 'common.php';
echo "<br><br><br><br>";
echo "<center><h3> WELCOME </h3></center>";
$sessionvar = $_SESSION['email'];
echo "<h4 align=center> $sessionvar</h4>";
if ($sessionvar == TRUE) { } else {
header('location:login.php');
}
?>
<html>
<head>
<title>homepage</title>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.min.css">
<script type="text/javascript" src="bootstrap-3.3.7/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="bootstrap-3.3.7/js/bootstrap.min.js"></script>
<style>
.mitochondria {
background-color: #080808;
color: #f0f0f0;
}
</style>
</head>
<body><br><br><br>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container ">
<div class="navbar-header">
<a href="#" class="navbar-brand">IITH PRINTING</a>
</div>
<div>
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="logout.php" target="_self"><span class="glyphicon glyphicon-log-out"> Logout </span></a></li>
</ul>
</div>
</div>
</nav><br><br><br>
<?php
$ctrquery = "SELECT ctr FROM users WHERE email='$sessionvar' ";
$sqlqueryrun = mysqli_query($con, $ctrquery);
$rows_fetched = mysqli_fetch_array($sqlqueryrun);
$ctr = $rows_fetched['ctr'];
if ($ctr < 15) {
$pl = (15 - $ctr);
echo "<center><h2> Prints Left :" . $pl . "</h2></center> :";
} else {
header('location:limit.php');
}
?><br><br><br>
<center>
<form action="upload.php" method="POST" enctype="multipart/form-data">
<input type="file" name="file" value="" /><br><br>
<button type="submit" name="submit">UPLOAD</button>
</form>
<br><br>
<h4>NOTE:1 Make sure the epson printer is online and has pages. </h4>
<h5>
<pre>2:Select your file carefully , your page count will increase as soon as you click UPLOAD BUTTON.</pre>
</h5>
</center>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div class="container-fluid mitochondria">
<center>
<h3>MADE AND MAINTAINED UNDER STUDENT GYMKHANA , IIT HYDERABAD </h3>
</center>
<center>
<h6>Credits : Divyansh Maduriya , Laxman Reddy</h6>
</center>
</div>
</body>
</html>