-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.php
executable file
·42 lines (42 loc) · 1.5 KB
/
news.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
<!DOCTYPE html>
<?php
include 'connection.php';
session_start();
if (!(isset($_SESSION['id']))) {
header('location:index.php');
}
$id=$_SESSION['id'];
$query=mysqli_query($db,"SELECT * FROM users where user_id='$id'")or die(mysqli_error($db));
$rows=mysqli_fetch_array($query);
?>
<html lang="en-US">
<head>
<title>CodeWar</title>
<link rel="stylesheet" href="libs/css/bootstrap.min.css">
<link rel="stylesheet" href="libs/style.css">
<link rel="stylesheet" href="libs/div.css">
<link rel="stylesheet" href="libs/navbar.css">
<link rel="stylesheet" href="libs/multidiv.css">
</head>
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="contest.php">Contest</a></li>
<li><a href="/compiler/index.php">Problems</a></li>
<li><a href="/compiler/submissions.php">Submissions</a></li>
<li><a href="/compiler/scoreboard.php">Scoreboard</a></li>
<li><a href="ranking.php">Ranking</a></li>
<li><a class="active" href="news.php">News</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="about.php">About</a></li>
<li><a href="profile.php"><?php echo $rows['username'];?></a></li>
<li><a class="inactive" href="logout.php">LOGOUT</a></li>
<li class="right">
<form action="search.php" method="GET">
<input id="search" name="search" type="text" placeholder="SEARCH..." required>
<input id="submit" type="submit" value="Search">
</form>
</li>
</ul>
<div class="div-profile">
<p class="impact">Coming soon.....</p>
</div>