forked from DBrider3/GB-SNS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload.php
116 lines (93 loc) · 3.72 KB
/
upload.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<?php
session_start();
include 'sql.php';
if(!isset($_SESSION['user_id'])) {
echo "<meta http-equiv='refresh' content='0;url=login.php'>";
exit;
}
$user_id = $_SESSION['user_id'];
$user_name = $_SESSION['user_name'];
?>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>GB SNS</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/blog-home.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-dark bg-customs fixed-top">
<div class="container">
<a class="navbar-brand" href="main.php">GB SNS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="main.php">Home
<span class="sr-only">(current)</span>
</a>
<a class="nav-link" href="logout.php">Logout
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="container">
<div class="row">
<!-- Sidebar Widgets Column -->
<div class="col-md-12">
<!-- Search Widget -->
<div class="card my-4">
<h5 class="card-header">Ask Question</h5>
<div class="card-body">
<form method='post' action='upload_ok.php'>
<div class="form-group">
<label for="exampleFormControlInput1">Title</label>
<input type="text" name="title" class="form-control" id="input_title" placeholder="Please enter a Title.">
</div>
<div class="form-group">
<label for="exampleFormControlInput1">Place</label>
<input type="text" name="place" class="form-control" id="input_title" placeholder="Please enter a Place.">
</div>
<div class="form-group">
<label for="exampleFormControlInput1">Content</label>
<textarea class="form-control" name="contents" id="exampleFormControlTextarea1" rows="3"></textarea>
<!-- <input type="text" name="Title" class="form-control" id="input_title" placeholder="Enter Title"> -->
</div>
<input type='submit' class="btn btn-custom" value='Submit'/>
<a href='main.php' class="btn btn-custom">Cancel</a>
</form>
</div>
<!-- Sidebar Widgets Column -->
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
<!-- Footer -->
<footer class="py-5 bg-bottom">
<div class="container">
<hr class="my-4">
<p class="m-0 text-center text-black">Copyright © 우리함께외국인친해조</p>
</div>
<!-- /.container -->
</footer>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>