Files
adminer/editor/sqlite.php

23 lines
693 B
PHP
Raw Normal View History

<?php
// see ../plugins/editor-setup.php for an easier solution
function adminer_object() {
include_once "../plugins/login-password-less.php";
2025-02-21 13:53:18 +01:00
2025-03-26 11:10:37 +01:00
class AdminerCustomization extends Adminer\Plugins {
function loginFormField($name, $heading, $value) {
2025-04-03 15:20:39 +02:00
return parent::loginFormField($name, $heading, str_replace("value='server'", "value='sqlite'", $value));
}
function database() {
return "PATH_TO_YOUR_SQLITE_HERE";
}
}
2025-02-21 13:53:18 +01:00
return new AdminerCustomization(array(
// TODO: inline the result of password_hash() so that the password is not visible in source codes
new AdminerLoginPasswordLess(password_hash("YOUR_PASSWORD_HERE", PASSWORD_DEFAULT)),
));
}
include "./index.php";