-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
65 lines (26 loc) · 1.13 KB
/
profile.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
<?php include("core/json.php"); include('functions.php');?>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<title><?php echo $name; ?> - Browse</title>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
<?php include("core/menu.php"); ?>
</head>
<body>
<?php
$u = strip_tags( stripcslashes ($_GET['u']));
$query = "SELECT * FROM users WHERE username='$u' LIMIT 1";
$results = mysqli_query($db, $query);
$row = mysqli_fetch_assoc($results);
?>
<div class="jumbotron">
<center><h1><?php echo strip_tags( stripcslashes ($_GET['u'])); ?></h1></center>
</div>
</body>
<footer>
<center>© <?php print($copyright); ?></center>
</footer>
</html>