This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New bundle for Adminer (Issue neard/neard#248)
- Loading branch information
crazy-max
committed
Apr 17, 2017
1 parent
80461a9
commit 53010a1
Showing
5 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
adminerVersion = "4.3.1" | ||
adminerConf = "config.php" | ||
|
||
bundleRelease = "@RELEASE_VERSION@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|