-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
89 lines (80 loc) · 2.56 KB
/
index.php
File metadata and controls
89 lines (80 loc) · 2.56 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
$check = session_start();
if(!isset($check)){
print("セッションの確立に失敗しました");
}
$session_id = session_id();
$url = parse_url(getenv("DATABASE_URL"));
$con = pg_connect("host=" . $url['host'] . " port="
. $url['port'] . " dbname=" . substr($url['path'], 1)
. " user=" . $url['user'] . " password=" . $url['pass']);
$res = pg_query($con, "INSERT INTO users(session_id) VALUES('".$session_id."')"); #or die("クエリ実行エラーです" . pg_last_error());
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>ぬるトーク</title>
<link href="reset.css" rel="stylesheet" type="text/css" />
<link href="main.css" rel="stylesheet" type="text/css" />
<style>
a {
color: white;
text-align: center;
padding: 14px 0px;
text-decoration: none;
}
#how_to_use_div_wrapper {
width: 100%;
text-align: center;
}
#how_to_use_div {
width: 40%;
padding-left: 30%;
display: block-inline;
}
.how_to_use {
padding: 14px 16px;
margin: 20px;
font-size: 20px;
text-align: left;
}
#form_input_sample {
pointer-events: none;
border: 5px solid #000000;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
color: #000000;
font-size: 13px;
padding: 10px;
width: 150px;
}
</style>
</head>
<body>
<div id="header">
<a id="title" href="index.php">ぬるトーク</a>
<ul id="menu">
<li><a href="index.php">ホーム</a></li>
<li><a href="myList.php">趣味の閲覧</a></li>
<li><a href="addList.php">趣味の追加</a></li>
<li><a href="matching.php">マッチング</a></li>
</ul>
</div>
<div id="main">
<h2>ぬるトークへようこそ!</h2>
<div id="how_to_use_div_wrapper">
<div id="how_to_use_div">
<div class="how_to_use">1. <div class="button_sample"><a href="addList.php">趣味の追加</a></div> から趣味を追加しましょう!<br></div>
<div class="how_to_use">2. お友達を誘って、<div class="button_sample"><a href="matching.php">マッチング</a></div> を押してください<br></div>
</div>
</div>
</div>
<div id="footer">
<span id="footer_text">Copyright© 2019 ぬるんちゅ All Rights Reserved.</span>
</div>
</body>
</html>