adminer updated to adminerevo
This commit is contained in:
parent
b26f349581
commit
222120c957
5 changed files with 1194 additions and 1121 deletions
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Using [AdminRevo](https://github.com/adminerevo/adminerevo/)
|
||||||
46
adminer.css
46
adminer.css
|
|
@ -24,8 +24,9 @@ a,a:visited {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: 3px 1px;
|
padding: 3px 1px;
|
||||||
}
|
}
|
||||||
#dbs span{
|
|
||||||
color:white;
|
#dbs label {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
|
@ -33,6 +34,7 @@ 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;
|
||||||
|
|
@ -67,8 +69,20 @@ h1 {
|
||||||
#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,9 +91,11 @@ 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;
|
||||||
|
|
@ -100,11 +116,13 @@ fieldset {
|
||||||
border: 1px solid #DEDEDE;
|
border: 1px solid #DEDEDE;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
input, select, textarea {
|
input, select, textarea {
|
||||||
border: 1px solid #e5e5e5;
|
border: 1px solid #e5e5e5;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
padding: 7px 4px;
|
padding: 7px 4px;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
|
@ -141,7 +159,10 @@ code{
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
font-family: "Monaco", "Courier New";
|
font-family: "Monaco", "Courier New";
|
||||||
}
|
}
|
||||||
code a:hover{background:transparent}
|
|
||||||
|
code a:hover {
|
||||||
|
background: transparent
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
margin: 10px 0px;
|
margin: 10px 0px;
|
||||||
|
|
@ -163,6 +184,7 @@ thead th, thead td {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
thead th acronym, thead td acronym, thead th sup, thead td sup {
|
thead th acronym, thead td acronym, thead th sup, thead td sup {
|
||||||
color: #CCDDFF;
|
color: #CCDDFF;
|
||||||
}
|
}
|
||||||
|
|
@ -217,13 +239,13 @@ tr.odd td {
|
||||||
}
|
}
|
||||||
|
|
||||||
#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;
|
||||||
}
|
}
|
||||||
|
|
@ -240,6 +262,7 @@ tr.odd td {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#breadcrumb a {
|
#breadcrumb a {
|
||||||
color: #ecf0f1;
|
color: #ecf0f1;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|
@ -250,9 +273,10 @@ tr.odd td {
|
||||||
background: #4e5d6c;
|
background: #4e5d6c;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
|
bottom: 55px;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
bottom:0;
|
/*bottom: 0;*/
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
width: 240px;
|
width: 240px;
|
||||||
|
|
@ -366,10 +390,12 @@ input[type=submit] {
|
||||||
-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;
|
||||||
|
|
@ -433,3 +459,9 @@ i {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tables li a.select {
|
||||||
|
background: #fff;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
|
|
||||||
1894
adminer.php
1894
adminer.php
File diff suppressed because one or more lines are too long
18
update.php
18
update.php
|
|
@ -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
8
update.sh
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue