-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd.php
More file actions
74 lines (62 loc) · 2.02 KB
/
add.php
File metadata and controls
74 lines (62 loc) · 2.02 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
<?php include('./connectionDB.php'); ?>
<!DOCTYPE HTML>
<html>
<head>
<title>Добавить пост</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body class="single">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<h1><a href="index.php">Blog</a></h1>
<nav class="main">
<?php
include('avatar_check.php');
?>
</nav>
</header>
<!-- Menu -->
<section id="menu">
<!-- Links -->
<section>
<?php
include('verification_check.php');
?>
</section>
</section>
<!-- Main -->
<div id="main">
<!-- Post -->
<form action="/add_process.php" method="GET">
<article class="post">
<h1>Добавить новый пост</h1>
<input type="text" name="title" required placeholder="Post name"><br>
<input type="text" name="title_2" required placeholder="Subtitle"><br>
<textarea name="content" required placeholder="Post content"></textarea><br>
<input type="submit" class="button big fit" value="Add Post" name="go_post">
</article>
</form>
</div>
<!-- Footer -->
<section id="footer">
<p class="copyright">© Blog. Design: <a href="http://html5up.net">HTML5 UP</a>.</p>
</section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
<?php
mysqli_close($connection);
?>
</body>
</html>