-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.php
211 lines (199 loc) · 7.32 KB
/
doc.php
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Gpas Accounts</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Awesome Bubble Navigation with jQuery" />
<meta name="keywords" content="jquery, circular menu, navigation, round, bubble"/>
<!--Links for Navigation bar-->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/nav.css" type="text/css" media="screen"/>
<!--Links for slider-->
<link href="css/js-image-slider.css" rel="stylesheet" type="text/css" />
<script src="js/js-image-slider.js" type="text/javascript"></script>
<!--Links for pop up-->
<link href="css\style_popup.css" rel="stylesheet"/>
<link href="css\popup.css" rel="stylesheet"/>
<!--Search Box style sheet-->
<link rel="stylesheet" href="css/search.css" type="text/css" media="screen"/>
<!-- Code to disable vertical scrollbar in search.css -->
<!--Content box style sheet-->
<link rel="stylesheet" href="css/contentbox.css" type="text/css" media="screen"/>
<!--Block content css-->
<link rel="stylesheet" href="css/blockbox.css" type="text/css" media="screen"/>
<!--Links for deactivate alert-->
<script src="js/deactivatealert.js" type="text/javascript"></script>
</head>
<body>
<!--Gpas Header Bar -->
<div class="gpas-header-bar">
<div class="header content clearfix">
<a href="start.php"><img img class="logo" src="Images/gpas.png" alt="GPAS" /></a>
</div>
</div>
<!--Bubble Navigation Bar-->
<div id="content">
<div class="title"></div>
<div class="navigation" id="nav">
<?php
if(include('check_log.php'))
echo "
<div class='item user1'>
<img src='Images/bg_usergreen.png' alt='' width='199' height='199' class='circle' />
<a class='icon' ></a>
<h2><strong>" . $_COOKIE["user"] . "</strong></h2>
<ul>
<li><a href='logout.php'>Logout</a></li>
<li><a href='#' onClick='checkbox()'>Deactivate</a></li>
</ul>
</div> ";
else
echo "
<div class='item user'>
<img src='Images/bg_user.png' alt='' width='199' height='199' class='circle' />
<a class='icon' ></a>
<h2>User</h2>
<ul>
<li><a href='login.php'>Login</a></li>
<li><a href='signup.php'>Sign Up</a></li>
</ul>
</div> ";
?>
<div class="item gpas">
<img src="images/bg_user.png" alt="" width="199" height="199" class="circle"/>
<a class="icon"></a>
<h2>GPAS</h2>
<ul>
<li><a href="intro.php">Introduction</a></li>
<li><a href="innovation.php">Innovation</a></li>
</ul>
</div>
<div class="item home">
<img src="images/bg_home.png" alt="" width="199" height="199" class="circle"/>
<a href="home.php" class="icon"></a>
<h2>Home</h2>
<ul>
<li><a href="portfolio.php">Portfolio</a></li>
<li><a href="services.php">Services</a></li>
</ul>
</div>
<div class="item security">
<img src="images/bg_shop.png" alt="" width="199" height="199" class="circle"/>
<a href="security.php" class="icon"></a>
<h2>Security</h2>
<ul>
<li><a href="web.php">Web</a></li>
<li><a href="system.php">System</a></li>
<li><a href="mobile.php">Mobile</a></li>
</ul>
</div>
<div class="item technic">
<img src="images/bg_camera.png" alt="" width="199" height="199" class="circle"/>
<a href="technology.php" class="icon"></a>
<h2>Technology</h2>
<ul>
<li><a href="overview.php">Overview</a></li>
<li><a href="doc.php">Document</a></li>
<li><a href="killfix.php">KillFix</a></li>
</ul>
</div>
<div class="item company">
<img src="images/bg_fav.png" alt="" width="199" height="199" class="circle"/>
<a href="organization.php" class="icon"></a>
<h2>Organization</h2>
<ul>
<li><a href="about.php">About</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="career.php">Careers</a></li>
</ul>
</div>
</div>
</div>
<!--Search Form-->
<form method="get" action="http://www.gpas.com/search" id="search">
<input name="q" type="text" size="40" placeholder="Search..." />
</form>
<!--Bubble JavaScript -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript"src="js/motion.js"></script>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<div class="signuponepage main content clearfix">
<h1 class="redtext"> Enter the answer to download.</h1>
<div class="clearfix">
<div class="sign-up"> <!--div of Sign up starts here -->
<div class="signup-box"> <!--div of Signup-box starts here -->
<?php
error_reporting(0);
if(include('check_log.php'))
/*$uname=$_GET['var']; sent from action=".php?var=<?php echo $uname;?>" */
$uname=$_COOKIE["user"];
// Opening Connection...(dblink)
$con = mysqli_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysqli_error());
}
// Select DB ...(dblink)
mysqli_select_db($con , "gpa_collg1" );
$result = mysqli_query($con , "SELECT * FROM temp
WHERE username='$uname'") or die(mysql_error());
$check =mysqli_num_rows($result);
if($check == 0) {
echo "<font color='red'>Please login to download.</font>";
echo "<br><br><form action='login.php' method='post' enctype='multipart/form-data'>
<div class='form-element nextstep-button'>
<input type='submit' value='Login'class='g-button g-button-submit'>
</form>
</div>";
}
else{
while($row = mysqli_fetch_array($result))
{
echo "<br><strong><font size='3' color='green'>Secrete Question: </font>".$row['secrete'];
echo "<br></strong>";
}
// Closing connectoin...(dblink)
mysqli_close($con);
echo "
<form action='filedownload.php?var=$uname' method='post' enctype='multipart/form-data'>
<br><strong>Username: $uname</strong><br>
<input type='hidden' id='hidden1' name='H1' value='$uname' />
<br><strong>Answer: </strong><br><input type='password' name='answer' />
<br><br><div class='form-element nextstep-button'>
<input type='submit' value='Submit' class='g-button g-button-submit'>
</form>
</div>
";
}
?>
</div>
</div>
</div>
</div>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<!--Footer-->
<div class="gpas-header-bar2">
<div class="footer content clearfix">
<ul>
<li>© 2019 GPAS</li>
<li><a href="terms.php" target="_blank">Terms & Conditions</a></li>
<li><a href="privacy.php" target="_blank">Privacy Policy</a></li>
</ul>
</div>
</div>
</body>
</html>