Skip to content

Commit c6d62cc

Browse files
committed
Update config docker-framework
1 parent 0be45ea commit c6d62cc

File tree

3,547 files changed

+5845
-495460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,547 files changed

+5845
-495460
lines changed

config/adminer/adminer.php

+1,943
Large diffs are not rendered by default.

config/adminer/css/default-blue.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/adminer/css/default-green.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/adminer/css/default-orange.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/adminer/fonts/entypo.eot

20.7 KB
Binary file not shown.

config/adminer/fonts/entypo.svg

+264
Loading

config/adminer/fonts/entypo.ttf

36 KB
Binary file not shown.

config/adminer/fonts/entypo.woff

23.4 KB
Binary file not shown.

config/adminer/images/favicon.png

823 Bytes
Loading

config/adminer/images/logo-hres.png

2.12 KB
Loading

config/adminer/images/logo.png

1.3 KB
Loading
9.95 KB
Loading

config/adminer/images/tileIcon.png

4.47 KB
Loading
1.58 KB
Loading

config/adminer/images/touchIcon.png

1.59 KB
Loading

config/adminer/index.php

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
function adminer_object()
4+
{
5+
// Required to run any plugin.
6+
include_once "./plugins/plugin.php";
7+
8+
// Plugins auto-loader.
9+
foreach (glob("plugins/*.php") as $filename) {
10+
include_once "./$filename";
11+
}
12+
13+
// Specify enabled plugins here.
14+
$plugins = array(
15+
// AdminerTheme has to be the last one!
16+
new AdminerTheme(),
17+
18+
// Color variant can by specified in constructor parameter.
19+
// new AdminerTheme("default-orange"),
20+
// new AdminerTheme("default-blue"),
21+
// new AdminerTheme("default-green"),
22+
);
23+
24+
return new AdminerPlugin($plugins);
25+
}
26+
27+
// Include original Adminer or Adminer Editor.
28+
include "./adminer.php";
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
3+
/**
4+
* Adds support for Pematon's custom theme.
5+
* This includes meta headers, touch icons and other stuff.
6+
*
7+
* @author Peter Knut
8+
* @copyright 2014-2015 Pematon, s.r.o. (http://www.pematon.com/)
9+
*/
10+
class AdminerTheme
11+
{
12+
/** @var string */
13+
private $themeName;
14+
15+
/**
16+
* @param string $themeName File with this name and .css extension should be located in css folder.
17+
*/
18+
function AdminerTheme($themeName = "default-orange")
19+
{
20+
define("PMTN_ADMINER_THEME", true);
21+
22+
$this->themeName = $themeName;
23+
}
24+
25+
/**
26+
* Prints HTML code inside <head>.
27+
* @return false
28+
*/
29+
public function head()
30+
{
31+
$userAgent = filter_input(INPUT_SERVER, "HTTP_USER_AGENT");
32+
?>
33+
34+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
35+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, target-densitydpi=medium-dpi"/>
36+
37+
<link rel="icon" type="image/ico" href="images/favicon.png">
38+
39+
<?php
40+
// Condition for Windows Phone has to be the first, because IE11 contains also iPhone and Android keywords.
41+
if (strpos($userAgent, "Windows") !== false):
42+
?>
43+
<meta name="application-name" content="Adminer"/>
44+
<meta name="msapplication-TileColor" content="#ffffff"/>
45+
<meta name="msapplication-square150x150logo" content="images/tileIcon.png"/>
46+
<meta name="msapplication-wide310x150logo" content="images/tileIcon-wide.png"/>
47+
48+
<?php elseif (strpos($userAgent, "iPhone") !== false || strpos($userAgent, "iPad") !== false): ?>
49+
<link rel="apple-touch-icon-precomposed" href="images/touchIcon.png"/>
50+
51+
<?php elseif (strpos($userAgent, "Android") !== false): ?>
52+
<link rel="apple-touch-icon-precomposed" href="images/touchIcon-android.png?2"/>
53+
54+
<?php else: ?>
55+
<link rel="apple-touch-icon" href="images/touchIcon.png"/>
56+
<?php endif; ?>
57+
58+
<link rel="stylesheet" type="text/css" href="css/<?php echo htmlspecialchars($this->themeName) ?>.css?2">
59+
60+
<script>
61+
(function(window) {
62+
"use strict";
63+
64+
window.addEventListener("load", function() {
65+
prepareMenuButton();
66+
}, false);
67+
68+
function prepareMenuButton() {
69+
var menu = document.getElementById("menu");
70+
var button = menu.getElementsByTagName("h1")[0];
71+
if (!menu || !button) {
72+
return;
73+
}
74+
75+
button.addEventListener("click", function() {
76+
if (menu.className.indexOf(" open") >= 0) {
77+
menu.className = menu.className.replace(/ *open/, "");
78+
} else {
79+
menu.className += " open";
80+
}
81+
}, false);
82+
}
83+
84+
})(window);
85+
86+
</script>
87+
88+
<?php
89+
90+
// Return false to disable linking of adminer.css and original favicon.
91+
// Warning! This will stop executing head() function in all plugins defined after AdminerTheme.
92+
return false;
93+
}
94+
}

0 commit comments

Comments
 (0)