Advertisement
Guest User

PHP login script

a guest
Sep 28th, 2016
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.     require_once('../store.rbxtv.com/wordpress/wp-includes/user.php');
  5.         require_once('dbConnect.php');
  6.     if($_SERVER['REQUEST_METHOD']=='POST'){
  7.         //Getting values
  8.         $username = '';
  9.                 $password = '';
  10.                 $user = null;
  11. $result = wp_authenticate_username_password($user, $username, $password);
  12. if (is_wp_error($result)) {
  13.  
  14. echo 'not authenticated';
  15.  
  16. } else {
  17.  
  18. echo 'authenticated';
  19.  
  20. }
  21.         mysqli_close($con);
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement