pematon / adminer-custom Goto Github PK
View Code? Open in Web Editor NEWOur custom all-in-one configuration of Adminer database tool.
License: MIT License
Our custom all-in-one configuration of Adminer database tool.
License: MIT License
I've just cloned the repo and setup adminer. And this is how it looks:
As you can see a lot of the things look different from the screenshot on the main readme:
a
links are underlined.Select
, Search
, Sort
& Modify
, Selected
, Import
, Export
take full length rather than a small width.For compariosn, here is the screenshot from the readme:
I was looking for a responsive theme for adminer, so thank you!
I used to have adminer working with sqlite, via...
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
function adminer_object()
{
class AdminerSoftware extends Adminer
{
function login($login, $password)
{
return ($login == 'admin' && $password == '******');
}
function loginForm() {
echo '
<table cellspacing="0">
<tbody>
<tr><th>Username</th>
<td><input id="username" name="auth[username]" type="text" /></td>
</tr/gt;
<tr><th>Password</th>
<td><input name="auth[password]" type="password" /></td>
</tr/gt;
</tbody/gt;
</table>
';
echo '<input type="submit" value="Login" />';
echo '<input name="auth[driver]" type="hidden" value="sqlite" />';
echo '<input name="auth[db]" type="hidden" value="macanta_install.db" />';
}
function database() {
// database name, will be escaped by Adminer
return 'macanta_install.db';
}
}
return new AdminerSoftware;
}
include "./adminer.php";
It's not obvious to me (I'm not a coder), how to get adminer-custom working with sqlite.
Can you point me in the right direction?
Thanks.
I posted a question on Stackoverflow and I haven't gotten a response there.
I link to it here in case someone may see it here and possibly answer.
When installing the vanilla Adminer Custom database tool there is a warning on the login page:
Warning: Declaration of AdminerPlugin::messageQuery($query, $time) should be compatible
with Adminer::messageQuery($G, $Vh, $Nc = false) in /path/to/webroot/plugins/plugin.php on line 0
My environment is using PHP 7.2.4
so I'm not sure if this warning exists on PHP 5.x
but nonetheless the warning is real ๐
The plugin.php
file supplied by Adminer Custom is outdated by comparison to the official Adminer plugin.php file and needs to be updated.
Here's the culprit in plugins/plugin.php
contained within this repo:
function messageQuery($query, $time) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
It should rather be as follows in accordance with the latest plugin.php
file.
function messageQuery($query, $time, $failed = false) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
I have submitted a Pull Request which fixes this warning message.
Started getting this with PHP 8.
Maybe I am missing something, but seems like the simple fix is to change:
$name = Adminer::tableName($status);
to:
$name = $status['Name'];
Can some show me an example how I can add my own custom server to the AdminerLoginServers plugin file? My default isn't to 'localhost', but '192.168.1.20'
It's ideal not to select the default domain name as the server.
Leave it as a form field and let the users add their IP as the server, just like the default Adminer.
This will become an issue if the server is behind Cloudflare which will supply Cloudflare IP instead of the Origin IP.
Hello, I have a problem with adminer, I have a virtualhost responding to a local subdomain admin.local.dev, there have hosted repository and that's the mistake will not let me concetar that I can do, I have as user = root password = null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.