-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.php
57 lines (57 loc) · 1007 Bytes
/
user.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
<!DOCTYPE html>
<html>
<head>
<title>user center</title>
</head>
<body>
<?php
require("config/db.php");
if(checkLogin() == false)
{
echo "<script>alert('not login');location.href='index.html';</script>";
}
?>
<h3>rank list</h3>
<a href="./game/index.html">game play</a>
<table>
<!--
flag.php
-->
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<table class="table">
<thead>
<tr>
<th>
<a href="./user.php?order=id">No</a>
</th>
<th>
<a href="./user.php?order=username">username</a>
</th>
<th>
<a href="./user.php?order=sex">sex</a>
</th>
<th>
<a href="./user.php?order=score">score</a>
</th>
</tr>
</thead>
<tbody>
<?php
$order = "score";
if(isset($_GET['order']))
{
$order = $_GET['order'];
}
$data = getUserList($order, $mysqli);
echo $data;
?>
</tbody>
</table>
</div>
</div>
</div>
</table>
</body>
</html>