Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (empty($_POST['uname']) || empty($_POST['pword'])) {
- header('Location: index.php');
- exit;
- } elseif ((preg_match("/admin/", $_POST['uname'])) || (preg_match("/(user)(\d)+/", $_POST['uname']))) {
- echo "<br>Hello ";
- echo $_POST["uname"];
- if (!file_exists($_POST['uname'])) {
- mkdir($_POST["uname"], 0777, true);
- echo "<br>Your folder has been created.";
- } else {
- echo "<br>Welcome back!";
- }
- sleep(10);
- header("Location: uploadManager.php");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement