blob: f4f43e5a771367d763b039a65adcdf5d8e88b4ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
require("settings.php");
if (!isset($_POST['title']) || !isset($_POST['content'])) {
header("location: {$blogRoot}post.php");
exit(0);
}
$file = $_POST['title'];
$content = $_POST['content'];
file_put_contents("{$blogPosts}$file", $content);
header("location: {$blogRoot}");
?>
|