\n";}function
bold($Wa,$kb=""){return($Wa?" class='active $kb'":($kb?" class='$kb'":""));}function
-odd($J=' class="odd"'){static$t=0;if(!$J)$t=-1;return($t++%2?$J:'');}function
+odd($I=' class="odd"'){static$s=0;if(!$I)$s=-1;return($s++%2?$I:'');}function
js_escape($Q){return
addcslashes($Q,"\r\n'\\/");}function
-json_row($z,$X=null){static$Wc=true;if($Wc)echo"{";if($z!=""){echo($Wc?"":",")."\n\t\"".addcslashes($z,"\r\n\t\"\\/").'": '.($X!==null?'"'.addcslashes($X,"\r\n\"\\/").'"':'null');$Wc=false;}else{echo"\n}\n";$Wc=true;}}function
-ini_bool($Ld){$X=ini_get($Ld);return(preg_match('~^(on|true|yes)$~i',$X)||(int)$X);}function
-sid(){static$J;if($J===null)$J=(SID&&!($_COOKIE&&ini_bool("session.use_cookies")));return$J;}function
-set_password($Pi,$O,$V,$G){$_SESSION["pwds"][$Pi][$O][$V]=($_COOKIE["adminer_key"]&&is_string($G)?array(encrypt_string($G,$_COOKIE["adminer_key"])):$G);}function
-get_password(){$J=get_session("pwds");if(is_array($J))$J=($_COOKIE["adminer_key"]?decrypt_string($J[0],$_COOKIE["adminer_key"]):false);return$J;}function
+json_row($y,$X=null){static$Xc=true;if($Xc)echo"{";if($y!=""){echo($Xc?"":",")."\n\t\"".addcslashes($y,"\r\n\t\"\\/").'": '.($X!==null?'"'.addcslashes($X,"\r\n\"\\/").'"':'null');$Xc=false;}else{echo"\n}\n";$Xc=true;}}function
+ini_bool($Pd){$X=ini_get($Pd);return(preg_match('~^(on|true|yes)$~i',$X)||(int)$X);}function
+sid(){static$I;if($I===null)$I=(SID&&!($_COOKIE&&ini_bool("session.use_cookies")));return$I;}function
+set_password($Ti,$N,$V,$F){$_SESSION["pwds"][$Ti][$N][$V]=($_COOKIE["adminer_key"]&&is_string($F)?array(encrypt_string($F,$_COOKIE["adminer_key"])):$F);}function
+get_password(){$I=get_session("pwds");if(is_array($I))$I=($_COOKIE["adminer_key"]?decrypt_string($I[0],$_COOKIE["adminer_key"]):false);return$I;}function
q($Q){global$g;return$g->quote($Q);}function
-get_vals($H,$d=0){global$g;$J=array();$I=$g->query($H);if(is_object($I)){while($K=$I->fetch_row())$J[]=$K[$d];}return$J;}function
-get_key_vals($H,$h=null,$Xh=0,$hh=true){global$g;if(!is_object($h))$h=$g;$J=array();$h->timeout=$Xh;$I=$h->query($H);$h->timeout=0;if(is_object($I)){while($K=$I->fetch_row()){if($hh)$J[$K[0]]=$K[1];else$J[]=$K[0];}}return$J;}function
-get_rows($H,$h=null,$o="
"){global$g;$yb=(is_object($h)?$h:$g);$J=array();$I=$yb->query($H);if(is_object($I)){while($K=$I->fetch_assoc())$J[]=$K;}elseif(!$I&&!is_object($h)&&$o&&defined("PAGE_HEADER"))echo$o.error()."\n";return$J;}function
-unique_array($K,$x){foreach($x
-as$w){if(preg_match("~PRIMARY|UNIQUE~",$w["type"])){$J=array();foreach($w["columns"]as$z){if(!isset($K[$z]))continue
-2;$J[$z]=$K[$z];}return$J;}}}function
-escape_key($z){if(preg_match('(^([\w(]+)('.str_replace("_",".*",preg_quote(idf_escape("_"))).')([ \w)]+)$)',$z,$C))return$C[1].idf_escape(idf_unescape($C[2])).$C[3];return
-idf_escape($z);}function
-where($Z,$q=array()){global$g,$y;$J=array();foreach((array)$Z["where"]as$z=>$X){$z=bracket_escape($z,1);$d=escape_key($z);$J[]=$d.($y=="sql"&&preg_match('~^[0-9]*\\.[0-9]*$~',$X)?" LIKE ".q(addcslashes($X,"%_\\")):($y=="mssql"?" LIKE ".q(preg_replace('~[_%[]~','[\0]',$X)):" = ".unconvert_field($q[$z],q($X))));if($y=="sql"&&preg_match('~char|text~',$q[$z]["type"])&&preg_match("~[^ -@]~",$X))$J[]="$d = ".q($X)." COLLATE ".charset($g)."_bin";}foreach((array)$Z["null"]as$z)$J[]=escape_key($z)." IS NULL";return
-implode(" AND ",$J);}function
-where_check($X,$q=array()){parse_str($X,$db);remove_slashes(array(&$db));return
-where($db,$q);}function
-where_link($t,$d,$Y,$nf="="){return"&where%5B$t%5D%5Bcol%5D=".urlencode($d)."&where%5B$t%5D%5Bop%5D=".urlencode(($Y!==null?$nf:"IS NULL"))."&where%5B$t%5D%5Bval%5D=".urlencode($Y);}function
-convert_fields($e,$q,$M=array()){$J="";foreach($e
-as$z=>$X){if($M&&!in_array(idf_escape($z),$M))continue;$Ha=convert_field($q[$z]);if($Ha)$J.=", $Ha AS ".idf_escape($z);}return$J;}function
-cookie($D,$Y,$re=2592000){global$ba;return
-header("Set-Cookie: $D=".urlencode($Y).($re?"; expires=".gmdate("D, d M Y H:i:s",time()+$re)." GMT":"")."; path=".preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]).($ba?"; secure":"")."; HttpOnly; SameSite=lax",false);}function
+get_vals($G,$d=0){global$g;$I=array();$H=$g->query($G);if(is_object($H)){while($J=$H->fetch_row())$I[]=$J[$d];}return$I;}function
+get_key_vals($G,$h=null,$lh=true){global$g;if(!is_object($h))$h=$g;$I=array();$H=$h->query($G);if(is_object($H)){while($J=$H->fetch_row()){if($lh)$I[$J[0]]=$J[1];else$I[]=$J[0];}}return$I;}function
+get_rows($G,$h=null,$n="
"){global$g;$yb=(is_object($h)?$h:$g);$I=array();$H=$yb->query($G);if(is_object($H)){while($J=$H->fetch_assoc())$I[]=$J;}elseif(!$H&&!is_object($h)&&$n&&defined("PAGE_HEADER"))echo$n.error()."\n";return$I;}function
+unique_array($J,$w){foreach($w
+as$v){if(preg_match("~PRIMARY|UNIQUE~",$v["type"])){$I=array();foreach($v["columns"]as$y){if(!isset($J[$y]))continue
+2;$I[$y]=$J[$y];}return$I;}}}function
+escape_key($y){if(preg_match('(^([\w(]+)('.str_replace("_",".*",preg_quote(idf_escape("_"))).')([ \w)]+)$)',$y,$B))return$B[1].idf_escape(idf_unescape($B[2])).$B[3];return
+idf_escape($y);}function
+where($Z,$p=array()){global$g,$x;$I=array();foreach((array)$Z["where"]as$y=>$X){$y=bracket_escape($y,1);$d=escape_key($y);$I[]=$d.($x=="sql"&&preg_match('~^[0-9]*\.[0-9]*$~',$X)?" LIKE ".q(addcslashes($X,"%_\\")):($x=="mssql"?" LIKE ".q(preg_replace('~[_%[]~','[\0]',$X)):" = ".unconvert_field($p[$y],q($X))));if($x=="sql"&&preg_match('~char|text~',$p[$y]["type"])&&preg_match("~[^ -@]~",$X))$I[]="$d = ".q($X)." COLLATE ".charset($g)."_bin";}foreach((array)$Z["null"]as$y)$I[]=escape_key($y)." IS NULL";return
+implode(" AND ",$I);}function
+where_check($X,$p=array()){parse_str($X,$db);remove_slashes(array(&$db));return
+where($db,$p);}function
+where_link($s,$d,$Y,$rf="="){return"&where%5B$s%5D%5Bcol%5D=".urlencode($d)."&where%5B$s%5D%5Bop%5D=".urlencode(($Y!==null?$rf:"IS NULL"))."&where%5B$s%5D%5Bval%5D=".urlencode($Y);}function
+convert_fields($e,$p,$L=array()){$I="";foreach($e
+as$y=>$X){if($L&&!in_array(idf_escape($y),$L))continue;$Ha=convert_field($p[$y]);if($Ha)$I.=", $Ha AS ".idf_escape($y);}return$I;}function
+cookie($C,$Y,$ve=2592000){global$ba;return
+header("Set-Cookie: $C=".urlencode($Y).($ve?"; expires=".gmdate("D, d M Y H:i:s",time()+$ve)." GMT":"")."; path=".preg_replace('~\?.*~','',$_SERVER["REQUEST_URI"]).($ba?"; secure":"")."; HttpOnly; SameSite=lax",false);}function
restart_session(){if(!ini_bool("session.use_cookies"))session_start();}function
-stop_session(){if(!ini_bool("session.use_cookies"))session_write_close();}function&get_session($z){return$_SESSION[$z][DRIVER][SERVER][$_GET["username"]];}function
-set_session($z,$X){$_SESSION[$z][DRIVER][SERVER][$_GET["username"]]=$X;}function
-auth_url($Pi,$O,$V,$m=null){global$ec;preg_match('~([^?]*)\\??(.*)~',remove_from_uri(implode("|",array_keys($ec))."|username|".($m!==null?"db|":"").session_name()),$C);return"$C[1]?".(sid()?SID."&":"").($Pi!="server"||$O!=""?urlencode($Pi)."=".urlencode($O)."&":"")."username=".urlencode($V).($m!=""?"&db=".urlencode($m):"").($C[2]?"&$C[2]":"");}function
+stop_session($cd=false){if(!ini_bool("session.use_cookies")||($cd&&@ini_set("session.use_cookies",false)!==false))session_write_close();}function&get_session($y){return$_SESSION[$y][DRIVER][SERVER][$_GET["username"]];}function
+set_session($y,$X){$_SESSION[$y][DRIVER][SERVER][$_GET["username"]]=$X;}function
+auth_url($Ti,$N,$V,$l=null){global$fc;preg_match('~([^?]*)\??(.*)~',remove_from_uri(implode("|",array_keys($fc))."|username|".($l!==null?"db|":"").session_name()),$B);return"$B[1]?".(sid()?SID."&":"").($Ti!="server"||$N!=""?urlencode($Ti)."=".urlencode($N)."&":"")."username=".urlencode($V).($l!=""?"&db=".urlencode($l):"").($B[2]?"&$B[2]":"");}function
is_ajax(){return($_SERVER["HTTP_X_REQUESTED_WITH"]=="XMLHttpRequest");}function
-redirect($B,$Ge=null){if($Ge!==null){restart_session();$_SESSION["messages"][preg_replace('~^[^?]*~','',($B!==null?$B:$_SERVER["REQUEST_URI"]))][]=$Ge;}if($B!==null){if($B=="")$B=".";header("Location: $B");exit;}}function
-query_redirect($H,$B,$Ge,$vg=true,$Cc=true,$Nc=false,$Wh=""){global$g,$o,$b;if($Cc){$vh=microtime(true);$Nc=!$g->query($H);$Wh=format_time($vh);}$qh="";if($H)$qh=$b->messageQuery($H,$Wh,$Nc);if($Nc){$o=error().$qh.script("messagesPrint();");return
-false;}if($vg)redirect($B,$Ge.$qh);return
+redirect($A,$Ke=null){if($Ke!==null){restart_session();$_SESSION["messages"][preg_replace('~^[^?]*~','',($A!==null?$A:$_SERVER["REQUEST_URI"]))][]=$Ke;}if($A!==null){if($A=="")$A=".";header("Location: $A");exit;}}function
+query_redirect($G,$A,$Ke,$zg=true,$Dc=true,$Oc=false,$ai=""){global$g,$n,$b;if($Dc){$_h=microtime(true);$Oc=!$g->query($G);$ai=format_time($_h);}$vh="";if($G)$vh=$b->messageQuery($G,$ai,$Oc);if($Oc){$n=error().$vh.script("messagesPrint();");return
+false;}if($zg)redirect($A,$Ke.$vh);return
true;}function
-queries($H){global$g;static$og=array();static$vh;if(!$vh)$vh=microtime(true);if($H===null)return
-array(implode("\n",$og),format_time($vh));$og[]=(preg_match('~;$~',$H)?"DELIMITER ;;\n$H;\nDELIMITER ":$H).";";return$g->query($H);}function
-apply_queries($H,$T,$zc='table'){foreach($T
-as$R){if(!queries("$H ".$zc($R)))return
+queries($G){global$g;static$sg=array();static$_h;if(!$_h)$_h=microtime(true);if($G===null)return
+array(implode("\n",$sg),format_time($_h));$sg[]=(preg_match('~;$~',$G)?"DELIMITER ;;\n$G;\nDELIMITER ":$G).";";return$g->query($G);}function
+apply_queries($G,$T,$_c='table'){foreach($T
+as$R){if(!queries("$G ".$_c($R)))return
false;}return
true;}function
-queries_redirect($B,$Ge,$vg){list($og,$Wh)=queries(null);return
-query_redirect($og,$B,$Ge,$vg,false,!$vg,$Wh);}function
-format_time($vh){return
-lang(1,max(0,microtime(true)-$vh));}function
-remove_from_uri($Gf=""){return
-substr(preg_replace("~(?<=[?&])($Gf".(SID?"":"|".session_name()).")=[^&]*&~",'',"$_SERVER[REQUEST_URI]&"),0,-1);}function
-pagination($F,$Jb){return" ".($F==$Jb?$F+1:''.($F+1)." ");}function
-get_file($z,$Rb=false){$Tc=$_FILES[$z];if(!$Tc)return
-null;foreach($Tc
-as$z=>$X)$Tc[$z]=(array)$X;$J='';foreach($Tc["error"]as$z=>$o){if($o)return$o;$D=$Tc["name"][$z];$ei=$Tc["tmp_name"][$z];$_b=file_get_contents($Rb&&preg_match('~\\.gz$~',$D)?"compress.zlib://$ei":$ei);if($Rb){$vh=substr($_b,0,3);if(function_exists("iconv")&&preg_match("~^\xFE\xFF|^\xFF\xFE~",$vh,$Ag))$_b=iconv("utf-16","utf-8",$_b);elseif($vh=="\xEF\xBB\xBF")$_b=substr($_b,3);$J.=$_b."\n\n";}else$J.=$_b;}return$J;}function
-upload_error($o){$De=($o==UPLOAD_ERR_INI_SIZE?ini_get("upload_max_filesize"):0);return($o?lang(2).($De?" ".lang(3,$De):""):lang(4));}function
-repeat_pattern($Tf,$pe){return
-str_repeat("$Tf{0,65535}",$pe/65535)."$Tf{0,".($pe%65535)."}";}function
-is_utf8($X){return(preg_match('~~u',$X)&&!preg_match('~[\\0-\\x8\\xB\\xC\\xE-\\x1F]~',$X));}function
-shorten_utf8($Q,$pe=80,$Ch=""){if(!preg_match("(^(".repeat_pattern("[\t\r\n -\x{10FFFF}]",$pe).")($)?)u",$Q,$C))preg_match("(^(".repeat_pattern("[\t\r\n -~]",$pe).")($)?)",$Q,$C);return
-h($C[1]).$Ch.(isset($C[2])?"":"... ");}function
+queries_redirect($A,$Ke,$zg){list($sg,$ai)=queries(null);return
+query_redirect($sg,$A,$Ke,$zg,false,!$zg,$ai);}function
+format_time($_h){return
+lang(1,max(0,microtime(true)-$_h));}function
+remove_from_uri($Kf=""){return
+substr(preg_replace("~(?<=[?&])($Kf".(SID?"":"|".session_name()).")=[^&]*&~",'',"$_SERVER[REQUEST_URI]&"),0,-1);}function
+pagination($E,$Kb){return" ".($E==$Kb?$E+1:''.($E+1)." ");}function
+get_file($y,$Sb=false){$Uc=$_FILES[$y];if(!$Uc)return
+null;foreach($Uc
+as$y=>$X)$Uc[$y]=(array)$X;$I='';foreach($Uc["error"]as$y=>$n){if($n)return$n;$C=$Uc["name"][$y];$ii=$Uc["tmp_name"][$y];$_b=file_get_contents($Sb&&preg_match('~\.gz$~',$C)?"compress.zlib://$ii":$ii);if($Sb){$_h=substr($_b,0,3);if(function_exists("iconv")&&preg_match("~^\xFE\xFF|^\xFF\xFE~",$_h,$Eg))$_b=iconv("utf-16","utf-8",$_b);elseif($_h=="\xEF\xBB\xBF")$_b=substr($_b,3);$I.=$_b."\n\n";}else$I.=$_b;}return$I;}function
+upload_error($n){$He=($n==UPLOAD_ERR_INI_SIZE?ini_get("upload_max_filesize"):0);return($n?lang(2).($He?" ".lang(3,$He):""):lang(4));}function
+repeat_pattern($Xf,$te){return
+str_repeat("$Xf{0,65535}",$te/65535)."$Xf{0,".($te%65535)."}";}function
+is_utf8($X){return(preg_match('~~u',$X)&&!preg_match('~[\0-\x8\xB\xC\xE-\x1F]~',$X));}function
+shorten_utf8($Q,$te=80,$Gh=""){if(!preg_match("(^(".repeat_pattern("[\t\r\n -\x{10FFFF}]",$te).")($)?)u",$Q,$B))preg_match("(^(".repeat_pattern("[\t\r\n -~]",$te).")($)?)",$Q,$B);return
+h($B[1]).$Gh.(isset($B[2])?"":"... ");}function
format_number($X){return
strtr(number_format($X,0,".",lang(5)),preg_split('~~u',lang(6),-1,PREG_SPLIT_NO_EMPTY));}function
friendly_url($X){return
preg_replace('~[^a-z0-9_]~i','-',$X);}function
-hidden_fields($jg,$Bd=array()){$J=false;while(list($z,$X)=each($jg)){if(!in_array($z,$Bd)){if(is_array($X)){foreach($X
-as$Yd=>$W)$jg[$z."[$Yd]"]=$W;}else{$J=true;echo' ';}}}return$J;}function
+hidden_fields($ng,$Fd=array()){$I=false;while(list($y,$X)=each($ng)){if(!in_array($y,$Fd)){if(is_array($X)){foreach($X
+as$ce=>$W)$ng[$y."[$ce]"]=$W;}else{$I=true;echo' ';}}}return$I;}function
hidden_fields_get(){echo(sid()?' ':''),(SERVER!==null?' ':""),' ';}function
-table_status1($R,$Oc=false){$J=table_status($R,$Oc);return($J?$J:array("Name"=>$R));}function
-column_foreign_keys($R){global$b;$J=array();foreach($b->foreignKeys($R)as$r){foreach($r["source"]as$X)$J[$X][]=$r;}return$J;}function
-enum_input($U,$Ka,$p,$Y,$tc=null){global$b;preg_match_all("~'((?:[^']|'')*)'~",$p["length"],$ze);$J=($tc!==null?"".lang(7)." ":"");foreach($ze[1]as$t=>$X){$X=stripcslashes(str_replace("''","'",$X));$fb=(is_int($Y)?$Y==$t+1:(is_array($Y)?in_array($t+1,$Y):$Y===$X));$J.=" '.h($b->editVal($X,$p)).' ';}return$J;}function
-input($p,$Y,$s){global$vi,$b,$y;$D=h(bracket_escape($p["field"]));echo"
";if(is_array($Y)&&!$s){$Fa=array($Y);if(version_compare(PHP_VERSION,5.4)>=0)$Fa[]=JSON_PRETTY_PRINT;$Y=call_user_func_array('json_encode',$Fa);$s="json";}$Eg=($y=="mssql"&&$p["auto_increment"]);if($Eg&&!$_POST["save"])$s=null;$jd=(isset($_GET["select"])||$Eg?array("orig"=>lang(8)):array())+$b->editFunctions($p);$Ka=" name='fields[$D]'";if($p["type"]=="enum")echo
-nbsp($jd[""])." ".$b->editInput($_GET["edit"],$p,$Ka,$Y);else{$sd=(in_array($s,$jd)||isset($jd[$s]));echo(count($jd)>1?"".optionlist($jd,$s===null||$sd?$s:"")." ".on_help("getTarget(event).value.replace(/^SQL\$/, '')",1).script("qsl('select').onchange = functionChange;",""):nbsp(reset($jd))).' ';$Nd=$b->editInput($_GET["edit"],$p,$Ka,$Y);if($Nd!="")echo$Nd;elseif(preg_match('~bool~',$p["type"]))echo" "." ";elseif($p["type"]=="set"){preg_match_all("~'((?:[^']|'')*)'~",$p["length"],$ze);foreach($ze[1]as$t=>$X){$X=stripcslashes(str_replace("''","'",$X));$fb=(is_int($Y)?($Y>>$t)&1:in_array($X,explode(",",$Y),true));echo" ".h($b->editVal($X,$p)).' ';}}elseif(preg_match('~blob|bytea|raw|file~',$p["type"])&&ini_bool("file_uploads"))echo" ";elseif(($Uh=preg_match('~text|lob~',$p["type"]))||preg_match("~\n~",$Y)){if($Uh&&$y!="sqlite")$Ka.=" cols='50' rows='12'";else{$L=min(12,substr_count($Y,"\n")+1);$Ka.=" cols='30' rows='$L'".($L==1?" style='height: 1.2em;'":"");}echo"';}elseif($s=="json"||preg_match('~^jsonb?$~',$p["type"]))echo"';else{$Fe=(!preg_match('~int~',$p["type"])&&preg_match('~^(\\d+)(,(\\d+))?$~',$p["length"],$C)?((preg_match("~binary~",$p["type"])?2:1)*$C[1]+($C[3]?1:0)+($C[2]&&!$p["unsigned"]?1:0)):($vi[$p["type"]]?$vi[$p["type"]]+($p["unsigned"]?0:1):0));if($y=='sql'&&min_version(5.6)&&preg_match('~time~',$p["type"]))$Fe+=7;echo" 20?" size='40'":"")."$Ka>";}echo$b->editHint($_GET["edit"],$p,$Y);$Wc=0;foreach($jd
-as$z=>$X){if($z===""||!$X)break;$Wc++;}if($Wc)echo
-script("mixin(qsl('td'), {onchange: partial(skipOriginal, $Wc), oninput: function () { this.onchange(); }});");}}function
-process_input($p){global$b,$n;$v=bracket_escape($p["field"]);$s=$_POST["function"][$v];$Y=$_POST["fields"][$v];if($p["type"]=="enum"){if($Y==-1)return
-false;if($Y=="")return"NULL";return+$Y;}if($p["auto_increment"]&&$Y=="")return
-null;if($s=="orig")return($p["on_update"]=="CURRENT_TIMESTAMP"?idf_escape($p["field"]):false);if($s=="NULL")return"NULL";if($p["type"]=="set")return
-array_sum((array)$Y);if($s=="json"){$s="";$Y=json_decode($Y,true);if(!is_array($Y))return
-false;return$Y;}if(preg_match('~blob|bytea|raw|file~',$p["type"])&&ini_bool("file_uploads")){$Tc=get_file("fields-$v");if(!is_string($Tc))return
-false;return$n->quoteBinary($Tc);}return$b->processInput($p,$Y,$s);}function
-fields_from_edit(){global$n;$J=array();foreach((array)$_POST["field_keys"]as$z=>$X){if($X!=""){$X=bracket_escape($X);$_POST["function"][$X]=$_POST["field_funs"][$z];$_POST["fields"][$X]=$_POST["field_vals"][$z];}}foreach((array)$_POST["fields"]as$z=>$X){$D=bracket_escape($z,1);$J[$D]=array("field"=>$D,"privileges"=>array("insert"=>1,"update"=>1),"null"=>1,"auto_increment"=>($z==$n->primary),);}return$J;}function
-search_tables(){global$b,$g;$_GET["where"][0]["val"]=$_POST["query"];$bh="")."\n";}function
-dump_headers($_d,$Pe=false){global$b;$J=$b->dumpHeaders($_d,$Pe);$Df=$_POST["output"];if($Df!="text")header("Content-Disposition: attachment; filename=".$b->dumpFilename($_d).".$J".($Df!="file"&&!preg_match('~[^0-9a-z]~',$Df)?".$Df":""));session_write_close();ob_flush();flush();return$J;}function
-dump_csv($K){foreach($K
-as$z=>$X){if(preg_match("~[\"\n,;\t]~",$X)||$X==="")$K[$z]='"'.str_replace('"','""',$X).'"';}echo
-implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$K)."\r\n";}function
-apply_sql_function($s,$d){return($s?($s=="unixepoch"?"DATETIME($d, '$s')":($s=="count distinct"?"COUNT(DISTINCT ":strtoupper("$s("))."$d)"):$d);}function
-get_temp_dir(){$J=ini_get("upload_tmp_dir");if(!$J){if(function_exists('sys_get_temp_dir'))$J=sys_get_temp_dir();else{$Uc=@tempnam("","");if(!$Uc)return
-false;$J=dirname($Uc);unlink($Uc);}}return$J;}function
-file_open_lock($Uc){$hd=@fopen($Uc,"r+");if(!$hd){$hd=@fopen($Uc,"w");if(!$hd)return;chmod($Uc,0660);}flock($hd,LOCK_EX);return$hd;}function
-file_write_unlock($hd,$Lb){rewind($hd);fwrite($hd,$Lb);ftruncate($hd,strlen($Lb));flock($hd,LOCK_UN);fclose($hd);}function
-password_file($i){$Uc=get_temp_dir()."/adminer.key";$J=@file_get_contents($Uc);if($J||!$i)return$J;$hd=@fopen($Uc,"w");if($hd){chmod($Uc,0660);$J=rand_string();fwrite($hd,$J);fclose($hd);}return$J;}function
+table_status1($R,$Pc=false){$I=table_status($R,$Pc);return($I?$I:array("Name"=>$R));}function
+column_foreign_keys($R){global$b;$I=array();foreach($b->foreignKeys($R)as$q){foreach($q["source"]as$X)$I[$X][]=$q;}return$I;}function
+enum_input($U,$Ka,$o,$Y,$uc=null){global$b;preg_match_all("~'((?:[^']|'')*)'~",$o["length"],$Ce);$I=($uc!==null?"".lang(7)." ":"");foreach($Ce[1]as$s=>$X){$X=stripcslashes(str_replace("''","'",$X));$fb=(is_int($Y)?$Y==$s+1:(is_array($Y)?in_array($s+1,$Y):$Y===$X));$I.=" '.h($b->editVal($X,$o)).' ';}return$I;}function
+input($o,$Y,$r){global$zi,$b,$x;$C=h(bracket_escape($o["field"]));echo" ";if(is_array($Y)&&!$r){$Fa=array($Y);if(version_compare(PHP_VERSION,5.4)>=0)$Fa[]=JSON_PRETTY_PRINT;$Y=call_user_func_array('json_encode',$Fa);$r="json";}$Ig=($x=="mssql"&&$o["auto_increment"]);if($Ig&&!$_POST["save"])$r=null;$ld=(isset($_GET["select"])||$Ig?array("orig"=>lang(8)):array())+$b->editFunctions($o);$Ka=" name='fields[$C]'";if($o["type"]=="enum")echo
+h($ld[""])." ".$b->editInput($_GET["edit"],$o,$Ka,$Y);else{$vd=(in_array($r,$ld)||isset($ld[$r]));echo(count($ld)>1?"".optionlist($ld,$r===null||$vd?$r:"")." ".on_help("getTarget(event).value.replace(/^SQL\$/, '')",1).script("qsl('select').onchange = functionChange;",""):h(reset($ld))).' ';$Rd=$b->editInput($_GET["edit"],$o,$Ka,$Y);if($Rd!="")echo$Rd;elseif(preg_match('~bool~',$o["type"]))echo" "." ";elseif($o["type"]=="set"){preg_match_all("~'((?:[^']|'')*)'~",$o["length"],$Ce);foreach($Ce[1]as$s=>$X){$X=stripcslashes(str_replace("''","'",$X));$fb=(is_int($Y)?($Y>>$s)&1:in_array($X,explode(",",$Y),true));echo" ".h($b->editVal($X,$o)).' ';}}elseif(preg_match('~blob|bytea|raw|file~',$o["type"])&&ini_bool("file_uploads"))echo" ";elseif(($Yh=preg_match('~text|lob~',$o["type"]))||preg_match("~\n~",$Y)){if($Yh&&$x!="sqlite")$Ka.=" cols='50' rows='12'";else{$K=min(12,substr_count($Y,"\n")+1);$Ka.=" cols='30' rows='$K'".($K==1?" style='height: 1.2em;'":"");}echo"';}elseif($r=="json"||preg_match('~^jsonb?$~',$o["type"]))echo"';else{$Je=(!preg_match('~int~',$o["type"])&&preg_match('~^(\d+)(,(\d+))?$~',$o["length"],$B)?((preg_match("~binary~",$o["type"])?2:1)*$B[1]+($B[3]?1:0)+($B[2]&&!$o["unsigned"]?1:0)):($zi[$o["type"]]?$zi[$o["type"]]+($o["unsigned"]?0:1):0));if($x=='sql'&&min_version(5.6)&&preg_match('~time~',$o["type"]))$Je+=7;echo" 20?" size='40'":"")."$Ka>";}echo$b->editHint($_GET["edit"],$o,$Y);$Xc=0;foreach($ld
+as$y=>$X){if($y===""||!$X)break;$Xc++;}if($Xc)echo
+script("mixin(qsl('td'), {onchange: partial(skipOriginal, $Xc), oninput: function () { this.onchange(); }});");}}function
+process_input($o){global$b,$m;$u=bracket_escape($o["field"]);$r=$_POST["function"][$u];$Y=$_POST["fields"][$u];if($o["type"]=="enum"){if($Y==-1)return
+false;if($Y=="")return"NULL";return+$Y;}if($o["auto_increment"]&&$Y=="")return
+null;if($r=="orig")return($o["on_update"]=="CURRENT_TIMESTAMP"?idf_escape($o["field"]):false);if($r=="NULL")return"NULL";if($o["type"]=="set")return
+array_sum((array)$Y);if($r=="json"){$r="";$Y=json_decode($Y,true);if(!is_array($Y))return
+false;return$Y;}if(preg_match('~blob|bytea|raw|file~',$o["type"])&&ini_bool("file_uploads")){$Uc=get_file("fields-$u");if(!is_string($Uc))return
+false;return$m->quoteBinary($Uc);}return$b->processInput($o,$Y,$r);}function
+fields_from_edit(){global$m;$I=array();foreach((array)$_POST["field_keys"]as$y=>$X){if($X!=""){$X=bracket_escape($X);$_POST["function"][$X]=$_POST["field_funs"][$y];$_POST["fields"][$X]=$_POST["field_vals"][$y];}}foreach((array)$_POST["fields"]as$y=>$X){$C=bracket_escape($y,1);$I[$C]=array("field"=>$C,"privileges"=>array("insert"=>1,"update"=>1),"null"=>1,"auto_increment"=>($y==$m->primary),);}return$I;}function
+search_tables(){global$b,$g;$_GET["where"][0]["val"]=$_POST["query"];$fh="")."\n";}function
+dump_headers($Dd,$Te=false){global$b;$I=$b->dumpHeaders($Dd,$Te);$Hf=$_POST["output"];if($Hf!="text")header("Content-Disposition: attachment; filename=".$b->dumpFilename($Dd).".$I".($Hf!="file"&&!preg_match('~[^0-9a-z]~',$Hf)?".$Hf":""));session_write_close();ob_flush();flush();return$I;}function
+dump_csv($J){foreach($J
+as$y=>$X){if(preg_match("~[\"\n,;\t]~",$X)||$X==="")$J[$y]='"'.str_replace('"','""',$X).'"';}echo
+implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$J)."\r\n";}function
+apply_sql_function($r,$d){return($r?($r=="unixepoch"?"DATETIME($d, '$r')":($r=="count distinct"?"COUNT(DISTINCT ":strtoupper("$r("))."$d)"):$d);}function
+get_temp_dir(){$I=ini_get("upload_tmp_dir");if(!$I){if(function_exists('sys_get_temp_dir'))$I=sys_get_temp_dir();else{$Vc=@tempnam("","");if(!$Vc)return
+false;$I=dirname($Vc);unlink($Vc);}}return$I;}function
+file_open_lock($Vc){$jd=@fopen($Vc,"r+");if(!$jd){$jd=@fopen($Vc,"w");if(!$jd)return;chmod($Vc,0660);}flock($jd,LOCK_EX);return$jd;}function
+file_write_unlock($jd,$Mb){rewind($jd);fwrite($jd,$Mb);ftruncate($jd,strlen($Mb));flock($jd,LOCK_UN);fclose($jd);}function
+password_file($i){$Vc=get_temp_dir()."/adminer.key";$I=@file_get_contents($Vc);if($I||!$i)return$I;$jd=@fopen($Vc,"w");if($jd){chmod($Vc,0660);$I=rand_string();fwrite($jd,$I);fclose($jd);}return$I;}function
rand_string(){return
md5(uniqid(mt_rand(),true));}function
-select_value($X,$A,$p,$Vh){global$b;if(is_array($X)){$J="";foreach($X
-as$Yd=>$W)$J.=" ".($X!=array_values($X)?"".h($Yd):"")." ".select_value($W,$A,$p,$Vh);return"";}if(!$A)$A=$b->selectLink($X,$p);if($A===null){if(is_mail($X))$A="mailto:$X";if(is_url($X))$A=$X;}$J=$b->editVal($X,$p);if($J!==null){if($J==="")$J=" ";elseif(!is_utf8($J))$J="\0";elseif($Vh!=""&&is_shortable($p))$J=shorten_utf8($J,max(0,+$Vh));else$J=h($J);}return$b->selectVal($J,$A,$p,$X);}function
-is_mail($qc){$Ia='[-a-z0-9!#$%&\'*+/=?^_`{|}~]';$dc='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';$Tf="$Ia+(\\.$Ia+)*@($dc?\\.)+$dc";return
-is_string($qc)&&preg_match("(^$Tf(,\\s*$Tf)*\$)i",$qc);}function
-is_url($Q){$dc='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';return
-preg_match("~^(https?)://($dc?\\.)+$dc(:\\d+)?(/.*)?(\\?.*)?(#.*)?\$~i",$Q);}function
-is_shortable($p){return
-preg_match('~char|text|json|lob|geometry|point|linestring|polygon|string|bytea~',$p["type"]);}function
-count_rows($R,$Z,$Td,$md){global$y;$H=" FROM ".table($R).($Z?" WHERE ".implode(" AND ",$Z):"");return($Td&&($y=="sql"||count($md)==1)?"SELECT COUNT(DISTINCT ".implode(", ",$md).")$H":"SELECT COUNT(*)".($Td?" FROM (SELECT 1$H GROUP BY ".implode(", ",$md).") x":$H));}function
-slow_query($H){global$b,$gi;$m=$b->database();$Xh=$b->queryTimeout();if(support("kill")&&is_object($h=connect())&&($m==""||$h->select_db($m))){$de=$h->result(connection_id());echo'
-';}else$h=null;ob_flush();flush();$J=@get_key_vals($H,$h,$Xh,false);if($h){echo
-script("clearTimeout(timeout);");ob_flush();flush();}return$J;}function
-get_token(){$rg=rand(1,1e6);return($rg^$_SESSION["token"]).":$rg";}function
-verify_token(){list($gi,$rg)=explode(":",$_POST["token"]);return($rg^$_SESSION["token"])==$gi;}function
-lzw_decompress($Sa){$Zb=256;$Ta=8;$mb=array();$Gg=0;$Hg=0;for($t=0;$t=$Ta){$Hg-=$Ta;$mb[]=$Gg>>$Hg;$Gg&=(1<<$Hg)-1;$Zb++;if($Zb>>$Ta)$Ta++;}}$Yb=range("\0","\xFF");$J="";foreach($mb
-as$t=>$lb){$pc=$Yb[$lb];if(!isset($pc))$pc=$ej.$ej[0];$J.=$pc;if($t)$Yb[]=$ej.$pc[0];$ej=$pc;}return$J;}function
-on_help($tb,$ih=0){return
-script("mixin(qsl('select, input'), {onmouseover: function (event) { helpMouseover.call(this, event, $tb, $ih) }, onmouseout: helpMouseout});","");}function
-edit_form($a,$q,$K,$Ci){global$b,$y,$gi,$o;$Hh=$b->tableName(table_status1($a,true));page_header(($Ci?lang(10):lang(11)),$o,array("select"=>array($a,$Hh)),$Hh);if($K===false)echo"".lang(12)."\n";echo'