Что странно - при попытке применить изменения система выдает что все ОК и все применилось, но настройки остаются прежними. После отключения "расширения" все приходит в норму... Поскольку "расширение" делал на основе чужих подобных расширений, то становится понятно что я что-то накосячил в коде... но вот где именно - в упор не вижу... собственно просьба в это самое узкое место ткнуть меня носом

Произведенные изменения, после которых начались неполадки: Активация собственного метода аторизации
Версия phpBB*: 3.1.6
Используемые шаблоны: prosilver
Используемые моды: собственный для авторизации
Версия PHP: 5.3.3
Используемая СУБД и её версия: PostgreSQL 8.4.8
Использовался ли поиск для решения проблемы: да
Если да, то какие запросы вы использовали: "phpbb3 cant change options in acp" и ему подобные
Каким браузером вы пользовались и есть ли проблема с другими браузерами: Опера 34, ИЕ 11, проблема наблюдалась везде
П.С. Моих изысканий хватило на то чтобы выяснить, что к моменту записи новых опций переменная, которая содержит эти самые "новые" опции, содержит старые значения
код расширения
Код: Выделить всё
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace time2060\login\auth\provider;
if (!defined('IN_PHPBB'))
{
exit;
}
class time2060 extends \phpbb\auth\provider\base
{
protected $passwords_manager;
protected $phpbb_container;
public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\passwords\manager $passwords_manager, \phpbb\request\request $request, \phpbb\user $user, \Symfony\Component\DependencyInjection\ContainerInterface $phpbb_container, $phpbb_root_path, $php_ext)
{
$this->db = $db;
$this->config = $config;
$this->passwords_manager = $passwords_manager;
$this->request = $request;
$this->user = $user;
$this->phpbb_container = $phpbb_container;
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;
// The use of this function has security issues, should be avoided for production use.
$this->request->enable_super_globals();
}
public function init()
{
return false;
}
public function login($username, $password)
{
// Auth plugins get the password untrimmed.
// For compatibility we trim() here.
$password = trim($password);
// do not allow empty password
if (!$password)
{
return array(
'status' => LOGIN_ERROR_PASSWORD,
'error_msg' => 'NO_PASSWORD_SUPPLIED',
'user_row' => array('user_id' => ANONYMOUS),
);
}
if (!$username)
{
return array(
'status' => LOGIN_ERROR_USERNAME,
'error_msg' => 'LOGIN_ERROR_USERNAME',
'user_row' => array('user_id' => ANONYMOUS),
);
}
$time2060_link = pg_pconnect("host='********' dbname='*************' user='*******' password='*******'");
if($time2060_link === false) die("Database game error");
<= Здесь код который проверяет наличие пользователя во внешней базе и вохвращает ряд параметров учетной записи=>
if(@pg_num_rows($result)==0) {
pg_close($time2060_link);
return array(
'status' => LOGIN_ERROR_PASSWORD,
'error_msg' => 'NO_PASSWORD_SUPPLIED',
'user_row' => array('user_id' => ANONYMOUS),
);
};
$time2060_row = pg_fetch_row($result);
pg_close($time2060_link);
$username_clean = utf8_clean_string($username);
$sql = 'SELECT user_id, username, user_password, user_passchg, user_email, user_type
FROM ' . USERS_TABLE . "
WHERE username_clean = '" . $this->db->sql_escape($username_clean) . "'";
$result = $this->db->sql_query($sql);
$row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);
if ($row)
{
// User inactive...
if ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE)
{
return array(
'status' => LOGIN_ERROR_ACTIVE,
'error_msg' => 'ACTIVE_ERROR',
'user_row' => $row,
);
}
// Successful login... set user_login_attempts to zero...
return array(
'status' => LOGIN_SUCCESS,
'error_msg' => false,
'user_row' => $row,
);
}
else
{
// retrieve default group id
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
WHERE group_name = '" . $this->db->sql_escape('REGISTERED') . "'
AND group_type = " . GROUP_SPECIAL;
$result = $this->db->sql_query($sql);
$row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);
if (!$row)
{
trigger_error('NO_GROUP');
}
// generate user account data
$time2060_user_row = array(
'username' => $username,
'user_password' => $this->passwords_manager->hash($password),
'user_email' => $time2060_row[5],
'group_id' => (int) $row['group_id'],
'user_type' => USER_NORMAL,
'user_ip' => $this->user->ip,
'user_new' => ($this->config['new_member_post_limit']) ? 1 : 0,
);
// this is the user's first login so create an empty profile
return array(
'status' => LOGIN_SUCCESS_CREATE_PROFILE,
'error_msg' => false,
'user_row' => $time2060_user_row,
);
}
}
}