adminer updated to adminerevo

This commit is contained in:
Pau Capó 2024-01-17 13:04:04 +01:00
parent b26f349581
commit 222120c957
5 changed files with 1194 additions and 1121 deletions

1
README.md Normal file
View file

@ -0,0 +1 @@
Using [AdminRevo](https://github.com/adminerevo/adminerevo/)

View file

@ -24,8 +24,9 @@ a,a:visited {
text-decoration: none;
padding: 3px 1px;
}
#dbs span{
color:white;
#dbs label {
display: none;
}
.footer {
@ -33,6 +34,7 @@ a,a:visited {
background: transparent;
border-top: 0;
}
.footer > div {
background: transparent;
padding: 0;
@ -67,8 +69,20 @@ h1 {
#menu h1 {
padding: 0;
background: none;
border-top: 0;
}
#dbs {
background: transparent;
border: 0;
border-spacing: 0;
}
* {
border-radius: 0 !important;
}
#menu .title {
font-size: 50%;
color: #fff;
@ -77,9 +91,11 @@ h1 {
#menu #version {
color: red;
}
#menu .version:before {
color: #fff;
}
#menu #h1 {
display: none;
line-height: 40px;
@ -100,11 +116,13 @@ fieldset {
border: 1px solid #DEDEDE;
background-color: #fff;
}
input, select, textarea {
border: 1px solid #e5e5e5;
margin: 1px;
padding: 0px;
}
select {
padding: 7px 4px;
background-color: #FFFFFF;
@ -141,7 +159,10 @@ code{
padding: 2px 4px;
font-family: "Monaco", "Courier New";
}
code a:hover{background:transparent}
code a:hover {
background: transparent
}
table {
margin: 10px 0px;
@ -163,6 +184,7 @@ thead th, thead td {
color: #FFFFFF;
padding-right: 10px;
}
thead th acronym, thead td acronym, thead th sup, thead td sup {
color: #CCDDFF;
}
@ -217,13 +239,13 @@ tr.odd td {
}
#lang {
/* background:#f0f0f0; */
color:#333;
background: #4e5d6c;
color: #FFF;
position: fixed;
top: auto;
bottom: 0px;
left: 0px;
width: 242px;
width: 240px;
padding: 10px 20px;
z-index: 1;
}
@ -240,6 +262,7 @@ tr.odd td {
font-size: 15px;
font-weight: bold;
}
#breadcrumb a {
color: #ecf0f1;
font-size: 15px;
@ -250,9 +273,10 @@ tr.odd td {
background: #4e5d6c;
position: fixed;
top: -10px;
bottom: 55px;
color: #FFF;
padding: 0 20px;
bottom:0;
/*bottom: 0;*/
overflow: auto;
left: 0px;
width: 240px;
@ -366,10 +390,12 @@ input[type=submit] {
-moz-box-shadow: inset 0px 0px 0px 0px #cae3fc;
box-shadow: inset 0px 0px 0px 0px #cae3fc;
}
input[type=submit]:hover {
background-color: #34495e;
text-shadow: 0px 1px 0px #000;
}
input[type=submit]:active {
position: relative;
top: 1px;
@ -433,3 +459,9 @@ i {
width: 100%;
}
#tables li a.select {
background: #fff;
padding: 0;
font-size: 12px;
height: 10px;
}

File diff suppressed because one or more lines are too long

View file

@ -1,18 +0,0 @@
<?php
$adminer = dirname( __FILE__ ) . '/adminer.php';
$new = @file_get_contents( 'https://www.adminer.org/latest-en.php' );
if ( $new ) {
file_put_contents( $adminer, custom_fix( $new ) );
}
header( 'Location: ./' );
function custom_fix( $content ) {
$content = str_replace( '"privileges"=>array_flip(preg_split(\'~, *~\',$J["Privileges"])),', '"privileges"=>array_flip(["select","insert","update","references"]),', $content );
return $content;
}

8
update.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
URL=$(curl -s https://api.github.com/repos/adminerevo/adminerevo/releases/latest |
grep browser_download_url | grep "adminer-" |
cut -d : -f 2,3 |
tr -d \")
wget -q $URL -O adminer.php