Lengkap

Make a way so I can receive success or failed for a a login

I need to make a connection to Wordpress (the script will be on the same server) Could be a Wordpress plugin also. It needs to ECHO out Success or Failed and a way to add cases for Role: ex: Other roles would be: Paid, Unpaid, Banned etc:

Here is kind of the code I need:

<?php

//$username = $_POST["user"];

//$password = $_POST["password"];

$username = 'existingusername'; //debug test

$password = 'password'; // debug test

include_once(dirname(__FILE__) . "/wp-includes/[url removed, login to view]");

if (function_exists('wp_authenticate_username_password')) {

$auth = wp_authenticate_username_password(NULL, $username, $password);

if (is_wp_error($auth))

{

echo 'Fail';

} else {

//PSEUDO CODE - Check the user role and add case (its using other role) if it works then Success else Fail

echo 'Success';

}

}else{

echo 'Could not find wp_authenticate_username_password function<br>';

echo dirname(__FILE__) . "/wp-includes/[url removed, login to view]";

}

?>

Kemahiran: PHP, Wordpress

Lihat lagi: php script null, php login success message, failed login curl vbulletin, banning users ip multiple failed login attempts windows server, validation viewstate mac failed login, freepbx failed login recordings, windows 2003 log failed login attempts, ban address windows failed login attempts, install primavera failed login database, windows 2003 security log failed login, logs failed login active directory

Tentang Majikan:
( 1 ulasan ) Canada

ID Projek: #10111027

Dianugerahkan kepada:

subratadev

Hi Gone throug you requirement. I want you check my profile and reviews of my customers. Hope you will be one of them soon. We belive in total professionalism. Waiting for your reply. Subrata

$20 USD dalam sehari
(15 Ulasan)
3.6