I am really loving using Adminer and I am just exploring features for Editor - I ams stuck trying to edit the files to achieve the following:
Override the credentials function using the server field only(for remote connections), and use the database login credentials as per usual. ( the method has 3 fields so far, I want my users to log in using their database creds)
Display stored procedures (and be able to call them) above or below tables in both editor and adminer.
Any help greatly appreciated, keep up the awesome work!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
function credentials() {
// server, username and password for connecting to database
return array('server.host.com', $_GET["username"], get_password());
}
This will allow you to specify a server name but collect the username and password from the login form.
Old post:
This is old, but I know what he means by #1. He wants to specify the server URL in the credentials() function, but have each user connect using their own username and password when they arrive at the PHP page.
Right now, if you use:
function credentials() {
return array('server','username','password');
}
You have to enter all three parameters; you can't specify only a server and then have the user enter their own username/password on the page.
One might want to specify the server because you might run adminer editor on a different machine than localhost.
I'm encountering this right now. I want to specify a different server than localhost (since the database is on a remote system) but I do not want to hard-code authorization credentials in the PHP file.
Last edit: Greg 2021-08-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Friends,
I am really loving using Adminer and I am just exploring features for Editor - I ams stuck trying to edit the files to achieve the following:
Any help greatly appreciated, keep up the awesome work!
navigation().ETA: the answer seems to be:
This will allow you to specify a server name but collect the username and password from the login form.
Old post:
This is old, but I know what he means by #1. He wants to specify the server URL in the credentials() function, but have each user connect using their own username and password when they arrive at the PHP page.
Right now, if you use:
function credentials() {
return array('server','username','password');
}
You have to enter all three parameters; you can't specify only a server and then have the user enter their own username/password on the page.
One might want to specify the server because you might run adminer editor on a different machine than localhost.
I'm encountering this right now. I want to specify a different server than localhost (since the database is on a remote system) but I do not want to hard-code authorization credentials in the PHP file.
Last edit: Greg 2021-08-13