-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
73 lines (51 loc) · 1.7 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
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>정보</title>
<link rel="stylesheet" href="style/index.css">
<script type="text/javascript" src="plugins/vanilla-tilt.js"></script>
<script src="script/index.js"></script>
<?= file_get_contents("layouts/meta.html") ?>
<meta property="og:site_name" content = "Infomation">
<meta property="og:description" content = "disns가 뭐를하는건지 알려줘요!">
</head>
<body>
<?php include "layouts/header.php"; ?>
<?php
//error_reporting(E_ALL);
//ini_set('display_errors', '1');
//$conn = mysqli_connect("localhost" , "root" , "disns!password" , "disns" , "3306");
?>
<main>
<article>
<?php
session_start();
if (isset($_COOKIE["token"])){
echo '<div class="chat-left">'.$discordInfo["username"].'님 안녕하세요!</div>';
}else{
echo '<div class="chat-left">안녕하세요!</div>';
}
?>
<div class="chat-right"></div>
<section>
<h1>asdf</h1>
</section>
</article>
<!-- <aside>
<section>
<h1>asdf</h1>
</section>
</aside> -->
</main>
<?= file_get_contents("layouts/footer.html") ?>
<script type="text/javascript">
VanillaTilt.init(document.querySelector("section"), {
max: 10,
speed: 400
});
</script>
</body>
</html>