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

@ -9,23 +9,24 @@ https://raw.github.com/vrana/adminer/master/designs/ng9/adminer.css
html, body, td, th, input, select { html, body, td, th, input, select {
font: 13px/1.7 "Roboto","Proxima Nova Rg","Source Sans Pro","Droid Sans",Arial,Helvetica, sans-serif; font: 13px/1.7 "Roboto", "Proxima Nova Rg", "Source Sans Pro", "Droid Sans", Arial, Helvetica, sans-serif;
color:#333333; color: #333333;
margin:0px; margin: 0px;
padding:0px; padding: 0px;
} }
body { body {
background-color: #f0f0f0; background-color: #f0f0f0;
} }
a,a:visited { a, a:visited {
color:#2980b9; color: #2980b9;
text-decoration:none; text-decoration: none;
padding:3px 1px; padding: 3px 1px;
} }
#dbs span{
color:white; #dbs label {
display: none;
} }
.footer { .footer {
@ -33,42 +34,55 @@ a,a:visited {
background: transparent; background: transparent;
border-top: 0; border-top: 0;
} }
.footer > div { .footer > div {
background: transparent; background: transparent;
padding: 0; padding: 0;
} }
#content table thead span, #content table thead a { #content table thead span, #content table thead a {
font-weight:bold; font-weight: bold;
color:#FFF; color: #FFF;
text-shadow:0px 01px 0px #000; text-shadow: 0px 01px 0px #000;
} }
#content table thead a:hover { #content table thead a:hover {
background:none; background: none;
text-decoration:underline; text-decoration: underline;
color:black; color: black;
} }
a:hover { a:hover {
text-decoration:underline; text-decoration: underline;
} }
h1 { h1 {
font-size:1.9em; font-size: 1.9em;
font-weight:normal; font-weight: normal;
background:white; background: white;
color:#1e5eb6; color: #1e5eb6;
border-bottom:1px solid rgb(85, 112, 139); border-bottom: 1px solid rgb(85, 112, 139);
padding:20px; padding: 20px;
margin:0px; margin: 0px;
} }
#menu h1 { #menu h1 {
padding: 0; padding: 0;
background:none; background: none;
border-top: 0;
} }
#dbs {
background: transparent;
border: 0;
border-spacing: 0;
}
* {
border-radius: 0 !important;
}
#menu .title { #menu .title {
font-size: 50%; font-size: 50%;
color: #fff; color: #fff;
@ -77,190 +91,200 @@ h1 {
#menu #version { #menu #version {
color: red; color: red;
} }
#menu .version:before { #menu .version:before {
color: #fff; color: #fff;
} }
#menu #h1 { #menu #h1 {
display: none; display: none;
line-height: 40px; line-height: 40px;
} }
h2,h3 { h2, h3 {
font-size:1.7em; font-size: 1.7em;
font-weight:bold; font-weight: bold;
background:transparent; background: transparent;
color:#34495e; color: #34495e;
border-bottom:1px solid #f4f4f4; border-bottom: 1px solid #f4f4f4;
padding:10px 0px; padding: 10px 0px;
margin:0px; margin: 0px;
} }
fieldset { fieldset {
padding:5px; padding: 5px;
border:1px solid #DEDEDE; border: 1px solid #DEDEDE;
background-color: #fff; background-color: #fff;
} }
input,select,textarea {
border:1px solid #e5e5e5; input, select, textarea {
margin:1px; border: 1px solid #e5e5e5;
padding:0px; margin: 1px;
padding: 0px;
} }
select{
padding:7px 4px; select {
background-color:#FFFFFF; padding: 7px 4px;
background-color: #FFFFFF;
} }
input[type=submit] { input[type=submit] {
color:white; color: white;
background:#27ae60; background: #27ae60;
padding:4px 10px; padding: 4px 10px;
cursor:pointer; cursor: pointer;
border:0px solid; border: 0px solid;
} }
input[type=submit]:hover{ input[type=submit]:hover {
background:#2c3e50; background: #2c3e50;
} }
input[type=checkbox]{ input[type=checkbox] {
margin-right:5px; margin-right: 5px;
} }
input[type=image] { input[type=image] {
border:1px solid #d0cdc4; border: 1px solid #d0cdc4;
} }
input[type=checkbox],input[type=radio]{ input[type=checkbox], input[type=radio] {
border:1px solid #e5e5e5; border: 1px solid #e5e5e5;
padding:2px 5px; padding: 2px 5px;
} }
code{ code {
background:#f0ffe1; background: #f0ffe1;
border:1px dashed #d5f1b9; border: 1px dashed #d5f1b9;
padding:2px 4px; padding: 2px 4px;
font-family:"Monaco","Courier New"; font-family: "Monaco", "Courier New";
}
code a:hover{background:transparent}
table{
margin:10px 0px;
border:1px solid #E6E6E6;
background-color:#FFFFFF;
} }
tbody tr:hover td,tbody tr:hover th{ code a:hover {
background:#edf4ff background: transparent
}
table {
margin: 10px 0px;
border: 1px solid #E6E6E6;
background-color: #FFFFFF;
}
tbody tr:hover td, tbody tr:hover th {
background: #edf4ff
} }
thead th, thead td { thead th, thead td {
text-align:center; text-align: center;
vertical-align:middle; vertical-align: middle;
font-weight:bold; font-weight: bold;
white-space:nowrap; white-space: nowrap;
border-right:1px solid #34495e; border-right: 1px solid #34495e;
background:#34495e; background: #34495e;
color:#FFFFFF; color: #FFFFFF;
padding-right:10px; padding-right: 10px;
}
thead th acronym, thead td acronym, thead th sup, thead td sup{
color:#CCDDFF;
} }
th,td{ thead th acronym, thead td acronym, thead th sup, thead td sup {
border:1px solid rgba(233,233,233,.3); color: #CCDDFF;
padding:3px 6px; }
vertical-align:top;
th, td {
border: 1px solid rgba(233, 233, 233, .3);
padding: 3px 6px;
vertical-align: top;
} }
th a { th a {
font-weight:bold; font-weight: bold;
padding-bottom:0px; padding-bottom: 0px;
text-shadow:1px 1px 1px #FFF; text-shadow: 1px 1px 1px #FFF;
} }
th { th {
background:white; background: white;
} }
tr.odd td { tr.odd td {
background:#fcfaf5; background: #fcfaf5;
} }
#content tbody tr.checked td, tr.checked.odd td { #content tbody tr.checked td, tr.checked.odd td {
background:#fbe2e2; background: #fbe2e2;
color:red; color: red;
} }
.hidden{ .hidden {
display:none display: none
} }
.error,.message{ .error, .message {
padding:0px; padding: 0px;
background:transparent; background: transparent;
font-weight:bold font-weight: bold
} }
.error{ .error {
color:#c00 color: #c00
} }
.message{ .message {
color:#090 color: #090
} }
#content{ #content {
margin:0px 0px 0px 320px; margin: 0px 0px 0px 320px;
padding:50px 20px 40px 0px; padding: 50px 20px 40px 0px;
height:100%; height: 100%;
} }
#lang { #lang {
/* background:#f0f0f0; */ background: #4e5d6c;
color:#333; color: #FFF;
position:fixed; position: fixed;
top:auto; top: auto;
bottom: 0px; bottom: 0px;
left:0px; left: 0px;
width: 242px; width: 240px;
padding:10px 20px; padding: 10px 20px;
z-index:1; z-index: 1;
} }
#breadcrumb { #breadcrumb {
position:fixed; position: fixed;
top:0px; top: 0px;
left:300px; left: 300px;
background:#39444e; background: #39444e;
z-index:2; z-index: 2;
width:100%; width: 100%;
color:#ecf0f1; color: #ecf0f1;
padding:10px; padding: 10px;
font-size:15px; font-size: 15px;
font-weight:bold; font-weight: bold;
} }
#breadcrumb a{
color:#ecf0f1; #breadcrumb a {
font-size:15px; color: #ecf0f1;
font-weight:bold; font-size: 15px;
font-weight: bold;
} }
#menu { #menu {
background:#4e5d6c; background: #4e5d6c;
position:fixed; position: fixed;
top:-10px; top: -10px;
color:#FFF; bottom: 55px;
color: #FFF;
padding: 0 20px; padding: 0 20px;
bottom:0; /*bottom: 0;*/
overflow:auto; overflow: auto;
left:0px; left: 0px;
width:240px; width: 240px;
} }
#menu p, #tables{ #menu p, #tables {
border-bottom:1px solid rgb(85, 112, 139); border-bottom: 1px solid rgb(85, 112, 139);
padding: .8em 0; padding: .8em 0;
} }
#tables a.select { #tables a.select {
@ -277,41 +301,41 @@ tr.odd td {
content: ' '; content: ' ';
} }
#menu a{ #menu a {
color:#FFF; color: #FFF;
} }
#schema .table { #schema .table {
padding:5px; padding: 5px;
background:#fcfaf5; background: #fcfaf5;
border:1px solid #d0cdc4; border: 1px solid #d0cdc4;
} }
#schema .table b { #schema .table b {
color:#006aeb; color: #006aeb;
font-weight:bold; font-weight: bold;
text-decoration:underline; text-decoration: underline;
} }
#schema .table b:hover { #schema .table b:hover {
color:white; color: white;
} }
input[name=logout] { input[name=logout] {
color:#fce2e2; color: #fce2e2;
background:#d73e3e; background: #d73e3e;
} }
input[name=drop] { input[name=drop] {
background-color:#c0392b; background-color: #c0392b;
} }
input[name=logout]:hover { input[name=logout]:hover {
background:#ea0202; background: #ea0202;
} }
#logins a, #tables a { #logins a, #tables a {
background:none; background: none;
} }
#logins a:hover, #tables a:hover { #logins a:hover, #tables a:hover {
@ -319,60 +343,62 @@ input[name=logout]:hover {
} }
#logout { #logout {
color:#FFF; color: #FFF;
text-decoration:none; text-decoration: none;
} }
#logout:hover { #logout:hover {
color:red; color: red;
} }
.logout { .logout {
z-index:3; z-index: 3;
position: fixed; position: fixed;
} }
.js .column { .js .column {
background:#ecf0f1; background: #ecf0f1;
} }
#content table thead a.text:hover { #content table thead a.text:hover {
text-decoration:none; text-decoration: none;
} }
#version, .version { #version, .version {
font-size:50%; font-size: 50%;
} }
#h1:hover { #h1:hover {
color:white; color: white;
} }
input[type=submit] { input[type=submit] {
font-size:13px; font-size: 13px;
font-weight:normal; font-weight: normal;
-moz-border-radius:1px; -moz-border-radius: 1px;
-webkit-border-radius:1px; -webkit-border-radius: 1px;
border-radius:1px; border-radius: 1px;
border:0px solid #469df5; border: 0px solid #469df5;
padding:4px 12px; padding: 4px 12px;
text-decoration:none; text-decoration: none;
background-color:#65ADC3; background-color: #65ADC3;
color:#ffffff; color: #ffffff;
display:inline-block; display: inline-block;
text-shadow:0px 01px 0px #287ace; text-shadow: 0px 01px 0px #287ace;
-webkit-box-shadow:inset 0px 0px 0px 0px #cae3fc; -webkit-box-shadow: inset 0px 0px 0px 0px #cae3fc;
-moz-box-shadow:inset 0px 0px 0px 0px #cae3fc; -moz-box-shadow: inset 0px 0px 0px 0px #cae3fc;
box-shadow:inset 0px 0px 0px 0px #cae3fc; box-shadow: inset 0px 0px 0px 0px #cae3fc;
} }
input[type=submit]:hover { input[type=submit]:hover {
background-color:#34495e; background-color: #34495e;
text-shadow:0px 1px 0px #000; text-shadow: 0px 1px 0px #000;
} }
input[type=submit]:active { input[type=submit]:active {
position:relative; position: relative;
top:1px; top: 1px;
} }
pre.sqlarea { pre.sqlarea {
@ -433,3 +459,9 @@ i {
width: 100%; 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