Activity for adrianbj

  • adrianbj adrianbj posted a comment on ticket #822

    I am also seeing this on the latest version on PHP 8.

  • adrianbj adrianbj posted a comment on ticket #788

    I'm running 4.8.1 and seeing PHP Warning: Undefined variable $dg in /adminer-4.8.1-mysql.php on line 868

  • adrianbj adrianbj posted a comment on discussion Help

    Thanks @jakubvrana - that fixed it :)

  • adrianbj adrianbj posted a comment on discussion Help

    Yeah, I see that so not sure why it's being lost. Here is what I am currently doing with the hacky JS login form submission: https://github.com/adrianbj/TracyDebugger/blob/master/panels/Adminer/plugins/AdminerProcessWireLogin.php and here's the version I was using before the automated login broke: https://github.com/adrianbj/TracyDebugger/blob/ab632ab59f232c70de39a7e0e9b869b51e3108e1/panels/Adminer/plugins/AdminerProcessWireLogin.php In both cases, adding the $_GET['username'] = "" removes the username...

  • adrianbj adrianbj posted a comment on discussion Help

    It's because I've been setting $_GET['username'] = "" which seemed to be part of the recommended way to set up an automatic login. Currently I am logging in automatically via a JS submission of a hidden form which is a bit ugly, but it works and does mean that I no longer need to set $_GET['username'] = "" and so there is now also no longer an issue with &db, so I guess this is solved.

  • adrianbj adrianbj posted a comment on discussion Help

    This has been a problem for me all along so I hack the adminer core, changing: echo'<a href="'.h($A."&db=".urlencode(DB) to: echo'<a href="'.h($A."?db=".urlencode(DB) This might be because I am setting the available databases like this: function databases($flush = true) { return [$this->db]; } so that there is only one database available. The way I get to the situation with the &db at the start of the querystring is to view a table and then click the DB name in the breadrumb in the header. Could...

  • adrianbj adrianbj posted a comment on discussion Help

    Starting a new topic about this, because it seems that https://sourceforge.net/p/adminer/discussion/960418/thread/0ebcd89548/ is perhaps discussing two different things. But the point to this new topic is that I used to be able to: $_GET['username'] = ''; function credentials() { return array($this->server, $this->name, $this->pass); } function login() { return true; } but now I am stuck with hacking with JS to submit the login form, eg: addEventListener('DOMContentLoaded', function () { document.forms[0].submit();...

  • adrianbj adrianbj modified a comment on discussion Help

    Hi guys- I am having problems with 4.7.3, although I think the change happened in 4.7.2 but I skipped that version. I was using the following to automatically login: function credentials() { // server, username and password for connecting to database return array($this->server, $this->name, $this->pass); } function login() { return true; } but this no longer works. Is this an intentional change, or a bug? Is there some other way to automatically login with the new version? Thank you.

  • adrianbj adrianbj posted a comment on discussion Help

    Hi guys- I am having problems with 4.7.3, although I think the change happened in 4.7.2 but I skipped that version. I was using the following to automatically login: function credentials() { // server, username and password for connecting to database return array($this->server, $this->name, $this->pass); } function login() { return true; } but this no longer works. Is this an intentional change, or a bug? Is there some other way to automatically login with the new version? Thank you.

1