<?php

include_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-config.php’);
include_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-load.php’);
include_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-includes/wp-db.php’);

global $userdata;
global $wpdb;

//get the posted values

$posted_username = $_POST[‘username’];
$posted_password = $_POST[‘password’];

$user_name = htmlspecialchars($posted_username,ENT_QUOTES);

$pass_word = wp_hash_password($posted_password);

$pass_md5 = md5($posted_password);

$pass = $pass_word;

$userinfo = get_userdatabylogin($user_name);

if ( $pass == $userinfo->user_pass){

        echo "yes";

    } else

        echo "no<br />:";

echo $pass;
echo ‘<br />:’;
echo $userinfo->user_pass;
echo ‘<br />:’;
echo $userinfo->ID;
echo ‘<br />:’;
echo $userinfo->user_login;
echo ‘<br />:’;
echo $pass_md5;
echo ‘<br />:’;
echo wp_hash_password(‘mypassword’);

?>