From 222120c957841aac6233daf3c6dce56f0f50f3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Wed, 17 Jan 2024 13:04:04 +0100 Subject: [PATCH] adminer updated to adminerevo --- README.md | 1 + adminer.css | 394 ++++++----- adminer.php | 1894 ++++++++++++++++++++++++++------------------------- update.php | 18 - update.sh | 8 + 5 files changed, 1194 insertions(+), 1121 deletions(-) create mode 100644 README.md delete mode 100644 update.php create mode 100644 update.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..071b319 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Using [AdminRevo](https://github.com/adminerevo/adminerevo/) \ No newline at end of file diff --git a/adminer.css b/adminer.css index ea13750..ca65bf1 100644 --- a/adminer.css +++ b/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; + 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,190 +91,200 @@ 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; - bottom: 0px; - left:0px; - width: 242px; - padding:10px 20px; - z-index:1; + background: #4e5d6c; + color: #FFF; + position: fixed; + top: auto; + bottom: 0px; + 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); - padding: .8em 0; +#menu p, #tables { + border-bottom: 1px solid rgb(85, 112, 139); + padding: .8em 0; } #tables a.select { @@ -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; +} diff --git a/adminer.php b/adminer.php index 492ca6d..c6de86e 100644 --- a/adminer.php +++ b/adminer.php @@ -5,180 +5,221 @@ * @copyright 2007 Jakub Vrana * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) -* @version 4.8.1 +* @version 4.8.3 */function -adminer_errors($Ac,$Cc){return!!preg_match('~^(Trying to access array offset on value of type null|Undefined array key)~',$Cc);}error_reporting(6135);set_error_handler('adminer_errors',E_WARNING);$Yc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($Yc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Fi=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Fi)$$X=$Fi;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function +adminer_errors($Ec,$Gc){return!!preg_match('~^(Trying to access array offset on value of type null|Undefined array key)~',$Gc);}error_reporting(6135);set_error_handler('adminer_errors',E_WARNING);$cd=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($cd||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Li=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Li)$$X=$Li;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function connection(){global$g;return$g;}function adminer(){global$b;return$b;}function version(){global$ia;return$ia;}function -idf_unescape($v){if(!preg_match('~^[`\'"]~',$v))return$v;$ne=substr($v,-1);return -str_replace($ne.$ne,$ne,substr($v,1,-1));}function +idf_unescape($u){if(!preg_match('~^[`\'"[]~',$u))return$u;$se=substr($u,-1);return +str_replace($se.$se,$se,substr($u,1,-1));}function escape_string($X){return substr(q($X),1,-1);}function number($X){return preg_replace('~[^0-9]+~','',$X);}function number_type(){return'((?$W){unset($qg[$z][$fe]);if(is_array($W)){$qg[$z][stripslashes($fe)]=$W;$qg[]=&$qg[$z][stripslashes($fe)];}else$qg[$z][stripslashes($fe)]=($Yc?$W:stripslashes($W));}}}}function -bracket_escape($v,$Ma=false){static$ri=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return -strtr($v,($Ma?array_flip($ri):$ri));}function -min_version($Wi,$Ae="",$h=null){global$g;if(!$h)$h=$g;$kh=$h->server_info;if($Ae&&preg_match('~([\d.]+)-MariaDB~',$kh,$C)){$kh=$C[1];$Wi=$Ae;}return(version_compare($kh,$Wi)>=0);}function +remove_slashes($wg,$cd=false){if(function_exists("get_magic_quotes_gpc")&&get_magic_quotes_gpc()){while(list($y,$X)=each($wg)){foreach($X +as$je=>$W){unset($wg[$y][$je]);if(is_array($W)){$wg[$y][stripslashes($je)]=$W;$wg[]=&$wg[$y][stripslashes($je)];}else$wg[$y][stripslashes($je)]=($cd?$W:stripslashes($W));}}}}function +bracket_escape($u,$Oa=false){static$xi=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return +strtr($u,($Oa?array_flip($xi):$xi));}function +min_version($cj,$Fe="",$h=null){global$g;if(!$h)$h=$g;$qh=$h->server_info;if($Fe&&preg_match('~([\d.]+)-MariaDB~',$qh,$C)){$qh=$C[1];$cj=$Fe;}return(version_compare($qh,$cj)>=0);}function charset($g){return(min_version("5.5.3",0,$g)?"utf8mb4":"utf8");}function -script($vh,$qi="\n"){return"$vh$qi";}function -script_src($Ki){return"\n";}function +script($Ah,$wi="\n"){return"$Ah$wi";}function +script_src($Qi){return"\n";}function nonce(){return' nonce="'.get_nonce().'"';}function target_blank(){return' target="_blank" rel="noreferrer noopener"';}function h($P){return str_replace("\0","�",htmlspecialchars($P,ENT_QUOTES,'utf-8'));}function nl_br($P){return str_replace("\n","
",$P);}function -checkbox($D,$Y,$cb,$ke="",$rf="",$gb="",$le=""){$I="".($rf?script("qsl('input').onclick = function () { $rf };",""):"");return($ke!=""||$gb?"$I".h($ke)."":$I);}function -optionlist($xf,$dh=null,$Oi=false){$I="";foreach($xf -as$fe=>$W){$yf=array($fe=>$W);if(is_array($W)){$I.='';$yf=$W;}foreach($yf -as$z=>$X)$I.=''.h($X);if(is_array($W))$I.='';}return$I;}function -html_select($D,$xf,$Y="",$qf=true,$le=""){if($qf)return"".(is_string($qf)?script("qsl('select').onchange = function () { $qf };",""):"");$I="";foreach($xf -as$z=>$X)$I.="";return$I;}function -select_input($Ha,$xf,$Y="",$qf="",$cg=""){$Vh=($xf?"select":"input");return"<$Vh$Ha".($xf?">