-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
65 lines (59 loc) · 1.23 KB
/
index.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
$public = true;
include "db.php";
if (isset($_SESSION["user"])){
?>
<html>
<style>
body {
background:#000000;
}
a, td, body {
font:60px Arial;
color:#ffffff;
}
a{
text-decoration:none;
}
</style>
<body style="font:60 Arial">
<table>
<tr><td>Books | <a href="login.php?logout=123">Lgout</a></td></tr>
<?php
$rset = mysqli_query($dblink, "select * from gal_book");
while(($row=mysqli_fetch_array($rset))){
echo "<tr>";
echo "<td style=\"background:#C00000;color:#ffffff\"><a href=\"book.php?id={$row['_id']}\">{$row['_name']}</a></td>";
echo "<td style=\"background:#C00000;color:#ffffff\"><a href=\"strip.php?id={$row['_id']}\">strip</a></td>";
// echo "<td><a href=\"images.php?id={$row['_id']}\">{$row['_name']}</a></td>";
// echo "<td><a href=\"events.php?id={$row['_id']}\">{$row['_name']}</a></td>";
echo "</tr>";
}
mysqli_free_result($rset);
?>
</table>
</body>
</html>
<?php
}else{
?>
<html>
<style>
body {
background:#000000;
}
body, td,a {
font:60px Arial;
color:#ffffff;
}
a{
text-decoration:none;
}
</style>
<body style="font:60 Arial">
<a href="login.php">Login</a>
</body>
</html>
<?php
}
?>