From a459597759ccdc068ba442b69e8deb4e0557c4cc Mon Sep 17 00:00:00 2001 From: cytopia Date: Sun, 16 Dec 2018 00:29:50 +0100 Subject: [PATCH] Ensure Adminer and phpMyAdmin work with old PHP versions --- .../www/htdocs/vendor/adminer-4.6.3-en.php | 1934 +++++++++++++++++ .devilbox/www/include/lib/Html.php | 7 +- 2 files changed, 1939 insertions(+), 2 deletions(-) create mode 100644 .devilbox/www/htdocs/vendor/adminer-4.6.3-en.php diff --git a/.devilbox/www/htdocs/vendor/adminer-4.6.3-en.php b/.devilbox/www/htdocs/vendor/adminer-4.6.3-en.php new file mode 100644 index 00000000..c9a6ec7e --- /dev/null +++ b/.devilbox/www/htdocs/vendor/adminer-4.6.3-en.php @@ -0,0 +1,1934 @@ +$W){unset($kg[$y][$ae]);if(is_array($W)){$kg[$y][stripslashes($ae)]=$W;$kg[]=&$kg[$y][stripslashes($ae)];}else$kg[$y][stripslashes($ae)]=($Uc?$W:stripslashes($W));}}}}function +bracket_escape($u,$Na=false){static$li=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return +strtr($u,($Na?array_flip($li):$li));}function +min_version($Ri,$ye="",$h=null){global$g;if(!$h)$h=$g;$fh=$h->server_info;if($ye&&preg_match('~([\d.]+)-MariaDB~',$fh,$B)){$fh=$B[1];$Ri=$ye;}return(version_compare($fh,$Ri)>=0);}function +charset($g){return(min_version("5.5.3",0,$g)?"utf8mb4":"utf8");}function +script($ph,$ki="\n"){return"$ph$ki";}function +script_src($Fi){return"\n";}function +nonce(){return' nonce="'.get_nonce().'"';}function +target_blank(){return' target="_blank" rel="noreferrer noopener"';}function +h($Q){return +str_replace("\0","�",htmlspecialchars($Q,ENT_QUOTES,'utf-8'));}function +nl_br($Q){return +str_replace("\n","
",$Q);}function +checkbox($C,$Y,$eb,$he="",$mf="",$jb="",$ie=""){$I="".($mf?script("qsl('input').onclick = function () { $mf };",""):"");return($he!=""||$jb?"$I".h($he)."":$I);}function +optionlist($sf,$Zg=null,$Ji=false){$I="";foreach($sf +as$ae=>$W){$tf=array($ae=>$W);if(is_array($W)){$I.='';$tf=$W;}foreach($tf +as$y=>$X)$I.=''.h($X);if(is_array($W))$I.='';}return$I;}function +html_select($C,$sf,$Y="",$lf=true,$ie=""){if($lf)return"".(is_string($lf)?script("qsl('select').onchange = function () { $lf };",""):"");$I="";foreach($sf +as$y=>$X)$I.="";return$I;}function +select_input($Ja,$sf,$Y="",$lf="",$Wf=""){$Ph=($sf?"select":"input");return"<$Ph$Ja".($sf?">