Advertisement
Guest User

Untitled

a guest
May 19th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. if (empty($_POST['uname']) || empty($_POST['pword'])) {
  2. header('Location: index.php');
  3. exit;
  4. } elseif ((preg_match("/admin/", $_POST['uname'])) || (preg_match("/(user)(\d)+/", $_POST['uname']))) {
  5. echo "<br>Hello ";
  6. echo $_POST["uname"];
  7. if (!file_exists($_POST['uname'])) {
  8. mkdir($_POST["uname"], 0777, true);
  9. echo "<br>Your folder has been created.";
  10. } else {
  11. echo "<br>Welcome back!";
  12. }
  13.  
  14. sleep(10);
  15. header("Location: uploadManager.php");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement