Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Fork of the official login-servers Adminer plugin with enhancements

License

Notifications You must be signed in to change notification settings

crazy-max/login-servers-enhanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Minimum PHP Version Test workflow Become a sponsor Donate Paypal

⚠️ Abandoned project

This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed.

Thanks to everyone for their valuable feedback and contributions.

About

login-servers-enhanced displays a constant list of servers in login form. It's a fork of the official plugin login-servers for Adminer with enhancements and 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 💬 You can also support this project by becoming a sponsor on GitHub 👏 or by making a Paypal donation to ensure this journey continues indefinitely! 🚀

Thanks again for your support, it is much appreciated! 🙏

License

Apache-2.0. See LICENSE for more details.

About

Fork of the official login-servers Adminer plugin with enhancements

Topics

Resources

License

Stars

Watchers

Forks

Languages