Skip to content
Fork of the official login-servers Adminer plugin with enhancements
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add FUNDING Jul 29, 2019
.res Update README Jul 29, 2019
plugins Script tag missing nonce value (#5) Aug 15, 2019
.editorconfig Update editorconfig Jan 4, 2018
.gitignore
.travis.yml Update travis Aug 15, 2019
CHANGELOG.md Update CHANGELOG Aug 15, 2019
LICENSE Add license May 19, 2017
README.md Update README Jul 29, 2019
composer.json Update libs Jan 31, 2019
composer.lock Update libs Jan 31, 2019

README.md

Latest Stable Version Minimum PHP Version Build Status Code Quality Support me on Patreon Donate Paypal

login-servers-enhanced

This plugin display a constant list of servers in login form.
It's a fork of the official plugin login-servers for Adminer with enhancements.
Was created for the Neard project.

Features

  • Ability to select a server with different driver.

Installation

Adminer

Copy plugins/login-servers-enhanced.php in the plugins folder.

Composer

composer require crazy-max/login-servers-enhanced

And download the code:

composer install # or update

Getting started

Follow the instructions on the official plugins page.
Then just add new AdminerLoginServersEnhanced to the $plugins array :

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(
        new AdminerLoginServersEnhanced(
            array(
                new AdminerLoginServerEnhanced('127.0.0.1:3306', 'MySQL port 3306', 'server'),
                new AdminerLoginServerEnhanced('127.0.0.1:3307', 'MariaDB port 3307', 'server'),
                new AdminerLoginServerEnhanced('127.0.0.1:5432', 'PostgreSQL port 5432', 'pgsql')
            )
        )
    );
    
    /* 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";

How can I help ?

All kinds of contributions are welcome 🙌!
The most basic way to show your support is to star 🌟 the project, or to raise issues 💬
But we're not gonna lie to each other, I'd rather you buy me a beer or two 🍻!

Support me on Patreon Paypal Donate

License

Apache-2.0. See LICENSE for more details.

You can’t perform that action at this time.