Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
New bundle for Adminer (Issue neard/neard#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Apr 17, 2017
1 parent 80461a9 commit 53010a1
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## r7 (2017/04/17)

* New bundle : 4.3.1 (Issue crazy-max/neard#248)

## r6 (2017/03/22)

* Handle MongoDB (Issue crazy-max/neard#237)
Expand All @@ -14,13 +18,13 @@

## r3 (2016/06/21)

* New bundle : 4.2.5
* New bundle : 4.2.5 (Issue crazy-max/neard#169)

## r2 (2016/04/30)

* User and password is now required (default user is `root` and empty password)

## r1 (2016/04/03)

* New bundle : 4.2.4 (Issue crazy-max/neard#169)
* Init repo with Adminer bundles from Neard
* New bundle : 4.2.4
20 changes: 20 additions & 0 deletions bin/adminer4.3.1/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

global $mysqlPort, $mysqlRootUser, $mysqlRootPwd,
$mariadbPort, $mariadbRootUser, $mariadbRootPwd,
$postgresqlPort, $postgresqlRootUser, $postgresqlRootPwd,
$mongodbPort;

$mysqlPort = 3306;
$mysqlRootUser = 'root';
$mysqlRootPwd = '';

$mariadbPort = 3307;
$mariadbRootUser = 'root';
$mariadbRootPwd = '';

$postgresqlPort = 5432;
$postgresqlRootUser = 'postgres';
$postgresqlRootPwd = '';

$mongodbPort = 27017;
37 changes: 37 additions & 0 deletions bin/adminer4.3.1/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

include './config.php';

function adminer_object() {
global $mysqlPort, $mysqlRootUser, $mysqlRootPwd,
$mariadbPort, $mariadbRootUser, $mariadbRootPwd,
$postgresqlPort, $postgresqlRootUser, $postgresqlRootPwd,
$mongodbPort;

include_once './plugins/plugin.php';

foreach (glob('plugins/*.php') as $filename) {
include_once './' . $filename;
}

$plugins = array(
new AdminerLoginServersEnhanced(
array(
new AdminerLoginServerEnhanced('127.0.0.1:' . $mysqlPort, 'MySQL port ' . $mysqlPort, 'server'),
new AdminerLoginServerEnhanced('127.0.0.1:' . $mariadbPort, 'MariaDB port ' . $mariadbPort, 'server'),
new AdminerLoginServerEnhanced('127.0.0.1:' . $postgresqlPort, 'PostgreSQL port ' . $postgresqlPort, 'pgsql'),
new AdminerLoginServerEnhanced('127.0.0.1:' . $mongodbPort, 'MongoDB port ' . $mongodbPort, 'mongo')
)
),
);

/* It is possible to combine customization and plugins:
class AdminerCustomization extends AdminerPlugin {
}
return new AdminerCustomization($plugins);
*/

return new AdminerPlugin($plugins);
}

include './adminer.php';
4 changes: 4 additions & 0 deletions bin/adminer4.3.1/neard.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
adminerVersion = "4.3.1"
adminerConf = "config.php"

bundleRelease = "@RELEASE_VERSION@"
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bundle.name = adminer
bundle.release = r6
bundle.release = r7
bundle.type = apps
bundle.format = 7z

Expand Down

0 comments on commit 53010a1

Please sign in to comment.