Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("content-type:application/xhtml+xml; charset =utf-8", "application/xhtml+xml; charset =utf-8");
- include_once "common.php";
- $blogname = $_POST["blogname"];
- $blogdesc = $_POST["blogdesc"];
- $user = $_POST["user"];
- $password = $_POST["password"];
- $blogPath = getBlog($BASE_PATH,$user,md5($password)) !==false;
- //echo $blogPath ? "true":"false";
- if ((isset($_POST["password"]) and
- isset($_POST["user"]) and
- isset($_POST["blogname"]) and
- isset($_POST["blogdesc"]) and
- !$blogPath
- )) {
- if (mkdir("$BASE_PATH/$blogname")) {
- createInfoFile("$BASE_PATH/$blogname", $user, $password, $blogdesc);
- header("Location: blog.php?nazwa=$blogname");
- return;
- }
- }
- header("Location: createBlog.xhtml");//todo: error-handling
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement