-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.php
More file actions
32 lines (26 loc) · 728 Bytes
/
posts.php
File metadata and controls
32 lines (26 loc) · 728 Bytes
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
<?php
if (isset($_POST['article']) && isset($_POST['article-title'])) {
$filename = $_POST['article-title'];
$filename = str_ireplace(" ", "-", $filename);
$content = $_POST['article'];
file_put_contents("posts/".$filename."php", $content);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Pwn Me</title>
<link rel="stylesheet" type="text/css" href="css/home.css">
</head>
<body>
<ul>
<li style="float: left;"><a href="administrator/login.php">login</a></li>
<li><a href="pics.php">pictures</a></li>
<li><a href="posts.php">posts</a></li>
<li><a href="index.php">Home</a></li>
</ul>
<div class="home">
<h1>space box articles</h1>
</div>
</body>
</html>