diff --git a/webapp/resources/adminer.php b/webapp/resources/adminer.php index 312dfe2c4e..3feb9a2508 100644 --- a/webapp/resources/adminer.php +++ b/webapp/resources/adminer.php @@ -5,184 +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.4 */function -adminer_errors($cc,$ec){return!!preg_match('~^(Trying to access array offset on value of type null|Undefined array key)~',$ec);}error_reporting(6135);set_error_handler('adminer_errors',E_WARNING);$wc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($wc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$fh=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($fh)$$X=$fh;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function -connection(){global$g;return$g;}function -adminer(){global$c;return$c;}function -version(){global$fa;return$fa;}function -idf_unescape($v){if(!preg_match('~^[`\'"]~',$v))return$v;$wd=substr($v,-1);return -str_replace($wd.$wd,$wd,substr($v,1,-1));}function +adminer_errors($hc,$jc){return!!preg_match('~^(Trying to access array offset on( value of type)? null|Undefined array key)~',$jc);}error_reporting(6135);set_error_handler('adminer_errors',E_WARNING);$Ac=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($Ac||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$nh=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($nh)$$X=$nh;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function +connection(){global$f;return$f;}function +adminer(){global$b;return$b;}function +version(){global$ga;return$ga;}function +idf_unescape($t){if(!preg_match('~^[`\'"[]~',$t))return$t;$Dd=substr($t,-1);return +str_replace($Dd.$Dd,$Dd,substr($t,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($kf[$z][$od]);if(is_array($W)){$kf[$z][stripslashes($od)]=$W;$kf[]=&$kf[$z][stripslashes($od)];}else$kf[$z][stripslashes($od)]=($wc?$W:stripslashes($W));}}}}function -bracket_escape($v,$_a=false){static$Sg=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return -strtr($v,($_a?array_flip($Sg):$Sg));}function -min_version($uh,$Id="",$h=null){global$g;if(!$h)$h=$g;$Sf=$h->server_info;if($Id&&preg_match('~([\d.]+)-MariaDB~',$Sf,$C)){$Sf=$C[1];$uh=$Id;}return(version_compare($Sf,$uh)>=0);}function -charset($g){return(min_version("5.5.3",0,$g)?"utf8mb4":"utf8");}function -script($bg,$Rg="\n"){return"$bg$Rg";}function -script_src($kh){return"\n";}function +remove_slashes($tf,$Ac=false){if(function_exists("get_magic_quotes_gpc")&&get_magic_quotes_gpc()){while(list($x,$X)=each($tf)){foreach($X +as$wd=>$W){unset($tf[$x][$wd]);if(is_array($W)){$tf[$x][stripslashes($wd)]=$W;$tf[]=&$tf[$x][stripslashes($wd)];}else$tf[$x][stripslashes($wd)]=($Ac?$W:stripslashes($W));}}}}function +bracket_escape($t,$Ba=false){static$ah=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return +strtr($t,($Ba?array_flip($ah):$ah));}function +min_version($Bh,$Qd="",$g=null){global$f;if(!$g)$g=$f;$ag=$g->server_info;if($Qd&&preg_match('~([\d.]+)-MariaDB~',$ag,$B)){$ag=$B[1];$Bh=$Qd;}return(version_compare($ag,$Bh)>=0);}function +charset($f){return(min_version("5.5.3",0,$f)?"utf8mb4":"utf8");}function +script($jg,$Zg="\n"){return"$jg$Zg";}function +script_src($sh){return"\n";}function nonce(){return' nonce="'.get_nonce().'"';}function target_blank(){return' target="_blank" rel="noreferrer noopener"';}function -h($lg){return -str_replace("\0","�",htmlspecialchars($lg,ENT_QUOTES,'utf-8'));}function -nl_br($lg){return -str_replace("\n","
",$lg);}function -checkbox($E,$Y,$Na,$sd="",$te="",$Ra="",$td=""){$K="".($te?script("qsl('input').onclick = function () { $te };",""):"");return($sd!=""||$Ra?"$K".h($sd)."":$K);}function -optionlist($xe,$Nf=null,$oh=false){$K="";foreach($xe -as$od=>$W){$ye=array($od=>$W);if(is_array($W)){$K.='';$ye=$W;}foreach($ye -as$z=>$X)$K.=''.h($X);if(is_array($W))$K.='';}return$K;}function -html_select($E,$xe,$Y="",$se=true,$td=""){if($se)return"".(is_string($se)?script("qsl('select').onchange = function () { $se };",""):"");$K="";foreach($xe -as$z=>$X)$K.="";return$K;}function -select_input($wa,$xe,$Y="",$se="",$Xe=""){$_g=($xe?"select":"input");return"<$_g$wa".($xe?">