mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
3962041825
* Fix ipb.php! (fixed locale). * Fix phpbb.php! * wordpress.php locale! * Fix xenforo.php! (locale) * Update ipb.php * Fix dle die logging! * Update dle.php
15 lines
444 B
PHP
15 lines
444 B
PHP
<?php
|
|
header("Content-Type: text/plain; charset=UTF-8");
|
|
|
|
// Verify login and password
|
|
$login = $_GET['login'];
|
|
$password = $_GET['password'];
|
|
if(empty($login) || empty($password)) {
|
|
exit('Введены неверные данные');
|
|
}
|
|
|
|
// Try authenticate
|
|
require_once('wp-load.php');
|
|
$user = wp_authenticate($login, $password);
|
|
echo($user instanceof WP_User ? 'OK:' . $user->user_login : 'Ошибка при авторизации');
|
|
?>
|