mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
AdminerConfig: Move link (fix #995)
This commit is contained in:
@@ -60,6 +60,10 @@ class Adminer {
|
|||||||
return get_databases($flush);
|
return get_databases($flush);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Print links after list of plugins */
|
||||||
|
function pluginsLinks(): void {
|
||||||
|
}
|
||||||
|
|
||||||
/** Operators used in select
|
/** Operators used in select
|
||||||
* @return list<string> operators
|
* @return list<string> operators
|
||||||
*/
|
*/
|
||||||
|
@@ -108,6 +108,7 @@ if (
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
echo "</ul>\n";
|
echo "</ul>\n";
|
||||||
|
adminer()->pluginsLinks();
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -32,4 +32,5 @@ if (adminer()->homepage()) {
|
|||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
echo script("tableCheck();");
|
echo script("tableCheck();");
|
||||||
|
adminer()->pluginsLinks();
|
||||||
}
|
}
|
||||||
|
@@ -52,6 +52,9 @@ class Adminer {
|
|||||||
return get_databases($flush);
|
return get_databases($flush);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function pluginsLinks(): void {
|
||||||
|
}
|
||||||
|
|
||||||
function queryTimeout() {
|
function queryTimeout() {
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
@@ -51,20 +51,9 @@ class AdminerConfig extends Adminer\Plugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function navigation() {
|
function pluginsLinks() {
|
||||||
if (Adminer\connection()) { // don't display on login page
|
$link = preg_replace('~\b(db|ns)=[^&]*&~', '', Adminer\ME);
|
||||||
$link = substr(preg_replace('~\b(db|ns)=[^&]*&~', '', Adminer\ME), 0, -1);
|
echo "<p><a href='" . Adminer\h($link) . "config='>" . $this->lang('Configuration') . "</a>\n";
|
||||||
?>
|
|
||||||
<style>
|
|
||||||
#configlink { position: absolute; top: -2.6em; left: 17.8em; }
|
|
||||||
#configlink a { font-size: 150%; }
|
|
||||||
@media all and (max-width: 800px) {
|
|
||||||
#configlink { top: 5em; left: auto; right: 20px; }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<?php
|
|
||||||
echo "<div id='configlink'><a href='" . Adminer\h($link) . "&config=' title='" . $this->lang('Configuration') . "'>⚙</a></div>\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function screenshot() {
|
function screenshot() {
|
||||||
|
Reference in New Issue
Block a user