Launcher/compat/auth/phpbb.php
Zaxar163 3962041825 Fix ipb.php! (fixed locale). (#42)
* 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
2018-11-05 16:50:46 +07:00

20 lines
672 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('Введены неверные данные');
}
// Load PHPBB Core
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Try authenticate
$result = $auth->login($login, $password, false, false, false);
echo($result['status'] === LOGIN_SUCCESS ? 'OK:' . $result['user_row']['username'] : 'Ошибка при авторизации');
?>