Не работает плагин login-password-less
Не работает плагин login-password-less для adminer (mysql), adminer (mysql) качал с офф.сайта и плагин тоже. Посмотрел как устанавливать плагины и повторил также, но мне выдает ошибку:
Fatal error: Uncaught Error: Class 'AdminerPlugin' not found in
W:\domains\marsik.gg\_Modules\_Admin\_phpMyAdmin\index.php:22 Stack trace: #0 W:\domains\marsik.gg\_Modules\_Admin\_phpMyAdmin\adminer.php(503): adminer_object() #1
W:\domains\marsik.gg\_Modules\_Admin\_phpMyAdmin\index.php(25): include_once('W:\\domains\\mars...') #2
{main} thrown in W:\domains\marsik.gg\_Modules\_Admin\_phpMyAdmin\index.php on line 22
Код из файла index.php:
<?php
function adminer_object() {
// required to run any plugin
include_once "./plugins/plugin.php";
// autoloader
foreach (glob("./plugins/*.php") as $filename) {
include_once "./$filename";
}
$plugins = array(
// specify enabled plugins here
new AdminerLoginPasswordLess,
);
/* It is possible to combine customization and plugins:
class AdminerCustomization extends AdminerPlugin {
}
return new AdminerCustomization($plugins);
*/
return new AdminerPlugin($plugins);
}
// include original Adminer or Adminer Editor
include "adminer.php";
Код из файла plugin.php:
<?php
class AdminerLoginPasswordLess {
/** @access protected */
var $password_hash;
/** Set allowed password
* @param string result of password_hash
*/
function __construct($password_hash='') {
$this->password_hash = $password_hash;
}
function credentials() {
$password = get_password();
return array(SERVER, $_GET["username"], (password_verify($password, $this->password_hash) ? "" : $password));
}
function login($login='', $password='') {
if ($password != "") {
return true;
}
}
}
Проверил через php syntax check там нету ошибок. Что не так?