diff --git a/webapp/resources/adminer.php b/webapp/resources/adminer.php index 7f988b4f72..3feb9a2508 100644 --- a/webapp/resources/adminer.php +++ b/webapp/resources/adminer.php @@ -7,142 +7,142 @@ * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @version 4.8.4 */function -adminer_errors($Fc,$Hc){return!!preg_match('~^(Trying to access array offset on( value of type)? null|Undefined array key)~',$Hc);}error_reporting(6135);set_error_handler('adminer_errors',E_WARNING);$ed=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($ed||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Ni=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Ni)$$X=$Ni;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function -connection(){global$g;return$g;}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$ia;return$ia;}function -idf_unescape($t){if(!preg_match('~^[`\'"[]~',$t))return$t;$we=substr($t,-1);return -str_replace($we.$we,$we,substr($t,1,-1));}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($zg[$x][$ne]);if(is_array($W)){$zg[$x][stripslashes($ne)]=$W;$zg[]=&$zg[$x][stripslashes($ne)];}else$zg[$x][stripslashes($ne)]=($ed?$W:stripslashes($W));}}}}function -bracket_escape($t,$Oa=false){static$zi=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return -strtr($t,($Oa?array_flip($zi):$zi));}function -min_version($ej,$Ke="",$h=null){global$g;if(!$h)$h=$g;$sh=$h->server_info;if($Ke&&preg_match('~([\d.]+)-MariaDB~',$sh,$A)){$sh=$A[1];$ej=$Ke;}return(version_compare($sh,$ej)>=0);}function -charset($g){return(min_version("5.5.3",0,$g)?"utf8mb4":"utf8");}function -script($Ch,$yi="\n"){return"$Ch$yi";}function -script_src($Si){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($P){return -str_replace("\0","�",htmlspecialchars($P,ENT_QUOTES,'utf-8'));}function -nl_br($P){return -str_replace("\n","
",$P);}function -checkbox($C,$Y,$eb,$se="",$_f="",$ib="",$te=""){$I="".($_f?script("qsl('input').onclick = function () { $_f };",""):"");return($se!=""||$ib?"$I".h($se)."":$I);}function -optionlist($D,$lh=null,$Wi=false){$I="";foreach($D -as$ne=>$W){$Gf=array($ne=>$W);if(is_array($W)){$I.='';$Gf=$W;}foreach($Gf -as$x=>$X)$I.=''.h($X);if(is_array($W))$I.='';}return$I;}function -html_select($C,$D,$Y="",$zf=true,$te=""){if($zf)return"".(is_string($zf)?script("qsl('select').onchange = function () { $zf };",""):"");$I="";foreach($D -as$x=>$X)$I.="";return$I;}function -select_input($Ja,$D,$Y="",$zf="",$lg=""){$di=($D?"select":"input");return"<$di$Ja".($D?">