-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.php
124 lines (116 loc) · 5.04 KB
/
about.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Quizzo | About </title>
<link rel="icon" href="favicon.ico" type="image/icon" sizes="16x16">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/font.css">
<script src="js/jquery.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/bootstrap-theme.min.css"/>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<?php
if (@$_GET['w']) {
echo '<script>alert("' . @$_GET['w'] . '");</script>';
}
?>
</head>
<body style="
font-family: sans-serif;
font-weight: 100;
background-image: url(https://raw.githubusercontent.com/kahanikaar/Project-EyT/master/20200712_031013_0000.png);
background-position: center left; background-repeat: no-repeat; background-attachment: fixed;
background-size: cover; ">
<div class="row header">
<div class="col-lg-6" style="margin-top:15px;">
<span class="logo">Quizzo | The Online Quiz Platform</span></div>
<div class="col-md-2">
</div>
<div class="col-md-4">
<?php
include_once 'dbConnection.php';
session_start();
if ((!isset($_SESSION['username']))) {
echo '<a href="#" class="pull-right logb btn btn-primary" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-log-in" aria-hidden="true"></span> <font style="font-size:12px;font-weight:bold">Login</font></a> ';
} else {
echo '<a href="logout.php?q=feedback.php" class="pull-right logb btn btn-primary"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> <font style="font-size:12px;font-weight:bold">Logout</font></a> ';
}
?>
<a href="index.php" class="pull-right logb btn btn-primary"><span class="glyphicon glyphicon-home" aria-hidden="true"></span> <font style="font-size:12px;font-weight:bold">Home</font></a>
</div></div>
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content title1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title title1"><span style="color:darkblue;font-weight:bold">Login to your Account</span></h4>
</div>
<div class="modal-body">
<form class="form-horizontal" action="login.php?q=index.php" method="POST">
<fieldset>
<div class="form-group">
<label class="col-md-3 control-label" for="username"></label>
<div class="col-md-6">
<input id="username" name="username" placeholder="Enter your username-id" class="form-control input-md" type="username">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="password"></label>
<div class="col-md-6">
<input id="password" name="password" placeholder="Enter your Password" class="form-control input-md" type="password">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Log in</button>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<div class="bg1">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 panel" style="background-size:cover; min-height:430px;">
<h2 align="center" style="font-family:'typo'; color:#000066">About Quizzo</h2>
<div style="font-size:12px;font-weight:bold; margin-top:20px;word-wrap:break-word"><br />
<?php
$file = fopen("about.txt", "r");
while (!feof($file)) {
$string = fgets($file);
$num = strlen($string) - 1;
$c = str_split($string);
for ($i = 0; $i < $num; $i++) {
$last = $c[$i - 1];
if ($c[$i] == ' ' && $last == ' ') {
echo ' ';
} else {
echo $c[$i];
}
}
echo "<br />";
}
fclose($file);
?>
</div>
<div class="col-md-3"></div></div>
</div></div>
</div>
<footer style="position:absolute; margin-top: 4%; height:3.5rem; width:100%; background-color: crimson; border-top: 2px solid white; text-align: center; bottom:0;">
<div class="row footer">
<div class="col-md-2 box">
</div>
<div class="col-md-6 box">
<span href="#" data-target="#login" style="color:lightyellow">Created in Quizzo©<br><br></span></div>
<div class="col-md-2 box">
<a href="feedback.php" style="color:lightyellow;text-decoration:underline" onmouseover="this.style('color:yellow')">Feedback</a></div>
<div class="col-md-2 box">
<span href="about.php" s style="color:lightyellow;text-decoration:underline" onmouseover="this.style('color:yellow')">About Quizzer</span></div>
</div>
</footer>
</body>
</html>