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