Untitled

From Turkhacks, 4 Months ago, written in Plain Text, viewed 169 times.
URL http://paste.security-portal.cz/view/4c779c90 Embed
Download Paste or View Raw
  1. <?php
  2. /** Adminer - Compact database management
  3. * @link https://www.adminer.org/
  4. * @author Jakub Vrana, https://www.vrana.cz/
  5. * @copyright 2007 Jakub Vrana
  6. * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  7. * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
  8. * @version 4.6.2
  9. */error_reporting(6135);$tc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($tc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Qg=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Qg)$$X=$Qg;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function
  10. connection(){global$e;return$e;}function
  11. adminer(){global$b;return$b;}function
  12. version(){global$ga;return$ga;}function
  13. idf_unescape($Qc){$md=substr($Qc,-1);return
  14. str_replace($md.$md,$md,substr($Qc,1,-1));}function
  15. escape_string($X){return
  16. substr(q($X),1,-1);}function
  17. number($X){return
  18. preg_replace('~[^0-9]+~','',$X);}function
  19. number_type(){return'((?<!o)int(?!er)|numeric|real|float|double|decimal|money)';}function
  20. remove_slashes($Ye,$tc=false){if(get_magic_quotes_gpc()){while(list($z,$X)=each($Ye)){foreach($X
  21. as$fd=>$W){unset($Ye[$z][$fd]);if(is_array($W)){$Ye[$z][stripslashes($fd)]=$W;$Ye[]=&$Ye[$z][stripslashes($fd)];}else$Ye[$z][stripslashes($fd)]=($tc?$W:stripslashes($W));}}}}function
  22. bracket_escape($Qc,$_a=false){static$Eg=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return
  23. strtr($Qc,($_a?array_flip($Eg):$Eg));}function
  24. min_version($eh,$zd="",$f=null){global$e;if(!$f)$f=$e;$Gf=$f->server_info;if($zd&&preg_match('~([\d.]+)-MariaDB~',$Gf,$C)){$Gf=$C[1];$eh=$zd;}return(version_compare($Gf,$eh)>=0);}function
  25. charset($e){return(min_version("5.5.3",0,$e)?"utf8mb4":"utf8");}function
  26. script($Nf,$Dg="\n"){return"<script".nonce().">$Nf</script>$Dg";}function
  27. script_src($Vg){return"<script src='".h($Vg)."'".nonce()."></script>\n";}function
  28. nonce(){return' nonce="'.get_nonce().'"';}function
  29. target_blank(){return' target="_blank" rel="noreferrer noopener"';}function
  30. h($Xf){return
  31. str_replace("\0","&#0;",htmlspecialchars($Xf,ENT_QUOTES,'utf-8'));}function
  32. nbsp($Xf){return(trim($Xf)!=""?h($Xf):"&nbsp;");}function
  33. nl_br($Xf){return
  34. str_replace("\n","<br>",$Xf);}function
  35. checkbox($E,$Y,$Na,$jd="",$ie="",$Ra="",$kd=""){$K="<input type='checkbox' name='$E' value='".h($Y)."'".($Na?" checked":"").($kd?" aria-labelledby='$kd'":"").">".($ie?script("qsl('input').onclick = function () { $ie };",""):"");return($jd!=""||$Ra?"<label".($Ra?" class='$Ra'":"").">$K".h($jd)."</label>":$K);}function
  36. optionlist($me,$Bf=null,$Yg=false){$K="";foreach($me
  37. as$fd=>$W){$ne=array($fd=>$W);if(is_array($W)){$K.='<optgroup label="'.h($fd).'">';$ne=$W;}foreach($ne
  38. as$z=>$X)$K.='<option'.($Yg||is_string($z)?' value="'.h($z).'"':'').(($Yg||is_string($z)?(string)$z:$X)===$Bf?' selected':'').'>'.h($X);if(is_array($W))$K.='</optgroup>';}return$K;}function
  39. html_select($E,$me,$Y="",$he=true,$kd=""){if($he)return"<select name='".h($E)."'".($kd?" aria-labelledby='$kd'":"").">".optionlist($me,$Y)."</select>".(is_string($he)?script("qsl('select').onchange = function () { $he };",""):"");$K="";foreach($me
  40. as$z=>$X)$K.="<label><input type='radio' name='".h($E)."' value='".h($z)."'".($z==$Y?" checked":"").">".h($X)."</label>";return$K;}function
  41. select_input($wa,$me,$Y="",$he="",$Le=""){$mg=($me?"select":"input");return"<$mg$wa".($me?"><option value=''>$Le".optionlist($me,$Y,true)."</select>":" size='10' value='".h($Y)."' placeholder='$Le'>").($he?script("qsl('$mg').onchange = $he;",""):"");}function
  42. confirm($D="",$Cf="qsl('input')"){return
  43. script("$Cf.onclick = function () { return confirm('".($D?js_escape($D):'Are you sure?')."'); };","");}function
  44. print_fieldset($u,$rd,$hh=false){echo"<fieldset><legend>","<a href='#fieldset-$u'>$rd</a>",script("qsl('a').onclick = partial(toggle, 'fieldset-$u');",""),"</legend>","<div id='fieldset-$u'".($hh?"":" class='hidden'").">\n";}function
  45. bold($Ga,$Ra=""){return($Ga?" class='active $Ra'":($Ra?" class='$Ra'":""));}function
  46. odd($K=' class="odd"'){static$t=0;if(!$K)$t=-1;return($t++%2?$K:'');}function
  47. js_escape($Xf){return
  48. addcslashes($Xf,"\r\n'\\/");}function
  49. json_row($z,$X=null){static$uc=true;if($uc)echo"{";if($z!=""){echo($uc?"":",")."\n\t\"".addcslashes($z,"\r\n\t\"\\/").'": '.($X!==null?'"'.addcslashes($X,"\r\n\"\\/").'"':'null');$uc=false;}else{echo"\n}\n";$uc=true;}}function
  50. ini_bool($Uc){$X=ini_get($Uc);return(preg_match('~^(on|true|yes)$~i',$X)||(int)$X);}function
  51. sid(){static$K;if($K===null)$K=(SID&&!($_COOKIE&&ini_bool("session.use_cookies")));return$K;}function
  52. set_password($dh,$O,$V,$G){$_SESSION["pwds"][$dh][$O][$V]=($_COOKIE["adminer_key"]&&is_string($G)?array(encrypt_string($G,$_COOKIE["adminer_key"])):$G);}function
  53. get_password(){$K=get_session("pwds");if(is_array($K))$K=($_COOKIE["adminer_key"]?decrypt_string($K[0],$_COOKIE["adminer_key"]):false);return$K;}function
  54. q($Xf){global$e;return$e->quote($Xf);}function
  55. get_vals($I,$c=0){global$e;$K=array();$J=$e->query($I);if(is_object($J)){while($L=$J->fetch_row())$K[]=$L[$c];}return$K;}function
  56. get_key_vals($I,$f=null,$ug=0,$Jf=true){global$e;if(!is_object($f))$f=$e;$K=array();$f->timeout=$ug;$J=$f->query($I);$f->timeout=0;if(is_object($J)){while($L=$J->fetch_row()){if($Jf)$K[$L[0]]=$L[1];else$K[]=$L[0];}}return$K;}function
  57. get_rows($I,$f=null,$k="<p class='error'>"){global$e;$eb=(is_object($f)?$f:$e);$K=array();$J=$eb->query($I);if(is_object($J)){while($L=$J->fetch_assoc())$K[]=$L;}elseif(!$J&&!is_object($f)&&$k&&defined("PAGE_HEADER"))echo$k.error()."\n";return$K;}function
  58. unique_array($L,$w){foreach($w
  59. as$v){if(preg_match("~PRIMARY|UNIQUE~",$v["type"])){$K=array();foreach($v["columns"]as$z){if(!isset($L[$z]))continue
  60. 2;$K[$z]=$L[$z];}return$K;}}}function
  61. 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
  62. idf_escape($z);}function
  63. where($Z,$m=array()){global$e,$y;$K=array();foreach((array)$Z["where"]as$z=>$X){$z=bracket_escape($z,1);$c=escape_key($z);$K[]=$c.($y=="sql"&&preg_match('~^[0-9]*\\.[0-9]*$~',$X)?" LIKE ".q(addcslashes($X,"%_\\")):($y=="mssql"?" LIKE ".q(preg_replace('~[_%[]~','[\0]',$X)):" = ".unconvert_field($m[$z],q($X))));if($y=="sql"&&preg_match('~char|text~',$m[$z]["type"])&&preg_match("~[^ -@]~",$X))$K[]="$c = ".q($X)." COLLATE ".charset($e)."_bin";}foreach((array)$Z["null"]as$z)$K[]=escape_key($z)." IS NULL";return
  64. implode(" AND ",$K);}function
  65. where_check($X,$m=array()){parse_str($X,$Ma);remove_slashes(array(&$Ma));return
  66. where($Ma,$m);}function
  67. where_link($t,$c,$Y,$je="="){return"&where%5B$t%5D%5Bcol%5D=".urlencode($c)."&where%5B$t%5D%5Bop%5D=".urlencode(($Y!==null?$je:"IS NULL"))."&where%5B$t%5D%5Bval%5D=".urlencode($Y);}function
  68. convert_fields($d,$m,$N=array()){$K="";foreach($d
  69. as$z=>$X){if($N&&!in_array(idf_escape($z),$N))continue;$ua=convert_field($m[$z]);if($ua)$K.=", $ua AS ".idf_escape($z);}return$K;}function
  70. cookie($E,$Y,$ud=2592000){global$ba;return
  71. header("Set-Cookie: $E=".urlencode($Y).($ud?"; expires=".gmdate("D, d M Y H:i:s",time()+$ud)." GMT":"")."; path=".preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]).($ba?"; secure":"")."; HttpOnly; SameSite=lax",false);}function
  72. restart_session(){if(!ini_bool("session.use_cookies"))session_start();}function
  73. stop_session(){if(!ini_bool("session.use_cookies"))session_write_close();}function&get_session($z){return$_SESSION[$z][DRIVER][SERVER][$_GET["username"]];}function
  74. set_session($z,$X){$_SESSION[$z][DRIVER][SERVER][$_GET["username"]]=$X;}function
  75. auth_url($dh,$O,$V,$i=null){global$Ib;preg_match('~([^?]*)\\??(.*)~',remove_from_uri(implode("|",array_keys($Ib))."|username|".($i!==null?"db|":"").session_name()),$C);return"$C[1]?".(sid()?SID."&":"").($dh!="server"||$O!=""?urlencode($dh)."=".urlencode($O)."&":"")."username=".urlencode($V).($i!=""?"&db=".urlencode($i):"").($C[2]?"&$C[2]":"");}function
  76. is_ajax(){return($_SERVER["HTTP_X_REQUESTED_WITH"]=="XMLHttpRequest");}function
  77. redirect($B,$D=null){if($D!==null){restart_session();$_SESSION["messages"][preg_replace('~^[^?]*~','',($B!==null?$B:$_SERVER["REQUEST_URI"]))][]=$D;}if($B!==null){if($B=="")$B=".";header("Location: $B");exit;}}function
  78. query_redirect($I,$B,$D,$gf=true,$gc=true,$nc=false,$tg=""){global$e,$k,$b;if($gc){$Tf=microtime(true);$nc=!$e->query($I);$tg=format_time($Tf);}$Pf="";if($I)$Pf=$b->messageQuery($I,$tg,$nc);if($nc){$k=error().$Pf.script("messagesPrint();");return
  79. false;}if($gf)redirect($B,$D.$Pf);return
  80. true;}function
  81. queries($I){global$e;static$bf=array();static$Tf;if(!$Tf)$Tf=microtime(true);if($I===null)return
  82. array(implode("\n",$bf),format_time($Tf));$bf[]=(preg_match('~;$~',$I)?"DELIMITER ;;\n$I;\nDELIMITER ":$I).";";return$e->query($I);}function
  83. apply_queries($I,$S,$cc='table'){foreach($S
  84. as$Q){if(!queries("$I ".$cc($Q)))return
  85. false;}return
  86. true;}function
  87. queries_redirect($B,$D,$gf){list($bf,$tg)=queries(null);return
  88. query_redirect($bf,$B,$D,$gf,false,!$gf,$tg);}function
  89. format_time($Tf){return
  90. sprintf('%.3f s',max(0,microtime(true)-$Tf));}function
  91. remove_from_uri($Ae=""){return
  92. substr(preg_replace("~(?<=[?&])($Ae".(SID?"":"|".session_name()).")=[^&]*&~",'',"$_SERVER[REQUEST_URI]&"),0,-1);}function
  93. pagination($F,$pb){return" ".($F==$pb?$F+1:'<a href="'.h(remove_from_uri("page").($F?"&page=$F".($_GET["next"]?"&next=".urlencode($_GET["next"]):""):"")).'">'.($F+1)."</a>");}function
  94. get_file($z,$xb=false){$rc=$_FILES[$z];if(!$rc)return
  95. null;foreach($rc
  96. as$z=>$X)$rc[$z]=(array)$X;$K='';foreach($rc["error"]as$z=>$k){if($k)return$k;$E=$rc["name"][$z];$Ag=$rc["tmp_name"][$z];$fb=file_get_contents($xb&&preg_match('~\\.gz$~',$E)?"compress.zlib://$Ag":$Ag);if($xb){$Tf=substr($fb,0,3);if(function_exists("iconv")&&preg_match("~^\xFE\xFF|^\xFF\xFE~",$Tf,$mf))$fb=iconv("utf-16","utf-8",$fb);elseif($Tf=="\xEF\xBB\xBF")$fb=substr($fb,3);$K.=$fb."\n\n";}else$K.=$fb;}return$K;}function
  97. upload_error($k){$Ed=($k==UPLOAD_ERR_INI_SIZE?ini_get("upload_max_filesize"):0);return($k?'Unable to upload a file.'.($Ed?" ".sprintf('Maximum allowed file size is %sB.',$Ed):""):'File does not exist.');}function
  98. repeat_pattern($Je,$sd){return
  99. str_repeat("$Je{0,65535}",$sd/65535)."$Je{0,".($sd%65535)."}";}function
  100. is_utf8($X){return(preg_match('~~u',$X)&&!preg_match('~[\\0-\\x8\\xB\\xC\\xE-\\x1F]~',$X));}function
  101. shorten_utf8($Xf,$sd=80,$bg=""){if(!preg_match("(^(".repeat_pattern("[\t\r\n -\x{10FFFF}]",$sd).")($)?)u",$Xf,$C))preg_match("(^(".repeat_pattern("[\t\r\n -~]",$sd).")($)?)",$Xf,$C);return
  102. h($C[1]).$bg.(isset($C[2])?"":"<i>...</i>");}function
  103. format_number($X){return
  104. strtr(number_format($X,0,".",','),preg_split('~~u','0123456789',-1,PREG_SPLIT_NO_EMPTY));}function
  105. friendly_url($X){return
  106. preg_replace('~[^a-z0-9_]~i','-',$X);}function
  107. hidden_fields($Ye,$Rc=array()){$K=false;while(list($z,$X)=each($Ye)){if(!in_array($z,$Rc)){if(is_array($X)){foreach($X
  108. as$fd=>$W)$Ye[$z."[$fd]"]=$W;}else{$K=true;echo'<input type="hidden" name="'.h($z).'" value="'.h($X).'">';}}}return$K;}function
  109. hidden_fields_get(){echo(sid()?'<input type="hidden" name="'.session_name().'" value="'.h(session_id()).'">':''),(SERVER!==null?'<input type="hidden" name="'.DRIVER.'" value="'.h(SERVER).'">':""),'<input type="hidden" name="username" value="'.h($_GET["username"]).'">';}function
  110. table_status1($Q,$oc=false){$K=table_status($Q,$oc);return($K?$K:array("Name"=>$Q));}function
  111. column_foreign_keys($Q){global$b;$K=array();foreach($b->foreignKeys($Q)as$n){foreach($n["source"]as$X)$K[$X][]=$n;}return$K;}function
  112. enum_input($U,$wa,$l,$Y,$Wb=null){global$b;preg_match_all("~'((?:[^']|'')*)'~",$l["length"],$_d);$K=($Wb!==null?"<label><input type='$U'$wa value='$Wb'".((is_array($Y)?in_array($Wb,$Y):$Y===0)?" checked":"")."><i>".'empty'."</i></label>":"");foreach($_d[1]as$t=>$X){$X=stripcslashes(str_replace("''","'",$X));$Na=(is_int($Y)?$Y==$t+1:(is_array($Y)?in_array($t+1,$Y):$Y===$X));$K.=" <label><input type='$U'$wa value='".($t+1)."'".($Na?' checked':'').'>'.h($b->editVal($X,$l)).'</label>';}return$K;}function
  113. input($l,$Y,$q){global$Lg,$b,$y;$E=h(bracket_escape($l["field"]));echo"<td class='function'>";if(is_array($Y)&&!$q){$ta=array($Y);if(version_compare(PHP_VERSION,5.4)>=0)$ta[]=JSON_PRETTY_PRINT;$Y=call_user_func_array('json_encode',$ta);$q="json";}$of=($y=="mssql"&&$l["auto_increment"]);if($of&&!$_POST["save"])$q=null;$Bc=(isset($_GET["select"])||$of?array("orig"=>'original'):array())+$b->editFunctions($l);$wa=" name='fields[$E]'";if($l["type"]=="enum")echo
  114. nbsp($Bc[""])."<td>".$b->editInput($_GET["edit"],$l,$wa,$Y);else{$Ic=(in_array($q,$Bc)||isset($Bc[$q]));echo(count($Bc)>1?"<select name='function[$E]'>".optionlist($Bc,$q===null||$Ic?$q:"")."</select>".on_help("getTarget(event).value.replace(/^SQL\$/, '')",1).script("qsl('select').onchange = functionChange;",""):nbsp(reset($Bc))).'<td>';$Wc=$b->editInput($_GET["edit"],$l,$wa,$Y);if($Wc!="")echo$Wc;elseif(preg_match('~bool~',$l["type"]))echo"<input type='hidden'$wa value='0'>"."<input type='checkbox'".(preg_match('~^(1|t|true|y|yes|on)$~i',$Y)?" checked='checked'":"")."$wa value='1'>";elseif($l["type"]=="set"){preg_match_all("~'((?:[^']|'')*)'~",$l["length"],$_d);foreach($_d[1]as$t=>$X){$X=stripcslashes(str_replace("''","'",$X));$Na=(is_int($Y)?($Y>>$t)&1:in_array($X,explode(",",$Y),true));echo" <label><input type='checkbox' name='fields[$E][$t]' value='".(1<<$t)."'".($Na?' checked':'').">".h($b->editVal($X,$l)).'</label>';}}elseif(preg_match('~blob|bytea|raw|file~',$l["type"])&&ini_bool("file_uploads"))echo"<input type='file' name='fields-$E'>";elseif(($rg=preg_match('~text|lob~',$l["type"]))||preg_match("~\n~",$Y)){if($rg&&$y!="sqlite")$wa.=" cols='50' rows='12'";else{$M=min(12,substr_count($Y,"\n")+1);$wa.=" cols='30' rows='$M'".($M==1?" style='height: 1.2em;'":"");}echo"<textarea$wa>".h($Y).'</textarea>';}elseif($q=="json"||preg_match('~^jsonb?$~',$l["type"]))echo"<textarea$wa cols='50' rows='12' class='jush-js'>".h($Y).'</textarea>';else{$Gd=(!preg_match('~int~',$l["type"])&&preg_match('~^(\\d+)(,(\\d+))?$~',$l["length"],$C)?((preg_match("~binary~",$l["type"])?2:1)*$C[1]+($C[3]?1:0)+($C[2]&&!$l["unsigned"]?1:0)):($Lg[$l["type"]]?$Lg[$l["type"]]+($l["unsigned"]?0:1):0));if($y=='sql'&&min_version(5.6)&&preg_match('~time~',$l["type"]))$Gd+=7;echo"<input".((!$Ic||$q==="")&&preg_match('~(?<!o)int(?!er)~',$l["type"])&&!preg_match('~\[\]~',$l["full_type"])?" type='number'":"")." value='".h($Y)."'".($Gd?" data-maxlength='$Gd'":"").(preg_match('~char|binary~',$l["type"])&&$Gd>20?" size='40'":"")."$wa>";}echo$b->editHint($_GET["edit"],$l,$Y);$uc=0;foreach($Bc
  115. as$z=>$X){if($z===""||!$X)break;$uc++;}if($uc)echo
  116. script("mixin(qsl('td'), {onchange: partial(skipOriginal, $uc), oninput: function () { this.onchange(); }});");}}function
  117. process_input($l){global$b,$j;$Qc=bracket_escape($l["field"]);$q=$_POST["function"][$Qc];$Y=$_POST["fields"][$Qc];if($l["type"]=="enum"){if($Y==-1)return
  118. false;if($Y=="")return"NULL";return+$Y;}if($l["auto_increment"]&&$Y=="")return
  119. null;if($q=="orig")return($l["on_update"]=="CURRENT_TIMESTAMP"?idf_escape($l["field"]):false);if($q=="NULL")return"NULL";if($l["type"]=="set")return
  120. array_sum((array)$Y);if($q=="json"){$q="";$Y=json_decode($Y,true);if(!is_array($Y))return
  121. false;return$Y;}if(preg_match('~blob|bytea|raw|file~',$l["type"])&&ini_bool("file_uploads")){$rc=get_file("fields-$Qc");if(!is_string($rc))return
  122. false;return$j->quoteBinary($rc);}return$b->processInput($l,$Y,$q);}function
  123. fields_from_edit(){global$j;$K=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){$E=bracket_escape($z,1);$K[$E]=array("field"=>$E,"privileges"=>array("insert"=>1,"update"=>1),"null"=>1,"auto_increment"=>($z==$j->primary),);}return$K;}function
  124. search_tables(){global$b,$e;$_GET["where"][0]["val"]=$_POST["query"];$Ef="<ul>\n";foreach(table_status('',true)as$Q=>$R){$E=$b->tableName($R);if(isset($R["Engine"])&&$E!=""&&(!$_POST["tables"]||in_array($Q,$_POST["tables"]))){$J=$e->query("SELECT".limit("1 FROM ".table($Q)," WHERE ".implode(" AND ",$b->selectSearchProcess(fields($Q),array())),1));if(!$J||$J->fetch_row()){$Ue="<a href='".h(ME."select=".urlencode($Q)."&where[0][op]=".urlencode($_GET["where"][0]["op"])."&where[0][val]=".urlencode($_GET["where"][0]["val"]))."'>$E</a>";echo"$Ef<li>".($J?$Ue:"<p class='error'>$Ue: ".error())."\n";$Ef="";}}}echo($Ef?"<p class='message'>".'No tables.':"</ul>")."\n";}function
  125. dump_headers($Pc,$Nd=false){global$b;$K=$b->dumpHeaders($Pc,$Nd);$ye=$_POST["output"];if($ye!="text")header("Content-Disposition: attachment; filename=".$b->dumpFilename($Pc).".$K".($ye!="file"&&!preg_match('~[^0-9a-z]~',$ye)?".$ye":""));session_write_close();ob_flush();flush();return$K;}function
  126. dump_csv($L){foreach($L
  127. as$z=>$X){if(preg_match("~[\"\n,;\t]~",$X)||$X==="")$L[$z]='"'.str_replace('"','""',$X).'"';}echo
  128. implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$L)."\r\n";}function
  129. apply_sql_function($q,$c){return($q?($q=="unixepoch"?"DATETIME($c, '$q')":($q=="count distinct"?"COUNT(DISTINCT ":strtoupper("$q("))."$c)"):$c);}function
  130. get_temp_dir(){$K=ini_get("upload_tmp_dir");if(!$K){if(function_exists('sys_get_temp_dir'))$K=sys_get_temp_dir();else{$sc=@tempnam("","");if(!$sc)return
  131. false;$K=dirname($sc);unlink($sc);}}return$K;}function
  132. file_open_lock($sc){$p=@fopen($sc,"r+");if(!$p){$p=@fopen($sc,"w");if(!$p)return;chmod($sc,0660);}flock($p,LOCK_EX);return$p;}function
  133. file_write_unlock($p,$rb){rewind($p);fwrite($p,$rb);ftruncate($p,strlen($rb));flock($p,LOCK_UN);fclose($p);}function
  134. password_file($g){$sc=get_temp_dir()."/adminer.key";$K=@file_get_contents($sc);if($K||!$g)return$K;$p=@fopen($sc,"w");if($p){chmod($sc,0660);$K=rand_string();fwrite($p,$K);fclose($p);}return$K;}function
  135. rand_string(){return
  136. md5(uniqid(mt_rand(),true));}function
  137. select_value($X,$A,$l,$sg){global$b;if(is_array($X)){$K="";foreach($X
  138. as$fd=>$W)$K.="<tr>".($X!=array_values($X)?"<th>".h($fd):"")."<td>".select_value($W,$A,$l,$sg);return"<table cellspacing='0'>$K</table>";}if(!$A)$A=$b->selectLink($X,$l);if($A===null){if(is_mail($X))$A="mailto:$X";if(is_url($X))$A=$X;}$K=$b->editVal($X,$l);if($K!==null){if($K==="")$K="&nbsp;";elseif(!is_utf8($K))$K="\0";elseif($sg!=""&&is_shortable($l))$K=shorten_utf8($K,max(0,+$sg));else$K=h($K);}return$b->selectVal($K,$A,$l,$X);}function
  139. is_mail($Tb){$va='[-a-z0-9!#$%&\'*+/=?^_`{|}~]';$Hb='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';$Je="$va+(\\.$va+)*@($Hb?\\.)+$Hb";return
  140. is_string($Tb)&&preg_match("(^$Je(,\\s*$Je)*\$)i",$Tb);}function
  141. is_url($Xf){$Hb='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';return
  142. preg_match("~^(https?)://($Hb?\\.)+$Hb(:\\d+)?(/.*)?(\\?.*)?(#.*)?\$~i",$Xf);}function
  143. is_shortable($l){return
  144. preg_match('~char|text|json|lob|geometry|point|linestring|polygon|string|bytea~',$l["type"]);}function
  145. count_rows($Q,$Z,$cd,$s){global$y;$I=" FROM ".table($Q).($Z?" WHERE ".implode(" AND ",$Z):"");return($cd&&($y=="sql"||count($s)==1)?"SELECT COUNT(DISTINCT ".implode(", ",$s).")$I":"SELECT COUNT(*)".($cd?" FROM (SELECT 1$I GROUP BY ".implode(", ",$s).") x":$I));}function
  146. slow_query($I){global$b,$T;$i=$b->database();$ug=$b->queryTimeout();if(support("kill")&&is_object($f=connect())&&($i==""||$f->select_db($i))){$hd=$f->result(connection_id());echo'<script',nonce(),'>
  147. var timeout = setTimeout(function () {
  148.         ajax(\'',js_escape(ME),'script=kill\', function () {
  149.         }, \'kill=',$hd,'&token=',$T,'\');
  150. }, ',1000*$ug,');
  151. </script>
  152. ';}else$f=null;ob_flush();flush();$K=@get_key_vals($I,$f,$ug,false);if($f){echo
  153. script("clearTimeout(timeout);");ob_flush();flush();}return$K;}function
  154. get_token(){$ef=rand(1,1e6);return($ef^$_SESSION["token"]).":$ef";}function
  155. verify_token(){list($T,$ef)=explode(":",$_POST["token"]);return($ef^$_SESSION["token"])==$T;}function
  156. lzw_decompress($Da){$Db=256;$Ea=8;$Ta=array();$pf=0;$qf=0;for($t=0;$t<strlen($Da);$t++){$pf=($pf<<8)+ord($Da[$t]);$qf+=8;if($qf>=$Ea){$qf-=$Ea;$Ta[]=$pf>>$qf;$pf&=(1<<$qf)-1;$Db++;if($Db>>$Ea)$Ea++;}}$Cb=range("\0","\xFF");$K="";foreach($Ta
  157. as$t=>$Sa){$Sb=$Cb[$Sa];if(!isset($Sb))$Sb=$nh.$nh[0];$K.=$Sb;if($t)$Cb[]=$nh.$Sb[0];$nh=$Sb;}return$K;}function
  158. on_help($Za,$Kf=0){return
  159. script("mixin(qsl('select, input'), {onmouseover: function (event) { helpMouseover.call(this, event, $Za, $Kf) }, onmouseout: helpMouseout});","");}function
  160. edit_form($a,$m,$L,$Tg){global$b,$y,$T,$k;$gg=$b->tableName(table_status1($a,true));page_header(($Tg?'Edit':'Insert'),$k,array("select"=>array($a,$gg)),$gg);if($L===false)echo"<p class='error'>".'No rows.'."\n";echo'<form action="" method="post" enctype="multipart/form-data" id="form">
  161. ';if(!$m)echo"<p class='error'>".'You have no privileges to update this table.'."\n";else{echo"<table cellspacing='0'>".script("qsl('table').onkeydown = editingKeydown;");foreach($m
  162. as$E=>$l){echo"<tr><th>".$b->fieldName($l);$yb=$_GET["set"][bracket_escape($E)];if($yb===null){$yb=$l["default"];if($l["type"]=="bit"&&preg_match("~^b'([01]*)'\$~",$yb,$mf))$yb=$mf[1];}$Y=($L!==null?($L[$E]!=""&&$y=="sql"&&preg_match("~enum|set~",$l["type"])?(is_array($L[$E])?array_sum($L[$E]):+$L[$E]):$L[$E]):(!$Tg&&$l["auto_increment"]?"":(isset($_GET["select"])?false:$yb)));if(!$_POST["save"]&&is_string($Y))$Y=$b->editVal($Y,$l);$q=($_POST["save"]?(string)$_POST["function"][$E]:($Tg&&$l["on_update"]=="CURRENT_TIMESTAMP"?"now":($Y===false?null:($Y!==null?'':'NULL'))));if(preg_match("~time~",$l["type"])&&$Y=="CURRENT_TIMESTAMP"){$Y="";$q="now";}input($l,$Y,$q);echo"\n";}if(!support("table"))echo"<tr>"."<th><input name='field_keys[]'>".script("qsl('input').oninput = fieldChange;")."<td class='function'>".html_select("field_funs[]",$b->editFunctions(array("null"=>isset($_GET["select"]))))."<td><input name='field_vals[]'>"."\n";echo"</table>\n";}echo"<p>\n";if($m){echo"<input type='submit' value='".'Save'."'>\n";if(!isset($_GET["select"])){echo"<input type='submit' name='insert' value='".($Tg?'Save and continue edit':'Save and insert next')."' title='Ctrl+Shift+Enter'>\n",($Tg?script("qsl('input').onclick = function () { return !ajaxForm(this.form, '".'Saving'."...', this); };"):"");}}echo($Tg?"<input type='submit' name='delete' value='".'Delete'."'>".confirm()."\n":($_POST||!$m?"":script("focus(qsa('td', qs('#form'))[1].firstChild);")));if(isset($_GET["select"]))hidden_fields(array("check"=>(array)$_POST["check"],"clone"=>$_POST["clone"],"all"=>$_POST["all"]));echo'<input type="hidden" name="referer" value="',h(isset($_POST["referer"])?$_POST["referer"]:$_SERVER["HTTP_REFERER"]),'">
  163. <input type="hidden" name="save" value="1">
  164. <input type="hidden" name="token" value="',$T,'">
  165. </form>
  166. ';}if(isset($_GET["file"])){if($_SERVER["HTTP_IF_MODIFIED_SINCE"]){header("HTTP/1.1 304 Not Modified");exit;}header("Expires: ".gmdate("D, d M Y H:i:s",time()+365*24*60*60)." GMT");header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");header("Cache-Control: immutable");if($_GET["file"]=="favicon.ico"){header("Content-Type: image/x-icon");echo
  167. lzw_decompress("\0\0\0` \0„\0\n @\0´C„è\"\0`EãQ¸àÿ‡?ÀtvM'”JdÁd\\Œb0\0Ä\"™ÀfÓˆ¤îs5›ÏçÑAXPaJ“0„¥‘8„#RŠT©‘z`ˆ#.©ÇcíXÃşÈ€?À-\0¡Im? .«M¶€\0ȯ(̉ıÀ/(%Œ\0");}elseif($_GET["file"]=="default.css"){header("Content-Type: text/css; charset=utf-8");echo
  168. lzw_decompress("\n1̇“ÙŒŞl7œ‡B1„4vb0˜Ífs‘¼ên2BÌѱ٘Şn:‡#(¼b.\rDc)ÈÈa7E„‘¤Âl ¦Ã±”èi1̎s˜´ç-4™‡fÓ   ÈÎi7†³é† „ŽŒFé”vt2ž‚Ó!– r0Ïãã£t~½U'3M€ÉW„B¦'cÍPÂ:6T\rc£A¾zr_îWK¶\r-¼VNFS%~Ãc²Ùí&›\\^ÊrÀ›­æu‚ŎÞôÙ‹4'7k¶è¯ÂãQÔæhš'g\rFB\ryT7SS¥PĞ1=ǤcIèÊ:d”ºm>£S8L†Jœt.M¢Š     Ï‹`'C¡¼ÛĞ889¤È ŽQØıŒî2#8А­£’˜6mú²†ğjˆ¢h«<…Œ°«Œ9/ë˜ç:Jê)Ê‚¤\0d>!\0Z‡ˆvì»në¾ğ¼o(Úó¥ÉkÔ7½sàù>Œ î†!ĞR\"*nSı\0@P\"Áè’(‹#[¶¥£@g ¹oü­’znş9k¤8†nš™ª1´I*ˆô =Ín²¤ª¸è0«c(ö;¾Ã Ğè!°üë*cì÷>Ύ¬E7DñLJ© 1Èä·ã`Â8(áÕ3M¨ó\"Ç39é?E e=Ò¬ü~ù¾²ôÅîÓ¸7;ÉCÄÁ›ÍE\rd!)Âa*¯5ajo\0ª#`Ê38¶\0Êí]“eŒêˆÆ2¤      mk×øe]…Á­AZsÕStZ•Z!)BR¨G+Î#Jv2(ã öîc…4<¸#sB¯0éú‚6YL\r²=£…¿[×73Æğ<Ô:£Šbx”ßJ=   m_ ¾ÏÅfªlÙ×t‹åIªƒHÚ3x*€›á6`t6¾Ã%UÔLòeÙ‚˜<´\0ÉAQ<P<:š#u/¤:T\\> Ë-…xJˆÍ QH\nj¡L+jİzğó°7£•«`İğŽ³\nkƒƒ'“NÓvX>îC-TË©¶œ¸†4*L”%Cj>7ߨŠŞ¨­õ™`ù®œ;yØûÆqÁrÊ3 #¨Ù} :#ní\rã½^Å=CåAܸİƎs&8Ž£K&»ô*0ÑÒtİSÉÔÅ=¾[×ó:\\]ÃEİŒ/Oà>^]ØøÂ<èØ÷gZÔV†éqº³ŠŒù ñËx\\­è•ö¹ß޺´„\"J \\îˆû##Á¡½D†Îx6êœÚ5xÊÜ€¸¶†¨\rHøl ‹ñø°bú r¼7áÔ6†àöj|Á‰ô¢Û–*ôF AquvyO’½WeM‹Ö÷‰D.Fáö:RĞ\$ -¡Ş¶µT!ìDS`°8D˜~ŸàA`(Çemƒ¦òı¢T@O1@º†X¦â“\nLpğ–‘PäşÁÓÂm«yf¸ £)   ‰«ÂˆÚGSEI‰¥xC(s(a?\$`tE¨n„ñ±­,÷Õ \$a‹U>,èĞ’\$ZñkDm,G\0å \\iú£%ʹ¢ n¬¥¥±·ìİÜgÉ„b   y`’òÔ†ËWì· ä——¡_CÀÄT\niÏH%Õda ÀÖiÍ7íAt°,Á®J†X4nˆ‘”ˆ0o͹»9g\nzm‹M%`É'Iü€О-èò©Ğ7:pğ3pǍQ—rEDš¤×ì àb2 ]…PF ı¥É>eÉú†3j\n€ß°t!Á?4ftK;£Ê\rΞи­!àoŠu?ÓúPhžÒ0uIC}'~ÅÈ2‡vşQ¨ÒÎ8)ìÀ†7ìDIù=§éy&•¢eaàs*hÉ•jlAÄ(ê›\"Ä\\Óêm^i‘®M)‚°^ƒ     |~Õl¨¶#!YÍf81RSŽ Áµ!‡†è62PÆC‘ôl&íûäxd!Œ| è9°`Ö_OYí=ğÑGà[EÉ-eLñCvT¬ )Ä@j -5¨¶œpSg».’G=”ĞZEÒö\$\0¢Ñ†KjíU§µ\$ ‚ÀG'IäP©Â~ûځğ ;ÚhNێG%*áRjñ‰X[œXPf^Á±|æèT!µ*NğğІ¸\rU¢Œ^q1V!ÃùUz,ÃI|7°7†r,¾¡¬7”èŞÄ¾BÖùÈ;é+÷¨©ß• ˆAÚpÍνÇ^€¡~ؼW!3PŠI8]“½vÓJ’Áfñq£|,êè9Wøf`\0áq”ZÎp}[Jdhy­•NêµY|ï™C y,ª<s A{eÍQÔŸòhd„ìLJ ÌB4;ks&ƒ¬ñÄİÇaŞøÅûé”Ø;˹}çSŒËJ…ïÍ)÷=dìÔ|ÎÌ® NdÒ ·Iç*8µ¢dlÃÑ“E6~ϨF¦•Æ±X`˜M\rʞ/Ô%B/VÀIåN&;êùã0ÅUC cT&.E+ç•óƒÀ°Š›éÜ@²0`;ÅàËGè5ä±Áަj'™›˜öàƐ»Yâ+¶‰QZ-iôœyvƒ–I™5Úó,O|­PÖ]FۏáòÓùñ\0üË2™49Í¢™¢n/χ]س&¦ªI^®=ÓlŽ©qfIÆÊ= Ö]x1GRü&¦e·7©º)Šó'ªÆ:B²B±>a¦z‡-¥‰Ñ2.¯ö¬¸bzø´Ü#„¥¼ñ“ÄUᓍÆL7-¼w¿tç3ɵñ’ôe§ŠöDä§\$²#÷±¤jÕ@ÕG—8Î “7púÜğR YCÁĞ~ÁÈ:À@ÆÖEU‰JÜÙ;67v]–J'ØÜäq1ϳéElôQІi¾ÍÃÎñ„/íÿ{k<àÖ¡MÜpoì}ĞèrÁ¢qŒØž ìcÕä™_mÒwヘ^ºu–´ÅùÚüù½«¶Çlnş”™  Žı_‘~·Gønèæ‹Ö{kܞßwãŞù\rj~—K“\0Ïİü¦¾-îúÏ¢B€;œà›öb`}ÁCC,”¹-¶‹LĞ8\r,‡¿klıÇŒòn}-5Š3u›gm¸òŸÀ *ß/äô ÊùÏî׏ô`Ë`½#xä+B?#öۏN;OR\r¨èø¯\$÷ÎúöÉkòÿÏ™\01\0kó\0Ğ8ôÍaèé/t úû#(&Ìl&­ù¥p¸Ïì‚…şâÎiM{¯zp*Ö-g¨Âèv‰Å6œkë        åˆğœd¬Ø‹¬Ü×ÄA`6ƒlX) +d šğ¾7 è\r ¾ Àځcj6êÍ\rp½\rĞÕ\r\"oPâ7İ\rÊ\0Ğ\0¾y ÇPݐı\rQ7 ğóàZÑ4Q ççڍ p/¨y\r±±##Dñ; ¾Ÿ¨<–gÀ\0fi2®)fÑ\\  m ‘Gh\rñ#±n ßğí@[ ÊG‘\"SqmŠ¤\r€¿‘#è»(Aj¦ ñqÑ£%ôÉÌ‘3qE‰„\0r–ÌÑ ¾›0ı÷яâšİÍÎ.­ÓQ7шW‘É‘uÛ‘ğ„õ ı@ò¨HúŒq'vsä0ê\nä+0®„ĞÂSGëpÜO`Ï\r)cÙ#ˆÂÒ‘¥R=\$€ÆR\rÒGÑ‹\$R?%2C ²[\0؍Ä~²!±\\À‹pË#@¾ÒO(rg%’?ra\$‰±)r](²›&’?&Ñ#&R',\rqV3Ò\"Hém+àÈl’Q\"\0Û4÷\$rË,ñ’=’ ÍÛ&2;.²H@`è¯ÊÎa…§ ’ñ\$²_*RIS&ÈĞq ä_È1 °1+1’ÅÀÖ  ó3)2ÒV7• ³2lòÚ„!1g-‘2f`Ò×,Qó7ñù0qgÓ]!q»óm6Š¦‹³_²M7 ¿‚Á7³o6Qî àà ókpı3³g9”ªs‰ 36ü\r©:S9ӏ;— “\r9‘-\0ÆYÓ§0QÕ<b#<ӁÒw/ GÀ…>r\rÅß=3ï^&Q;Ñ£?q 0\"Á0HĞ™‘|¡áÓÊ–Sà˜i‹à@*ÓT­2ÙT#Žˆ «\0°C°’07]?‘İ&ª›ÔE ³…DÑ;:/½3ıE±5ÓËEQŒeÓËT\"©mž©ËÉ5‘E;óŸ´#=48ñò*Èò©ˆøLSÒ5HrñJE TO\rÔ…J´J“ÓJóÓÀeG) 8B8© ,&òGʲç€è    Ğê›+M€¦Êɲ¬ë^*±¯ëGËÚ14ò6Ë\$.\"æ‹¢ïI4w!\$L Ü8bêA2ûLÃ'M?MFú\$Ü,´à“ğNr ´ê/4ïBJÚ¨");}elseif($_GET["file"]=="functions.js"){header("Content-Type: text/javascript; charset=utf-8");echo
  169. lzw_decompress("f:›ŒgCI¼Ü\n8œÅ3)°Ë7œ…†81ĞÊx:\nOg#)Ğêr7\n\"†è´`ø|2ÌgSi–H)N¦S‘ä§\r‡\"0¹Ä@ä)Ÿ`(\$s6O!ÓèœV/=Œ' T4æ=„˜iS˜6IO“ÊerÙxî9*ź°ºn3\rщvƒCÁ`õšİ2G%¨YãæáşŸ1™Ífô¹ÑÈ‚l¤Ã1‘\ny£*pC\r\$ÌnTª•3=\\‚r9O\"ã       Ààl<Š\rÇ\\€³I,—s\nA¤Æe h+Mâ‹!q0™ıf»`(¹N{c–—+wËñÁY£–pÙ§3Š3ú˜+I¦Ôj¹ºıŽÏk·²n¸q܃zi#^rØÀº´‹3èâÏ[žèºo;®Ë(‹Ğ6#ÀҐŽ\":cz>ߣC2vÑCXÊ<P˜ Ãc*5\nº¨è·/üP97ñ|F»°c0ƒ³¨°ä!ƒæ…!¨œƒ!‰Ã\nZ%Ãć#CHÌ!¨Ò r8ç\$¥¡ì¯,ÈRÜ”2…Èã^0·á@¤2Œâ(ğ88P/‚à¸İ„á\\Á\$La\\å;càH„áHX„•\nʃtœ‡á8A<ÏsZô*ƒ;IĞÎ3¡Á@Ò2<Š¢¬!A8G<Ôj¿-Kƒ({*\r’Åa1‡¡èN4Tc\"\\Ò!=1^ •ğİM9O³:†;jŒŠ\rãXÒàL#HÎ7ƒ#Tݪ/-´‹£pÊ;B ‹\n¿2!ƒ¥Ít]apΎİî\0RÛCËv¬MÂI,\rö§\0Hv°İ?kTŞ4£Š¼óuÙ±Ø;&’ò+&ƒ›ğ•µ\rÈXbu4İ¡i88Â2Bä/⃖4ƒ¡€N8AÜA)52íúøËåÎ2ˆ¨sã8ç“5¤¥¡pçWC@è:˜t…ã¾´Öešh\"#8_˜æcp^ãˆâI]OHşÔ:zdÈ3g£(„ˆ×Ök¸î“\\6´˜2ÚÚ–÷¹iÃä7²˜Ï]\rÃxO¾nºpè<¡ÁpïQ®UĞn‹ò|@çËó#G3ğÁ8bA¨Ê6ô2Ÿ67%#¸\\8\rıš2Èc\ræİŸk® ‚.(’   Ž’-—J;î›Ñó ÈéLãÏ ƒ ¼žWâø㧓ѥɤâ–÷·žnû Ò§»æıMÎÀ9ZНs]êz®¯¬ëy^[¯ì4-ºU\0t a ¶62^•˜.`¤‚â.Cßjÿ[á„ % Q\0`dëM8¿¦¼ËÛ\$O0`4²êÎ\n\0a\rA„<†@Ÿƒ›Š\r!À:ØBAŸ9Ù?h>¤Çº  š~ÌŒ—6ȈhÜ= Ë-œA7XäÀÖ‡\\¼\r‘Q<蚧q’'!XΓ2úT °!ŒD\r§Ò,K´\"ç%˜HÖqR\r„Ì ¢îC =Ží‚ æäŽÈ<c”\n#<€5Mø êEƒœyŒ¡”“‡°úo\"°cJKL2ù&£ØeRœÀWĞAΐTwÊÑ‘;åJˆâá\\`)5¦ÔŞœBòqhT3§àR       ¸'\r+\":‚8 ¤ÀtV“Aß+]ŒÉS72Èğ¤YˆFƒ¼Z85àc,æô¶JÁ±/+S¸nBpoWÅdÖ\"§Qû¦ a­ZKpèŞ§y\$›’ĞÏõ4I¢@L'@‰xCÑdfé~}Q*”ÒºAµàQ’\"BÛ*2\0œ.ÑÕkF©\"\r”‘° Øoƒ\\ëÔ¢™ÚVijY¦ ¥MÊôO‚\$Šˆ2ÒThH´¤ª0XHª5~kL©‰…T*:~P©”2¦tÒ ÂàB\0ıY…ÀÈÁœŸj †vDĞs .Ğ9“s¸¹Ì¤ÆP¥*xžª•b¤o“õÿ¢PÜ\$¹W/“*ÃÉz';¦Ñ\$ž*ùÛÙédâm íÃÄ'b\rÑn%ÅÄ47Wì-Ÿ’àöÕ ¶K´µ³@<ÅgæèbBÑÿ[7§\\’|€VdR£¿6leQÌ`(Ô¢,Ñd˜å¹8\r¥]S:?š1¹`îÍYÀ`ÜAåÒ“%¾ÒZkQ”sMš*Ñ×È{` ¯J*w¶×ÓŠ>îÕ¾ôDÏû›>ïeÓ¾·\"åt+poüüŸÊ=Ş*‚µApc7gæä ]ÓÊlî!׎ї+ÌûzsN¦îıàÀPÔ šòia§y}U²ašÓù™`äãA¥­Á½Áw\n¡óÊ›Øj“ÿ <­:+Ÿ7;\"°ÕN3 tqd4źg”ƒ¦T‹x€ªPH¨—FvWõV\nÕh;¢”BáD°Ø³/öbJ³İ\\Ê+ %¥ñ–÷îá]úúÑŠ½£wa×İ«¹Š¦»á¦ğè E‘­(iÉ!îô7ë×x±†z¤×Ò÷çÅHɳ¸d´êmdéìèQ±r@§a•î¤ja?¤\r”\ryë4-4µfPáÒ‰WÃÊ`,¼x@§ƒİx¼ˆèA’¦K.€OÁi€¯o²;ê©ö–)±Ğ¨ºä’ɆSÙdÙÓeOı™%ÙNĞåL78í¦F㪛§SîáÒùöIÁ Â\rîÛZ˜²r^‰>ıĞì*‚d\ri °YüëYd‹uÃës‡*œ   ÌèE ¡Ê½éD§9æë!Â>ùkCရA‡ŽÁd®åâ°!WWì1ğğÿŽQAæœÛk½°d%¦Ü# ïy†°{›–`}Té_YY‹R®ğ-¹MôºO–2ÖâÊ,Ë,Å É`ú-2ÓÀ÷¨+]L•È7E¤Ôç{`¢ƒË•­ñ~wì-…×ı ©M6¥¤]Fóûƒ¦@™§Ìe`°/˜8¹@‡e¦ÍØ\\ ap.‚H¥ûĞC´Àæ*EAoz2¹Æçg0úˆ?]͝~Ÿs°ñÏ`ŒhJ`†ê箤`û}‡áÍ^`èÑÃ>§ÈOñ5\rğW^Iœõžõ\n³ù¬ı;ñ¸´ğ:ŸäÏ_h›n±µŒ´ ßYP4®ğˆ)û *ı¸îÉõ¯æÑ6vÖä[ˤ­C;ûö³ï㻶näW/jº<\$J*qÄ¢ûä°ú-LôŒ\0µ¯ãï÷\0Oš\$ëZW zş      \0}Ú.4 F„\rnu\0âàØÀ䏋’éLŞ  ÷IA\nz›©*–©ªŠjJ˜Ì…PŠ ¢ë‚Ğp…Â6€Ø¦NšžDÈBf\\   \0¨     ˜W@L\rÀÄ`àg'Bd¯     Bi      œ°‚‰*|r%|\nr\r#Ž°„@w®»î(T.¬vâ8ñÊâ\nm˜¥ğ<pØÔ`úY0ØÔâğÀÊö\0Ğ#€Ì‘}Ž.I œx¢T\\âôÑ\n  Í  Q‘æ@bR MFÙÇ| ¢è%0SDr§ÂÈ žf/b–àÂá¢:áík/şã    f %äШ®e\nx\0Âl\0Ì ÅÚ  ‘0€W`ߥÚ\nç8\r\0}pŽ²‘›Â;\0È.Bè¤Vù§,z&Àf Ì\röWOcKƒ\nì» ž’åÒkªz2\rñÉÀîW@Â’ç%\n~1€‚X ¤ßqâD ¢!°^ù¦t<§\$²{ 0<E¦ÊѪ³2&ÜNÒ\r\næ^iÀ\"è³#nı ì­#2D§ˆüË®DâŽæo!¬zK6Âë:ŽïìÃÏğ#RlÓ%q'k޾*¸«Ã€චZ@ºòJÌ`^PàHÀbSR|§        Ž%|öôì.ÿ¯Âµ²^ßrc&oæÑk<ÿ­şí&ş²xK²Õ'æüLÄ‚«ò‹(ò’òmE)¥*–ÿ¬`R¥bWGbTRø½î`VNf¢®jæğ´ woVèè˜(\"­’Ú§ô&s\0§².²¦Ş³8ž=h®ë Q&üŽân*hø\0òv¢BèGØè@\\F\n‚WÅr f\$óe6‘6àa㤥¢5H•ñâ°bYĞfÓRF€Ñ9¨(Òº³.EQå*Êî¸ë(Ú1‰*Â/+,º\"ˆö\r Ü        ªâ8ı\0ˆü3@İ%l厭ã¥,+¼¼å&í#-\$¦óÈ%†ÌÅgF!sİ1³Ö%¯Ôsó/¥nKªq”\0O\"EA©8…2ÀŠ}5\0Ë8‹ŸA \n¯ÅRrH …Ú³‡9Å4UìdW3!b¨z`í>ãF >Òi,”a?L>°´`´r¾±r ta;L¦ëÅ%ÀRxR†ëtŠÊ¥HW/m7Dr¶EsG2Î.B5Iî°ëÉQ3 â_€ÒԈ봤§24.ì‰ÅR kâ€z@¶@ºNì[4Î&<%b>n¦YPWÎ Ÿâ“6n\$bK5“t‡âZB³YI Lê~G³YÎÖñcQc  6DXÖµ\"}ƞ fŠĞ¢IÎj €ó5“\\ö XÙ¢td®„\nbtNaEÀTb;lâp‚Õ|\0Ô¯x\n‚žådVÖíŒÖà]Xõ“Yf„÷%D`‡QbØsvDsk0ÓqT¥ÿ7“l c7ç€ä ÖôŽÎSZ”6äï¾ãµŠĞ#êx‚Õh Õšâ ¬£`·_`ܾÎÚ§±•ê¥œ·+w`Ö%U§…’ï©è™¯¶ïÌ»U òöD‹Xl#µ†Ju¯[ åQ'×\\Hğ÷„¤÷äGRÕë0«oaĞõÓCÃX¥+ÔaícàN 䞮`ÖreÚ\n€Ò%¤4šS_­k_àÚšŽ!3({7ó’bI\rV\r÷5ç×\0µ\\“ €aeSg[Óz f-PöO,ju;XUvĞîıÖÃmËl…\"\\B1ĞİÅ0æ µ‘pğ å4á•ë;2*‘î. b£\0ØØuÔãJ \"NV‰ÛrrOÕfî2äW3[‰Ø¢”¤³    €Ë Æ5\r7²Ë0,ytÉÛwS W      ]kGÓX·iA*=P\rbs\"®\\÷o{eÀòœ¶5k€ïkÆ<±‚;®;xÕ ¶-ö0§É_\$4İ ²¶´™8*i\0f›.Ñ(`¼•òñD`æP·&Œô˜ŒÄA+eB\"ZÀ¨¶³ ¢WÌ¢\\M>¶wö ÷ú¶Ëg0¦ãGà àš…‘Òø´\rÆÜ©*İf\\òŒp\0ğ¼‚åKf#€ÛÀ˃\rÎÙÍ¡ƒØ@\r÷‚Öd ¢Ÿ\nó&D°%‚؁3­wı‚©.}÷ùÏÿÅ­‚ ñ‚kHÆk1x~]¸PÙ­Óƒ€[…Œ;…ÀY€ØˆØ‘KÅ6 ËZäÖàtµ©>gL\r€àHsMìºe¤\0Ÿä&3²\$ë‰n3íü wÊ“7Õ— ®·\" ôÒë+İ;¢s;é” * 1™ y*îŽË®;TG|ç|B©! {!åÅ\"/Ê–oÎãj÷Wë+µæ“LşDJş’Í…´w2´ÆVTZ¹Gg/šıÖŠƒ]4n½4²À¿±Á‹Ï÷i©=ÈT…ˆ]dâ&¦ÀÄM\0Ö[88‡È®Eæ–â8&LXVmôvÀ±        Ê”j„×›‡FåÄ\\™Â  ™ÆÊ&t\0Q›à\\\"òb€°      àÄ\rBs      wžÂ   ŸõŸ‚N š7ÇC/|Ù×     €¨\n\nNúıK›yà*A™`ñWÏYvUZ4tz;~0}šñJ?hW£d*#É3 €å ОàyF\nKTë¤Åæ@|„gy›\0ÊOÀxôa§`w£Z9¥ŒbO„»¨ÚWY’RÄÉ}J¾ˆXÊÚPñU2`÷©šG©åbeuª…zWö+œÈğ\rè¬\$4ƒ…\"\n\0ž\n`¨X@Nà‹®% d|‚hé¬ÈÚ™ŞÅ‡egÄê‚+âH¸t™(ªŞÑ( À^\0Zk@îªP¦@%Â(WÍ{¬º/¯ºşt{o\$â \0[³èޱ¡„%¡§ë´É™¯‚ hU]¤B,€rDèğe:D§¢ÌX«†V&ÚWll@ ÀdòìY4 Ë¯›iY y¡š[‘¬Ã+«Z¹©]¦g·‡FrÚFû´wŞ µ”#1¦tϦ¤ÃN¢hq`å§Dóğğ §v|º¦Z…Lúv…:S¨ú@åeº»ÿB’ƒ.2‡¬EŠ%Ú¯Bè’@[”ŠúÖB£*Y;¿™[ú#ª”©™›µ@:5Ã`Y8Û¾–è&¹è    @¦     àœüQÅS8!›£³»Â ¼¢2MYŽ„äO;¾«©Æ›È)êõF¨F ZõA\\1 PF¨B¤lF+šó”<ÚRÊ><J?šÚ{µf’õkĘ8®ëW‚¬è뮺M\r•Í¼Û–RsC÷NÍô€î”%©ÊJë~Á˜ ?·Úâ¯,\r4×k0µ,J󪎕b—öo\0Ê!1 ø5'¦\ràø· u\r\0øÊ\$¡Ğ=š}\r7NÌÔ=DW6Kø8võ\r³ Ê\n ¤  *‚\r»Ä7)¦ÏDüm›1        aÖ@ßÖ‡°¨w.äT”Èİ~©Ç¼pV½ÀœJ‚u¢\rä&N MqcÊdĞĞdĞ8îžğØ€_ĞK×aU&®H#]°d }`P¬\0~ÀU/ª…ñƒ…ùÌynY<>dC·<GÉ@éÃ\"’eZS¹wã•›“ÆGy¼\\j)ğ}ž•¤\r5â1,pª^u\0è éˆ ÕÆnÌÚC©ºHPÖ¬G<Ÿšp‹ô2¨\nèFDÜ\rÖ\$°­yuycöçõv6İe )ÖpÛYHÏÄ’õŞ#VP¾€üÕØeW®Ş=žmÙæc:&‰¥æ-ÛÄPv.£Ë€ø杍ºğš        ‹úØ£\0\$êÁ@+×ì¹Pÿl&_çCb-U&Ž0\"åF…®Vy¸p\rÄa5Ûq9U>5è\\LBg†èU­[¶7m düóyV[5Ÿ*}Õ4ø5/ç¶àҏ¾HöD 60 ¿­Å쐿íÃ:Suy\r„¼‡ãSMÀŸÂ;W“ªØεL4ÖG¢NØã°§–Ÿõ ÜeÜmğšt„Èsq¶€˜\".Fÿ™Ž§CsQ¸ h€e7äünØ>°²*àc!iSİj¾ †Ì­Ù‘ü°ø‚°ü {üµ­÷%t €ê\0`&lrÅ“,Ü!0ahy        RµB =ÍegWãùo\0¦H‡h/v(’N4‘\rı„ÀTz„&q÷?X\$€X!ôJ^,Ÿ­öbó“ı`2@:†¼7ÃCX’H€e¡Š@qïÛ\ny¶ 0¦è‹´£´€ñPÀO02@èv‰/IPa°2ÀÜ0\n]-(^Æüt.½•3&Ç\"«0¤˜\"Ğ\0]°1šÍña˜´°E³SúÄP|\\€ÉÑAõpú9›\$K˜ˆByuدzë7Z•\rìb¤uÉ_ ïò 8õÆmãq³ğû˜E<-ÈÉ@\0®!)³Ä )÷)Õ~Qå     rÙ‘Ü/MèPÿ\nº       ¦É`à!\n(ˆ‚\n\n>X€Ğ!` WºËáø¼àp4AÚ       ŶÁ©d‘Ç\0XÒÙ§V\n€+Cd/EØFåâ¯m+ `\0Ş2´ôp/-Ø Ì2·™´eæËC@C„\0pX,4½ìª¼ƒÌ9àòÔXt!. Pߘ\\ ı•q„£b{…vˆbfMÃÍ)D]ûw„˜°ŸË… XàB4'»—fÀtXЦ¢(O Õ¾©  ğ‘qü#ž³3¸«p]¢i\".ªè7¬iw[T\0y\rÄ4Cå;,\$a2i(™\$µmȆDÒ&Ô”4¥žZ â;E#6UA ÄR€­üìeFFUŒ1•h2\n¨÷UpևÞéTʹ€âÏ ØÕ[î+‘^ôX Õ¤Ù78 A\rnK‚‚d1´>€pƒ+¦`Î:‡‹Iƒo<ÚL„@äa   ¾€´\0:ˆ†İG—½ hQ„\$ùjR¸Ç'ÉÈŒ¯K!ı`¨£¸1ÅÒ ÀHƒCÆâZ0\$ÀeÉyXG£5hÎEâ\r1ŸG‚\nº`·g'\0¼İ6qVã(\r‡„VPHöÇŒëbÖŠ\r¯-k–\0B‘bÆıØGß:½áŒZ×Ñ|¹>Ž*ÄXXÙ!¡’£´\"&öÀ:EÕa«÷,vB P‰h!pf;\0£¾[Á‘/r:qTŽƒèÙ8\"x3Gl ‘İ\"Xm#Ã`è5ÑæÜx\n¨óG¶;ÑşEQ—X¹Ç‚<HhAúå¢ê·+1 Nsº´ã¡µk•js H{€Øõãï&1•GãaIÊ?76š22Îp4™ş—È™V!°Á‡¢º2ÍŸ:€¤z    IàĉZÔ1ER7Ãİ%£¶ÂôÅ6!Á?@(•ä–‘ï,&…2’¸ò”>™I8 ÒP+œ”‚hâ&7N'2V˜š\0Ñ¢i\0œ‡ËÜ™i%8ù¹V8e„Z:Ò@Ê´°ñ6ä¦R{ ¨ JzÔs2…    j(C`Z*ôˆJ-bçë#¸DEu\$¹WŒ*Œ¥*#9ˆ”D3y¥?\"Ø9ı,Q”/§ ßw8ˆ‚UÀ=•qÿ™]\0ƒÊ¹¸mŽtøŒ-*ç(˜ğdÒ‰•!Žåƒ+FX\$IŒÌ„âºU\$õ` ‚‚Ìeò'c¦¿Vr¨n«Æ1l€Šõ5¬?XTÅ&*@ òIBÖtyt–fêõN¨ğ%ÂÅS™H˜xô\$Ü\0}/sH\\§Ë†°ÊË6@y1Ž\0~@+ÄVñ7UÀLh`_CÀƏ€‰hBA|‰œ*pEÍí         \"Ö‰0\0‰0\$R‹ìªåp\0§Š €[’²gØfb²rí«ÈÍ\0PÙ÷,™\0œtcğ €ÿ¦|d       £Ë,F‡œÂ€Ó0Ç6+šU¬û•¤æ’[   ZLü½íRŠ%j—€È4³I€æÈ#xŸ»´WÀvàßÅô6M´\"€mãP‚U7P6;n /      tİRšAp©Í<R3NX†\0Ё¬ S|1KĞ@0<Í„S      O+ÜÚJÁ7`1ÍâoS`  Ñ 8³   æe“–›¨X€ç7Q´†æs*œØ@W2ÁMZaǼKà…¸ñE@è\r³œÅ¦lê¹ÚÌX(/äjž0ñ¢Y¨<WÃ7Z²Ç‡|£&H|å‚Ù…©…%TŸsFGNq<Iˆ„î—ˆ€¶7&-žzƒV ‚[±öwç¼1\\ô•ÖS–\r©:‹œ³£S-ÕŸ}Á2䃊>‘ô„9h£`,=´ÔRÈ°©œJe4Kp—E€E‰”}H¤Š¢a@ &;à–Ž{.        ’€ó!²ÚÙIÁÒ0cŞØf¸: \ráPwNŠu¢¦åW”Î+°»™ËM\0007Š|!Æž¨Yh æéWĞ\$i;IÛaL¹§…\$S ,‹S.Se±@N0y*Û¦&†ŠäD\0dɤOE°1EuÅqë2J}EÄô+  DZê§è¹EâÖ+a[O;(ćEdm}\0eû\0äÀ4\rîŽË…+‘À_ÿ§P“l—uÔÚɱöQ½Q      À\$Ê–1µ¢!\\º«\n1O)6]u &’K' èÇGš=tæLDÀ׍?H¨Òš‡¥H¿(ÃHJTRLaÿ¥e ¿Bñ‰Ş€[dн‹\nR†=­BSgF” á‰nʘ\0²¬¥0e‚c&«@¨Ğ–¸½òõ1â‚\0\0ÀOŽ›)>z¨&0½ÁMÊÈèÔZJj«Ä›…%Î!‘z¯\0Î8¸¦AP²¢P‚y‚¯FcDJ°Ñ‰6¦¹-Èî‘ĞÆúŸ„ìRY&ÈÎ~²˜\$á  ™žCÊ4àc#;ÈšAbİ­#CŠhBBtOÍh;±p×l”‚¥uòž\nY        '‘ÈÁÔ\03á\0¼  €IX@ø \"µĞ \0P§Z4ÀTŒWUCª,ˆô€°©›(     ¿š   MŞ,—®¬†ÅP`IÈô¡hÓèé/Qœ\0ˆèôÿÓø@)\nFH‚ ùíÃÈ€ÎÂâ’°QoÂ@>SÜC@pøHàîÆV@Bn—  a1éĞEÖ*Ÿ5aªH7dP\n¦Bç JDüžJ– ú¬ã&§ê{À¶žAà'’h5-à°@t§‰©)dJu°¦è†ğJqUèóQ¯«%NÉSê(&­.ŒR°T°õÍÂeµ r=\\Sވªâˆš§‡¯­hnêÑNµãˆäY\"Ñ\n\nJxƒG\r\0œr5Û½T@×[`€…”éZ\r‚Ip%|åA*9w\"¨+è˜ø¡2c¡ƒl«9#\$Í@ağÄò*³TÀ@\0+°€+=a9ÃC«I¿¡ÀY~#ñ! Ú‹ B™?è°åA‰\nŒ ÀE!ˆkC€-Ád’fkŽí^\0ÀUùk5‡:ǾpÇœ¬ŠŽ€(8ºèÖv¯5á±—*ë8€¡Ä‚ †¨¥ÎcÀ+úW¤ZFPîBWS)â@¼=³ÉSŠœ¶;r@@Ȑ1Û78èEÍX¬½0º~ÌcÓ±âz)fƒŸª\$d6ma­—“]gõÙÍkAp³´M÷g’~Äà!•c<P\"½XÑÆZ¸ö‚±àšá÷hk4›dãKğà     \0bµÚMHY4­†TÀ/ˆMî¡ñ´JØî‘uÛ”Ğëğ)\nİI±?vÔ    ©iÓÔFËQ¦m÷\$Ê(‘w7-„x ç+Út]xlugAÇF²/s’È=d2°n=Ñş<¡å?eÊá2— €\\û ŽÇV.ِ.±¦,}á?K¡ç–æŠà0O¡ó†üÂĞ€Üık2)E0ȹIú—ÄOÔz_õ¨¥6CBê/øÇ.ܨ¤Ê*1¡Ô½ìHà„äÔZĞZ8\0´ ;%½DLCW00\0¢®u«ÅG..˜×D>¤(‹PôÅÖ®‘\\ܞ\n€-ğ,/rz×Ü<]i–—íŒÈ»µaRȵšEÉSœ=B¹ªXžt[êfj…¨\0µ(•Ô%¸c§2¸Ç#™¹ğâ„¡{­µD«®whï.¾¿)ë˜üÈ&C0bŽŒZƒ+<ÇFN_…ë­a!¸,!\r§m€¬›]jºÕO°ßBi`0:Ø3¡MO(¶ \\¿ŠİÜèhrF9Õä…Àİ,‰59¼²u“ I§†å·±n’h^R0(Öê=™¬Ğå¨ã–ãÆ'5y¦Ú”°€şä„£ÙúÒ±R€ÿ\n2ê€]øöÉ%Ek_\nˆ¨¾4!T98Y#žÉl¥\\ʯÙQ¤E4ÓÎ\r-<ˆİ_«}Ï>¥‹§õ騖IíTŒ!¥’ZÅe=«÷NX? -È ªT”Ù\"—öüF0J©#Ÿ?÷ßõ*áAžÔŠËÊÆaÏjüi,z,|/Ì÷ò`(?¡v¡üögŸ~¥bO–©†µ8N­R&æÕ£şÀ•6É6Ğ<_êı‰}>‹£0JSˆOàk  o»» C;úÔ¨€,¿ÉâO%UÆİ!ƒh|BQ!ŒÓŠşYíşğM\0v[àø qí·¯      x3ŸEúÀç~ÓN඼7ğñKP/zËvR<ïÉ\rLùd“B!5êĞH˜ˆp/¯€Û-ú<,Aôpá†cıá LtÅ„éu—ˆ[æµ€ã6 1¾ëøCQ¯`é6Ï´í,Âkמ٠ְ·êEä¾g-Ñîş@^<•J®D@´¦Ÿ>ØÉÃieÓCAŠ&‘DpN,±ù™vÊ`Ş?0ˆÔõ«Ô=ÉâI{±T½e¡o_m_K¬¤Å½õHÒ'=@ì\$‹ˆ7p‰’a\$js £\r‰ÙÃհæQ¬;ìcàpnõ¡ØûK<iaîÜ :Ãf4b%Ž¥Äã—!OÇN5à_ zc¿ÀgÇf9—dšFePAõtaê„k6¨·–<aÕ»IüÃÔ‚÷\nJòeoKÏ¥ß\0006·Ù±j¤×C]¥,eà¼úÂœÔIíÈÖQ¯b¸VI±Şç; à@'Û mE\\Gv *`|ÂkYgOž¥‡J–1 0òy“à<å Oª~NB\\ÇK„w)MÇÊÿ²ˆ(ܨ ·*j%iúŠel6\nÖÙxlXlOLAlª–ØWA …]i#ëpP;&`[HĞ𭄃»\0ùl1`’€àîOâv€9%rŞ\\ğ®KQ[\0ìXb^ÎLO——4ò     8ù7AB„†PFªŠü‘°ÉĞžŽüL§·*!¶öRÂ1EœÇeÈO¹4Æ…®H ÊK³2ÂD9fSç™Á:n·Æ<¡ Πğ>Ì%£ğ¤Ô7VTrÃ]ø)-ÈC°ŽJ!ÀU•„¢âœ‹§òºøóÌæ¨%·0àcs±ÿfV=GÍ°Íãa—Æ‘:Ğ%CËæ²™Š)S5`[Îí€;GÌğæË<yµkmÀ_c\\ëg¼G,gcJ9œab€í^²\\YjŞ~¥İ‹v‹ 0楀Là©— Ñfw(âŽÉşi[‘õû'cå”Ç;ñöô5)eyÚ\nb¬q ÜóD„§\"¥ƒ1hsG•²ih€8ÇÑ*Y¢ƒ-¨\$¯¶thøóBÛ»X*•žĞ©ß¬vËQYž*¿~Ğò€êÎú«äX8 ,ª½¾ å9bdµ\\OìL.|)1\0ŸLµ· èP ¸Ëø’³ÇznGqv…L^\\\\C“Ò~‹~=YK¹¾z|³¦! İz ƒè°ÒÑI•«ÒL”ìäëצMÅm…‚wv{&˜¤X•)Å¥r=i±r &™P§^ÙÒ ìúfÁ©WÀO¦5j±(NífšE¦Pꔩ›Óö/U¨A³8:½ÓƯñ§´WX\nep»¤¯xÅ\0Òz835ŽÛ)tfSàTÈc2¿VxŠX³^KÌfF­}k@º(|òælÓÒyZÅ´áÁ_Gò=ñ×_ÈËŸ°†™Ğô\nÇHâG\r{„hÌÅ()Hs¿ûf2­e>àAŽ%áª>û\r]ğ‰eğH Nk *†×\n໡Ë÷!Nƒ³/p”ìRá…\$×FOÉD€ãì_9À|=¦Hİzüë{2æfÙP^¢~–¸'6û=6̈› F5hÛDv`.şDsßfQwÓÆiÇ)†ÍI)¯k&VË\0ö¨&^Pí—Íi\"Ã0SL]\\±¾(„<Ñ^»¬zëğø«a`¸~,,ÜÃãL›Y:Ì>%\$:%ku–Bı„™j.É‚·eéë§f©Á×[!c­/´pk®µ˜Et¡5䀖hÕv?É]ÆŞkDZÛ\\}vNu”P|u\r!•r¡-ìêæ”£ÊŞî£™q¨üÓkHñ#P:Dç‡m´@‘Uveó0—8óåi÷oR• ES½rA)(¦ÆÛ³!9ÑHt±EŒ¶]mƒ”IU÷ƒ~ ‘T•¢’ª~êÏÓk —bÕ™X\0º—€ÎR I*¿æÍÉÉBï²ã{Ÿ™ÈöÄš-8Á}4Æ]®Øï7›¬İçŞ¡#›Ò¾¶Ôw­µ=ıßSjÛܨN÷‚s¾\rmo‘Š±˜ß¦÷ÓNLo·€³§K²Sœ—­ùïŸ\0;ö’\"VdlXœ`9˜zÚ‘Ÿ縘=õ°û}Uœ·Ò”—~¥EşIŒ1†×wõ¹üfoj\$[c‚ñÙ„};„tÅ®@HXúe\"–¾!Ws++‰ˆX`=Í\nûñˆÀh°€cÛ¨ÓøÆÄÄDGqškÛ󗂺Ù)¦Å¶xçWbõñÎıÚB+îtuVJŸÏĂΉßİT{Ëp‰0VGùíá¾Ë²o¹Ş   xµÕ\"å¥+ˆD|†S´‚B´ÇĞ‘œ/g÷JŞ,âoQù-Aí~SK_¥çǔ䘡ít˜[Q/̍L‡ÀÀö†ûì‰I¤wIÌ€D' X’¹yÂÆE’â䆾^ù‚sz\rû„]œÒ3 äP~ÊÖ²â¾H–++Á@œÏBžwƒß ŒwÆ’«õT*`;®—yëÉ S‡ü&KϹéÌôïse+ùµÿ…e±F:qO\r\\UDB!„\"~ºh`2ÊÜìá£,xm’©–®G•Kb¹eªØ %Õ)ixJ?—ó#£˜¦wIŠŒøÄrm’ÍDf»5ï\0006ËşŠ[›·©2é¹…>P‰¸Mwa§¡FØîQù8o¦´6²“I Ş`Á5æ‚@'£Åæq˞¥A6²ê¨µº¯S|˜ºÁªãÿW)Û4SU`1ÄÒ~ñJ\$áÖ«\rŸª‡Ö¹BlB°m*ÖOµÙ`®ö]ÔP6ÉÂh U€\0‚@\"€€       àFERÇ’4L\0°5şr© GL8\n4œ*ªŠ ²£N(@0¦Ë³àhqÁİN›to‹æÉX‹L  àFmb¾Ø{ÈÉØõ»Z-0’g¶        ÁFºÑÚѹ~˼ =™{      ¢³ sœÊÌ¥q-Â{áYöÜ7-¤’,ß\0Úóz‘ª6@tíÖR{¬«ÅŸ…F…o9úÛærÔ/Ê7/—7Ë\0•3¨Bƒó™Úƒ~ÒE)Ÿbq-y fT(ÃÅ\"u®ŸQù{ÅZ)CHS_Jp*;Q\\‚÷ÓUÁ¡d‰Y˜¹uÖÚ6ëâxhw>Q‡¢ Ğx’éÙíê-ZÑİiCT¸õɈBèÊ‚@ø8à¦â¹ğ‘ ìS€¤¤\né'I¨ëáÒ÷¤TæJ0ñ^ˆÓ­Üğ:xÕú hû´íèˆj”€·ÊB?Ž´íå øĞO™¸¢7ìÙêg¢®.Ÿœ9ß-yˆşdUç” [å?*„†ŞžPo–ëåÅ3Ú8ºó¼Æ;@ÀßÌá6óJL¼Öo6£‹Íäó‰ï€eèt+‘§¼â.°P5æ÷õN£òGƒüyÒ\rL€»Õ^@«ŸÊÖ—„C²ÓÎóSÖ’•z֏ªä_¥F\"6\rgâñ×÷`-õד={Ûì¿û¾%òO“¼—߬V®ÍMhô»ıQ13höı¾aˆ §£'èåbåC¦ƒH|ğ\$à…*ä>Ùö…<èßmù}'ÒFH\nü /L\0ïŞ8ºUϹ…ÏåA–‡C×\"ö§»½é°:wö‘4è.H\\…ΎÌú޾sôGÖWïÊ‘úëâˆìPÉCû0ž˜ªÊ‹ƒìø·r©{ÜÖ0—ÃÒîÓ¶¦-­›ˆ‚aÿŸt»rŞï¼©ÿ6§u:ğ»|[¹t­`%<3+q¹ÄBÜž\"¬± øS\0+óÅ>!ƒô¹`àLJçâoÀ_õÇş øæÿT÷ø™J…oóxnlµ)úß×~½ö\rüš N¼uŒ ƒ£Ÿؘ8]æî‘{‚8-NôSS‰ß†?     œQ€ö¥Z«YvÈ62’ ¸ ÿJ0ÃÀÅ_Æ€°o%¯ ´ö´É@! pHµğëÙA‰h¸Œ&I“˃\0!Q§ZyËrİ\nİ\$7ñí#@Ìl³èìŸhwˆŸ @Ÿ¥™…Ds%àkóíišˆ4 ¤]\nk@ñ‚Ế<H΍Jyá˧èê]ט‚şh\"Æõ°Gõ.@Žİ€#Ž5PnDÖĞSõÄ2üÇ{¿Gñ2{ô*!Ž¿ÀØ€à\0¿Ì#ÁW ‚ıˆïğ˜Ğö9ÃÓ†¤Ùù_Ïž\0s      \0tşœAÁ Ò?Qûçğ¿¦÷“ºı¢0×ğq€6=ô\0Nk¼ù\08WÀÀ0í“^à@„€:5ï\0iğ       6zO\nÀøâ*ÕÒ”QO刊.ûøoÓ     rßàæK ­¦Ë~cY¤ü”™4ÀŒ+÷F5– !éû©CÀ‚ıi*c?À33ú!C:üÚ\\NE\0ú");}elseif($_GET["file"]=="jush.js"){header("Content-Type: text/javascript; charset=utf-8");echo
  170. lzw_decompress("v0œF£©ÌĞ==˜ÎFS ĞÊ_6MƳ˜èèr:™E‡CI´Êo:C„”Xc‚\ræØ„J(:=ŸE†¦a28¡xğ¸?Ä'ƒi°SANN‘ùğxs…NBáÌVl0›ŒçS      œËUl(D|Ò„çÊP¦À>šE†ã©¶yH chäÂ-3Eb“å ¸b½ßpEÁpÿ9.Š˜Ì~\nŽ?Kb±iw|È`Ç÷d.¼x8EN¦ã!”Í2™‡3©ˆá\r‡ÑYŽÌèy6GFmYŽ8o7\n\r³0¤÷\0DbcÓ!¾Q7Шd8‹Áì~‘¬N)ùEг`ôNsßğ`ÆS)ĞOé— ·ç/º<xÆ9Žo»ÔåµÁì3n«®2»!r¼:;ã+Â9ˆCȨ®‰Ã\n<ñ`Èó¯bè\\š?`†4\r#`È<¯Be ãB#¤N Üã\r.D`¬«jê4ÿŽŽpéar°ø 㢺÷>ò8Ó\$Éc ¾1Écœ ¡c êİê{n7ÀáƒAğNÊRLi\r1À¾ø!£(æ j´®+Âê62ÀXÊ8+Êâàä.\rÍÎôƒÎ!x¼åƒhù' ãâˆ6Sğ\0RïÔôñOÒ\n¼…1(W0…ãœÇ7qœë:NÃE:68n+ŽäÕ´5_(®s \rã”ê‰ /m6PÔ@ÃEQàÄ9\n¨V-‹Áó\"¦.:åJÏ8weÎq½|؇³XĞ]µİY XÁeåzWâü Ž7âûZ1íhQfÙãu£jÑ4Z{p\\AUËJ<õ†káÁ@¼ÉÃà@„}&„ˆL7 U°wuYhÔ2¸È@ûu  Pà7ËA†hèÌò°Ş3 ÛêçXEÍ…Zˆ]­lá@MplvÂ)æ ÁÁHW‘‘Ôy>Y-øYŸè/«›ªÁî hC [*‹ûFã­#~†!Ğ`ô\r#0PïC˝—f ·¶ ¡îÃ\\‡É^Ã%B<\\½fˆޱÅáĞİã&/¦O‚ğL\\jF¨jZ£1«\\:Æ´>N¹¯XaFÃAÀ³²ğÃØÍf…h{\"s\n×64‡ÜøÒ…¼?Ä8Ü^p\"띰ñȸ\\Úe(¸PƒNµìq[g¸Árÿ&Â}PhÊà¡ÀWÙí*Şír_sËP‡hà¼àĞ\nÛËÃomõ¿¥Ãê—Ó#§¡.Á\0@épdW ² \$Òº°QÛ½Tl0† ¾ÃHdHë)š‡ۏÙ À)PÓÜØHgàıUş„ªBèe\r†t:‡Õ\0)\"Åtô,´œ’ÛÇ[(DøO\nR8!†Æ¬ÖšğÜlAüV…¨4 hà£Sq<žà@}ÃëÊgK±]®àè]â=90°'€åâøwA<‚ƒĞÑaÁ~€òWšæƒD|A´††2ÓXÙU2àéyÅŠŠ=¡p)«\0P    ˜s€µn…3îr„f\0¢F…·ºvÒÌG ®ÁI@é%¤”Ÿ+Àö_I`¶ ÌôÅ\r.ƒ N²ºËKI…[”Ê–SJò©¾aUf›Szûƒ«M§ô„ %¬·\"Q|9€¨Bc§aÁq\0©8Ÿ#Ò<a„³:z1Ufª·>îZ¹l‰‰¹ÓÀe5#U@iUG‚™©n¨%Ò°s¦„Ë;gxL´pPš?BçŒÊQ\\—b „ÿé¾’Q„=7:¸¯İ¡Qº\r:ƒtì¥:y(Å ×\nÛd)¹ĞÒ\nÁX; ‹ìŽêCaA¬\ráİñŸP¨GHù!¡ ¢@È9\n\nAl~H úªV\nsªÉÕ«Æ¯ÕbBr£ªö„’­²ßû3ƒ\ržP¿% ¢Ñ„\r}b/‰Î‘\$“5§PëCä\"wÌB_çŽÉUÕgAtë¤ô…夅é^QÄåUÉÄÖj™Áí Bvhì¡„4‡)¹ã +ª)<–j^<Lóà4U* õBg ëĞæè*nÊ–è-ÿÜõÓ 9 O\$´‰Ø·zyM™3„\\9Üè˜.oŠ¶šÌë¸E(iåàž œÄÓ7   tßšé-&¢\nj!\rÀyœyàD1gğÒö]«ÜyRÔ7\"ğ槷ƒˆ~ÀíàÜ)TZ0E9MåYZt Xe!İf†@ç{Ȭyl     8‡;¦ƒR{„ë8‡Ä®ÁeØ+ULñ'‚F²1ıøæ8PE5-    Ğ_!Ô7…ó [2‰JËÁ;‡HR²éǹ€8p痲݇@™£0,Õ®psK0\r¿4”¢\$sJ¾Ã4ÉDZ©ÕI¢™'\$cL”R–MpY&ü½Íiçz3GÍzÒšJ%ÁÌPÜ-„[É/xç³T¾{p¶§z‹CÖvµ¥Ó:ƒV'\\–’KJa¨ÃMƒ&º°£Ó¾\"à²eo^Q+h^âĞiTğ1ªORäl«,5[ݘ\$¹·)¬ôjLƁU`£SË`Z ^ğ|€‡r½=Ğ÷nç™»–˜TU  1Hyk›Çt+\0váD¿\r <œàÆ™ìñjG”ž­tÆ*3%k›Y ܲT*İ|\"CŠülhE§(È\rÃ8r‡×{Üñ0å²×şÙDÜ_Œ‡.6иè;ãü‡„rBjƒO'Ûœ¥¥Ï>\$¤Ô`^6™Ì9‘#¸¨§æ4Xş¥mh8:êûc‹ş0ø×;Ø/Ô‰·¿¹Ø;ä\\'( î„tú'+ ™òı¯Ì·°^ ]­±NÑv¹ç#Ç,ëvğ×ÃOÏiÏ–©>·Ş<SïA\\€\\îµü!Ø3*tl`÷u\0p'è7…Pà9·bsœ{Àv®{·ü7ˆ\"{ÛÆrîaÖ(¿^æ¼İE÷úÿë¹gÒÜ/¡øžUÄ9g¶î÷/ÈÔ`Ä\nL\n)À†‚(Aúağ\" žçØ   Á&„PøÂ@O\n師0†(M&©FJ'Ú! …0Š<ïHëîÂçÆù¥*Ì|ìÆ*çOZím*n/bî/ö®Ô ˆ¹.ìâ©o\0ÎÊdnÎ)ùŽi:RŽÎëP2êmµ\0/vìOX÷ğøFʳψîŒè®\"ñ®êöî¸÷0õ0ö‚¬©í0bËĞgjğğ\$ñné0}°  î@ø =MÆ‚ 0nîPŸ/pæotì€÷°¨ğ.Ì̽ g\0Ğ)o—\n0È÷‰\rF¶é € b¾i¶Ão}\n°̯…     NQ °' ğxòFaĞJîÎôLõéğĞàÆ\rÀÍ\r€Öö‘0Åñ' ğ¬Éd oepİ°4DĞÜʐ¦q(~ÀÌ ê\r‚E°ÛprùQVFHœl£‚Kj¦¿äN&­j!ÍH`‚_bh\r1Ž  º n!ÍɎ­ z™°¡ğ¥ Í\\«¬\rŠíŠÃ`V_kÚÃ\"\\ׂ'Vˆ«\0ʾ`ACúÀ±Ï…¦VÆ`\r%¢’ÂÅì¦\rñ⃂k@NÀ°üBñíš™¯ ·!È\n’\0Z™ 6°\$d Œ,%à%laíH×\n‹#¢S\$ !\$@¶İ2±„I\$r€{!±°J‡2HàZM\\ÉÇhb,‡ '||cj~gĞr…`¼Ä¼º\$ºÄ +êA1ğœE€ÇÀÙ <ÊL¨Ñ\$âY%-FDªŠd€L焳 ª\n@’bVfè¾;2_(ëôLÄĞ¿Â ²<%@Úœ,\"êdÄÀN‚erô\0æƒ`ĤZ €¾4Å'ld9-ò#`äóÅ–…à¶Öãj6ëÆ£ãv ¶àNÕ͐f Ö@܆“&’B\$ å¶ (ğZ&„ßó278I à¿àP\rk\\§—2`¶\rdLb@Eöƒ2`P( B'ã €¶€º0²& ô{•“§:®ªdBå1ò^؉*\r\0c<K|İ5sZ¾`ºÀÀO3ê5=@å5ÀC>@ÂW*      =\0N<g¿6s67Sm7u?      {<&LÂ.3~DÄê\rÅš ¯x¹í),rîinÅ/ åO\0o{0kÎ]3>m‹”1\0”I@Ô9T34+Ô™@e”GFMCÉ\rE3ËEtm!Û#1ÁD @‚H(‘Ón ÃÆ<g,V`R]@úÂÇÉ3Cr7s~ÅGIói@\0vÂÓ5\rVß'¬ ¤  Î£PÀÔ\râ\$<bĞ%(‡Ddƒ‹PWÄîĞÌbØ fO æx\0è} Ü â”lb &‰vj4µLS¼¨Ö´Ô¶5&dsF Mó4ÌÓ\".HËM0ó1uL³\"ÂÂ/J`ò{Çş§€ÊxǐYu*\"U.I53Q­3Qô»J„”g ’5…sàúŽ&jÑŒ’Õu‚٭ЪGQ MTmGBƒt l-cù*±ş\rŠ«Z7Ôõó*hs/RUV·ğôªBŸNˈ¸ÃóãêÔŠài¨Lk÷.©´Ätì é¾©…rYi”Õé-Sµƒ3Í\\šTëOM^­G>‘ZQjÔ‡™\"¤Ž¬i”ÖMsSãS\$Ib      f²âÑu榴™å:êSB|i¢ Y¦ƒà8   vÊ#é”Dª4`‡†.€Ë^óHÅM‰_Õ¼ŠuÀ™UÊz`ZJ    eçºİ@Ceíëa‰\"mób„6Ô¯JRÂÖ ‘T?Ô£XMZÜÍІÍòpèÒ¶ªQv¯jÿjV¶{¶¼ÅCœ\rµÕ7‰Tʞª úí5{Pö¿]’\rÓ?QàAAÀ莋’Í2ñ¾ “V)Ji£Ü-N 99f–l JmÍò;u¨@‚<FşÑ ¾e†j €ÒĦI‰<+CW@ğçÀ¿Z‘lÑ1É<2ÅiFı7`KG˜~L&+NàYtWH飑w       Ö•ƒòl€Òs'gÉãq+Lézbiz«ÆÊÅ¢Ğ.ĞŠÇzW²Ç ùzd•W¦Û÷¹(y)vİE4,\0Ô \"d¢¤\$Bã{²Ž!)1U†5b p#Å}m=×È@ˆwÄ      P\0ä\rì ¢·‘€`O|ëÆö        œÉüÅõûYôæJÕ‚öE×ÙOuž_§\n`F`È}MÂ.#1Ⴌfì*´Õ¡µ§  ¿zàucû€—³ xfÓ8kZR¯s2Ê‚-†’§Z2­+ŽÊ·¯(åsUõcDòÑ·Ê ì˜İX!àÍuø&-vPĞر\0'LïŒX øLùŒˆo    İ ô>¸ÕŽÓ\r@ÙPõ\rxF×üE€ÌÈ­ ï%À ãì®ü=5NÖœƒ¸?„7ùNËÃ…©wŠ`ØhX«98 ́ø¯q¬£zãÏd%6Ì‚tÍ/…•˜ä ¬ëLúÍl¾Ê,ÜKa•N~Ï ÀÛìú ,ÿ'íÇ€M\rf9£w˜!x÷x[ˆÏ‘ØG’8;„xA˜ù-IÌ&5\$–D\$ö¼³%…ØxѬÁ”È´À Œ]›¤õ‡&o‰-39ÖLù½zü§y6 ¹;u¹zZ èÑ8ÿ_•Éx\0D?šX7†™«’y±OY.#3Ÿ8 ™Ç€˜e”Q¨=Ø€*˜™GŒwm ³Ú„Y‘ù  ÀÚ]YOY¨F¨íšÙ)„z#\$eŠš)†/Œz?£z;™—Ù¬^ÛúFÒZg¤ù• Ì÷¥™§ƒš`^Úe¡­¦º#§“Øñ” ©Žú?œ¸e£€M£Ú3uÌ偃0¹>Ê\"?Ÿö@×—Xv•\"甌¹¬¦*Ô¢\r6v~‡ÃOV~&ר^gü šÄ‘ٞ‡'΀f6:-Z~ ¹šO6;zx²;&!Û+{9M³Ù³d¬ \r,9Öí°ä·W Æİ­:ê\rúÙœùã@睂+¢·]œÌ-ž[gž™Û‡[s¶[ižÙiÈq››y›éxé+“|7Í{7Ë|w³}„¢›£E– ûW°€Wk¸|J؁¶å‰xmˆ¸q xwyjŸ»˜#³˜e¼ø(²©‰¸Àߞþ™†ò³ {èßڏ y“ »M»¸´@«æÉ‚“°Y(gÍš-ÿ©º©äí¡š¡ØJ(¥ü@ó… ;…yÂ#S¼‡µY„Èp@Ï%èsžúoŸ9;°ê¿ôõ¤¹+¯Ú   ¥;«ÁúˆZNٯº§„š k¼V§·u‰[ñ¼x…|q’¤ON?€ÉÕ      …`uœ¡6|­|X ¹¤­—س|Oìx!ë:¨œÏ—Y]–¬¹Ž™c•¬À\r¹hÍ9nÎ Á¬¬ë€Ï8'—ù‚ê à Æ\rS.1¿¢USȸ…¼X‰É+ËÉz]ɵʤ?œ©ÊÀCË\r×Ë\\ º­¹ø\$Ï`ùÌ)UÌ|ˤ|Ѩx'ÕœØÌäÊ<àÌ™eÎ|êÍ³ç— â’Ìé—LïÏİMÎy€(Û§ĞlĞº¤O]{Ѿ×FD®ÕÙ}¡yu‹ÑÄ’ß,XL\\ÆxÆÈ;U×ÉWt€vŸÄ\\OxWJ9È’×R5·WiMi[‡Kˆ€f(\0æ¾dÄšÒè¿©´\rìMÄáÈÙ7¿;ÈÃÆóÒñçÓ6‰KʦIª\rÄÜÃxv\r²V3ÕÛßɱ.ÌàRùºɍá|Ÿá¾^2‰^0ß¾\$ QÍä[ã¿D÷áÜ£å>1'^X ~t1\"6Lş›+ş¾Aàžeá“æŞåI‘ç~Ÿåâ³â³@ßÕ­õ pM>Óm<´ÒSKÊç-HÉÀ¼T76ÙSMfg¨=»ÅGPÊ°›PÖ\r¸é>Íö¾¡¥2Sb\$•C[Ø×ï(Ä)žŞ%Q#G`uğ°ÇGwp\rkŞKe—zhjÓ“zi(ôèrO«óÄŞÓşØT=·7³òî~ ÿ4\"ef›~ íd™ôíVÿZ‰š÷U•-ëb'VµJ¹Z7ÛöÂ)T‘£8.<¿RMÿ\$‰žôÛØ'ßbyï\n5øƒİõ_Ž àwñΰíUğ’`eiŞ¿J”b©gğuSÍë?Íå`öážì+¾Ïï Mïgè7`ùïí\0¢_Ô-ûŸõ _÷–?õF°\0“õ¸X‚å´’[²¯Jœ8&~D#Áö{P•Øô4Ü—½ù\"›\0ÌÀ€‹ı§ı@Ò“–¥\0F ?* ^ñå¯wëО:ğ¾uàÏ3xKÍ^ów“¼¨ß¯‰y[Ԟ(žæ–µ#¦/zr_”g·æ?¾\0?€1wMR&M¿†ù?¬St€T]İ´Gõ:I·à¢÷ˆ)‡©B vô§’½1ç<ôtÈâ6½:W{ÀŠôx:=ÈŒŞšóø:Â!!\0x›Õ˜£÷q&áè0}z\"]ÄŞo•z¥™ÒjÃw×ßÊÚÁ6¸ÒJ¢P۞[\\ }ûª`S™\0à¤qHMë/7B’€P°ÂÄ]FTã•8S5± /IÑ\rŒ\n îO¯0aQ\n >Ã2­j…;=Ú¬ÛdA=­p£VL)Xõ\n¦`e\$˜TƦQJÍó®ælJïŠÔîÑy„IŞ ä:ƒÑ ÄÄBùbPÀ†ûZ͸n«ª°ÕU;>_Ñ\n    ¾õëĞÌ `–ÔuMòŒ‚‚Â֍m³ÕóÂLwúB\0\\b8¢Mܐ[z‘&©1ı\0ô        ¡\r˜TÖ×› €+\\»3ÀPlb4-)%Wd#\nÈår ŞåMX\"Ï¡ä(Ei11(b`@fÒ´­ƒSÒóˆjåD†bf£}€rムıD‘R1…´bÓ˜AÛïIy\"µWvàÁgC¸IÄJ8z\"P\\i¥\\m~ZR¹¢vî1ZB5IŠÃi@x”†·°-‰uM\njKÕU°h\$o—ˆJϤ!ÈL\"#p7\0´ P€\0ŠD÷\$         GK4eÔĞ\$\nGä?ù3£EAJ F4àIp\0«×FŽ4±²<f@ž %q¸<kãw€   àLOp\0‰xÓÇ(      €G>ğ@¡ØçÆÆ9\0TÀˆ˜ìGB7 - €žøâG:<Q™ #èÓÇ´û1Ï&tz£á0*J=à'‹J>ØßÇ8q¡Ğ¥ªà €OÀ¢XôF´àQ,ÀÊĞ\"9‘®pä*ğ6 6A'ı,y€IF€Rˆ³TˆÏı\"”÷HÀR‚!´j#kyFÀ™àe‘¬z£ëéÈğG\0Žp£‰aJ` C÷iù@œT÷|\n€Ix£K\"­´*¨Tk\$c³òÆ”aAh€“! \"úE\0OdÄSxò \0T       ö\0‚žà!FÜ\n’U“|™#S&         IvL\"”“…ä\$hĞÈŞEAïN\$—%%ù/\nP†1š“²{¤ï) <‡ğ L å-R1¤â6‘¶’<@O*\0J@q¹‘Ôª#É@ǵ0\$tƒ|’]ã`»¡ÄŠA]èÍìPá‘€˜CÀp\\pÒ¤\0™ÒÅ7°ÄÖ@9©bmˆr¶oÛC+Ù]¥JrÔfü¶\rì)d¤ ’Ñœ­^hßI\\Î. g–Ê>¥Í×8ŒŞÀ'–HÀf™rJÒ[rço㥯.¹v„½ï#„#yR·+©yËÖ^òù›†F\0᱁™]!É•ÒŞ”++Ù_Ë,©\0<@€M-¤2WòâÙR ,c•Œœe2Ä*@\0êP €Âc°a0Ç\\PÁŠˆO  ø`I_2Qs\$´w£¿=:Îz\0)Ì` Ì hŠÂ–Áƒˆç¢\nJ@@Ê«–\0šø 6qT¯å‡4J%•N-ºm¤Äåã.É‹%*cnäËNç6\"\rÍ‘¸òè—ûŠfÒAµÁ„ põM Û€I7\0™MÈ>lO›4ÅS      7™cÍì €\"ìߧ\0å“6îps…–Äİåy.´ã   ò¦ñRKğ•PAo1FÂtIÄb*ÉÁ<‡©ı@¾7ĞË‚p,ï0NÅ÷: ¨N²m ,xO%è!‚Úv³¨˜ gz(ĞM´óÀIÃà      à~yËö›h\0U:éØOZyA8<2§²ğ¸ÊusŞ~lòÆÎEğ˜O”0±Ÿ0]'…>¡İɍŒ:ÜêÅ;°/€ÂwÒôäì'~3GΖ~Ó­äş§c. ş„òvT\0cØt'Ó;P²\$À\$ ø€‚Ğ-‚s³òe|º!•@dĞObwÓæc¢õ'Ó@`P\"xô µèÀ0O™5´/|ãU{:b©R\"û0…шk˜Ğâ`BD\nk€Pãc©á4ä^ p6S`Ü\$ëf;Î7µ?lsÅÀ߆gDÊ'4Xja    A‡…E%™   86b¡:qr \r±]C8ÊcÀF\n'ÑŒf_9Ã%(¦š*”~ŠãiSèÛ É@(85 T”Ë[ş†Jڍ4I…l=°ŽQÜ\$dÀ®hä@D        -Ù!ü_]ÉÚH–ÆŠ”k6:·Úò\\M-ÌØğò£\r‘FJ>\n.‘ ”qeGú5QZ´†‹' É¢ž½ہ0ŸîzP–à#ŤøöÖéràÒít½’ÒÏˎşŠ<QˆT¸£3D\\¹„ÄÓpOE¦%)77–Wt[ºô@¼›Žš\$F)½5qG0«-ÑW´v¢`è°*)RrÕ¨=9qE*K\$g    ‚íA!åPjBT:—Kû§!×÷H“ R0?„6¤yA)B@:Q„8B+J5U]`„Ò¬€:£ğå*%Ip9ŒÌ€ÿ` KcQúQ.B”±Ltbª–yJñEê›Té¥õ7•ÎöAmÓ䢕Ku:ŽğSji— 5.q%LiFºšTr¦Ài©ÕKˆÒ¨z—55T%U•‰UÚIÕ‚¦µÕY\"\nSÕm†ÑÄx¨½Ch÷NZ¶UZ”Ä( Bêô\$YËV²ã€u@è”»’¯ ¢ª|        ‚\$\0ÿ\0 oZw2Ò€x2‘ûk\$Á*I6IÒn• •¡ƒI,€ÆQU4ü\n„¢). øQôÖaIá]™À èLâh\"øf¢ÓŠ>˜:Z¥>L¡`n˜Ø¶Õì7”VLZu”…e¨ëXú膺B¿¬¥B‰º’¡Z`;®ø•J‡]òÑ€žäS8¼«f \nÚ¶ˆ#\$ùjM(¹‘Ş¡”„¬a­Gí§Ì+Aı!èxL/\0) Cö\nñW@é4€º áÛ©• ŠÔRZƒ®â =˜Çî8“`²8~â†hÀìP °\r–     °žìD-FyX°+Êf°QSj+Xó|•È9-’øs¬xØü†ê+‰VÉcbpì¿”o6HĞq °³ªÈ@.€˜l 8g½YMŸÖWMPÀªU¡·YLß3PaèH2Ğ9©„:¶a²` ¬Æd\0à&ê²YìŞY0Ù˜¡¶SŒ-—’%;/‡TİBS³PÔ%fØÚı• @ßFí¬(´Ö*Ñq +[ƒZ:ÒQY\0Ş´ëJUYÖ“/ı¦†pkzȈò€,´ğª‡ƒjÚꀥW°×´e©JµFèıVBIµ\r£ÆpF›NÙ‚Ö¶™*Õ¨Í3kÚ0§D€{™Ôø`q™•Ò²Bqµe¥D‰ cÚÚÔVÃE©‚¬nñ×äFG E›>jîèĞú0g´a|¡Shì7uÂİ„\$•†ì;aô—7&¡ë°R[WX„ÊØ(qÖ#Œ¬P¹Æä×–İc8!°H¸àØVX§ÄŽ­jøÊZŽô‘¡¥°Q,DUaQ±X0‘ÕÕ¨ÀİËGbÁÜlŠBŠt9-oZü”L÷£¥Â­åpˇ‘x6&¯¯MyÔÏsҐ¿–èğ\"ÕÍ€èR‚IWU`c÷°à}l<|Â~Äw\"·ğvI%r+‹Rà¶\n\\ØùÃÑ][‹Ñ6&Á¸İÈ­Ãa”ÓºìÅj¹(Ú“ğTÑ“À·C'Š…´ '%de,È\n–FCÅэe9C¹NäЍ‚-6”UeȵŒıCX¶ĞV±ƒ¹ıÜ+ÔR+ºØ”Ë•3B܁ڌJğ¢è™œ±æT2 ]ì\0PèaÇt29Ï×(i‹#€aÆ®1\"S…:ö· ˆÖoF)kÙ fôòÄЪ\0ÎÓ¿şÕ,ËÕwêƒJ@ìÖVò„Žµéq.e}KmZúÛïå¹XnZ{G-»÷ÕZQº¯Ç}‘Å׶û6ɸğµÄ_žØÕ‰à\nÖ@7ß` ÕC\0]_ ©Êµù¬«ï»}ûGÁWW: fCYk+éÚbÛ¶·¦µ2S,    Ú‹Ş9™\0﯁+şWÄZ!¯eş°2ûôà›—í²k.OcƒÖ(vÌ®8œDeG`ۇŒöL±õ“,ƒdË\"CÊÈÖB-”Ä°(ş„ „„p÷íÓp±=àÙü¶!ık’ØÒļï}(ıÑÊB–kr_Rî—ܼ0Œ8a%Û˜L  \0é†Àñ‰b¥²šñÅş@×\"ÑÏr,µ0TÛrV>ˆ…ÚÈQŸĞ\"•rŞ÷P‰&3báP²æ- x‚Ò±uW~\"ÿ*舞ŒNâh—%7²µşK¡Y€€^A÷®úÊC‚èş»p£áîˆ\0ğ ..`cÅæ+ÏŠâGJ£¤¸H¿À®E‚…¤¾l@|I#AcâÿD…|+<[c2Ü+*WS<ˆràãg¸ÛÅ}‰Š>iİ€!`f8ñ€(c¦èÉQı=fñ\nç2Ñc£h4–+q8\na·RãBÜ|°R“×ê¿İm µŠ\\qÚõgXÀ –ÏŽ0äXä«`nîF€îìŒO pÈîHòCƒ”jd¡fµßEuDV˜bJɦ¿å:±ï€\\¤!mɱ?,TIa˜†ØaT.L€]“,JŒ?™?Ï”FMct!aÙ§RêF„Gğ!¹Aõ“»rrŒ-pŽXŸ·\r»òC^À7áğ&ãRé\0ÎÑf² *àA\nõÕ›Háã¤yîY=Çúè…l€<‡¹AÄ_¹è     +‘ÎtAú\0B•<Ay…(fy‹1Îc§O;p èÅᦝ`ç’4Ğ¡Mìà*œîf†ê 5fvy {?©àË:yøÑ^câÍuœ'‡™€8\0±¼Ó±?«ŠgšÓ‡ 8BÎ&p9ÖO\"zÇõžrs–0ºæB‘!uÍ3™f{×\0£:Á\n@\0ÜÀ£pÙÆ6şv.;àú©„Êb«Æ«:J>Ë‚‰é-ÃBÏhkR`-ÜñÎğawæxEj©…÷Árž8¸\0\\Áïô€\\¸Uhm› ı(mÕH3Ì´í§S™“Áæq\0ùŸNVh³Hy       —»5ãM͎e\\g½\nçIP:Sj¦Û¡Ù¶è<Ž¯Ñxó&ŒLÚ¿;nfͶcóq›¦\$fğ&lïÍşi³…œàç0%yΞ¾tì/¹÷gU̳¬dï\0e:ÃÌhïZ   Ğ^ƒ@ç ı1€Ïm#ÑNów@ŒßOğğzGÎ\$ò¨¦m6é6}ÙÒÒ‹šX'¥I×i\\QºY€¸4k-.è:yzÑÈİH¿¦] ææxåGÏÖ3ü¿M\0€£@z7¢„³6¦-DO34Ş‹\0ΚÄùΰ t\"Î\"vC\"JfÏRʞÔúku3™MÎæ~ú¤ÓŽ5V à„j/3úƒÓ@gG›}D龺BÓNq´Ù=]\$é¿I‡õӞ”3¨x=_j‹XÙ¨fk(C]^jÙMÁÍF«ÕÕ¡ŒàÏ£CzÈÒVœÁ=]&ž\r´A< æµÂÀÜãç6ÙÔ®¶×´İ`jk7:gÍî‘4Õ®áë“YZqÖftu|hÈZÒÒ6µ­i〰0 ?éõ骭{-7_:°×ސtѯíck‹`YÍØ&“´éIõlP `:íô j­{hì=Ğf    à Ã[byž¢Ê€oĞ‹B°RS—€¼B6°À^@'4æø1UÛDq}ìÃNÚ(Xô6j}¬cà{@8 ãòğ,À      ÏPFCàğ‰Bà\$m v˜¨Pæ\"ºÛLöÕCS³]›İàEÙŞÏlU†Ñfíwh{o(—ä)è\0@*a1GÄ ( D4-cØóP8£N|R›†âVM¸°×n8G`e}„!}¥€Çp»‡Üòı@_¸ÍÑnCtÂ9ŽÑ\0]»u±î¯s»Šİ~èr§»#Cn p;·%‹>wu¸ŞnÃwû¤İžê.âà[ÇİhT÷{¸İ值      ç¨Ë‡·JğÔÆ—iJÊ6æ€O¾=¡€‡ûæßE”÷Ù´‘ImÛïÚV'É¿@â&‚{ª‘›òö¯µ;íop;^–Ø6Ŷ@2ç¯lûÔŞNï·ºMÉ¿r€_Ü°ËÍ´` ì( yß6ç7‘¹ıëîÇ‚“7/Ápğe>|ßà   ø=½]Ğocû‘á&åxNm£‰çƒ»¬ào ·GÃN      p—‚»˜x¨•Ã½İğƒy\\3àø‡Â€'ÖI`râG÷]ľñ7ˆ\\7Ú49¡]Å^p‡{<Zá·¸q4™uÎ|ÕÛQÛ™àõp™ıši\$¶@oxñ_<Àæ9p BU\"\0005— iäׂ»¸Cûp´\nôi@‚[ãœÆ4¼jЁ„6bæP„\0Ÿ&F2~ŽÀù£¼ïU&š}¾½¿É˜        ™ÌDa<€æzx¶k£ˆ‹=ùñ°r3éË(l_”…FeF›ž4ä1“K        \\ӎldî     ä1H\r½€ùp!†%bGæXfÌÀ'\0Ȝؠ '6Àžps_›á\$?0\0’~p(H\n€1…W:9ÕÍ¢¯˜`‹æ:hÇB–èg›BŠk©ÆpÄƁót¼ìˆEBI@<ò%øÀù` êŠyd\\Y@D–P?Š|+!„áWÀø.:ŸLe€v,Ğ>qóAÈçº:ž–îbYéˆ@8Ÿd>r/)ÂBç4ÀĞÎ(·Š`|é¸:t±!«‹Á¨?<¯@ø«’/¥ S’¯P\0Âà>\\æâ |é3ï:VÑuw¥ëçx°(®²Ÿœ4€ÇZjD^´¥¦Lı'¼ìÄC[×'ú°§®éjº[ E¸ó uã°{KZ[s„ž€6ˆ‚S1Ìz%1õc™£B4ˆB\n3M`0§;çòÌÂ3Ğ.”&?¡ê!YAÀI,)ğå•l†W['ÆÊI‡Tjƒè>F©¼÷S§‡ BбPá»caşÇŒuï¢NİÏÀøHÔ LSôî0”ÕY`ÂÆÈ\"il‘\rçB²ëã/Œôãø%P€ÏİN”Gô 0JÆX\n?aë!Ï3@MæF&Ã³Öş¿,°\"î€èlbô:KJ\rï`k_êb÷üAáÙįÌü1Ñ I,Åİîüˆ;B,×:ó¾ìY%¼J ŽŠ#v”€'†{ßÑÀã „ž        wx:\ni°¶³’} cÀ°eN®Ñï`!wÆ\0ÄBRU#ØSı!à<`–&v¬<¾&íqOÒ+Σ¥sfL9QÒBʇ„ÉóäbÓà_+ï«*€Su>%0€Ž™©…8@l±?’L1po.ÄC&½íÉ BÀÊqh˜¦ó­’Ážz\0±`1á_ 9ğ\"–€è!\$øŒ¶~~-±.¼*3r?øòÀd™s\0ÌõÈ>z\nÈ\0Š0 1Ä~‘ô˜Jğ³ğú”|SŞœô k7gé\0ŒúKÔ d¶ÙaÉîPgº%ãw“DôêzmÒûÈõ·)¿‘ñŠœj‹Û×Âÿ`k»ÒQà^ÃÎ1üŒº+Îåœ>/wbüGwOkÃŞÓ_Ù'ƒ¬-CJ¸å7&¨¢ºğEñ\0L\r>™!Ïq́îÒ7İÁ­õoŠ™`9O`ˆàƒ”ö+!}÷P~EåNÈc”öQŸ)ìá#ûï#åò‡€ì‡ÌÑøÀ‘¡¯èJñÄz_u{³ÛK%‘\0=óáOŽX«ß¶Cù>\n²€…|wá?ÆF€Åê„Õa–Ï©UÙåÖb    N¥YïÉhŠ½»é‘/úû)ŞGÎŒ2ü™¢K|ã±y/Ÿ\0éä¿Z”{éßP÷YG¤;õ?Z}T!Ş0ŸÕ=mN¯«úÃfØ\"%4™aö\"!–ŞŸúºµ\0çõï©}»î[òçܾ³ëbU}»Ú•mõÖ2±• …ö/tşî‘%#.ÑØ–Äÿse€Bÿp&}[ËŸŽÇ7ã<aùKıïñ8æúP\0™ó¡g¼ò?šù,Ö\0ß߈r, >¿ŒıWÓşïù/Öş[™qık~®CÓ‹4ÛûGŠ¯:„€X÷˜Gúr\0ÉéŸâ¯÷ŸL%VFLUc¯Şä‘¢şŽHÿybP‚Ú'#ÿ×       \0Ğ¿ıÏì¹`9Ø9¿~ïò—_¼¬0qä5K-ÙE0àbôÏ­üš¡Žœt`lmêíËÿbŒàƘ; ,=˜  'S‚.bÊçS„¾øCc—ƒêëʍAR,„ƒíÆXŠ@à'…œ8Z0„&ìXnc<<È£ğ3\0(ü+*À3·@&\r¸+Ğ@h, öò\$O’¸„\0Å’ƒèt+>¬¢‹œbª€Ê°€\r£><]#õ%ƒ;Nìsó®ÅŽ€¢Êğ*»ïcû0-@®ªLì >½Yp#Ğ-†f0îÃʱaª,>»Ü`ÆÅàPà:9ŒŒo·ğ °ov¹R)e\0Ú¢\\²°Áµ\nr{îX™ÒøÎ:A*ÛÇ.Dõº7Ž»¼ò#,ûN¸\rŽE™Ô÷hQK2»İ©¥½zÀ>P@°° ¦     T<ÒÊ=¡:òÀ °XÁGJ<°GAfõ &×A^pã`©ÀĞ{ûÔ0`¼:ûğ€);U !Ğe\0Ïc†p\r‹³ ‹¾:(ø•@…%2      S¯\$Y«İ3é¯hCÖì™:O˜#ÏÁLóï/šé‚ç¬k,†¯Kåoo7¥BD0{ƒ¡jó ìj &X2Ú«{¯}„RÏx¤ÂvÁä÷Ø£À9Aë¸ ¶¾ 0‰;0õá‘à-€5„ˆ/”<Üç° ¾NÜ8E¯‘—Ç        +ãĞ…ÂPd¡‚;ªÃÀ*nŸ¼&²8/jX°\rš>    PϐW>Kà•O’¢VÄ/”¬U\n<°¥\0Ù\nIk@Šº㦃[àÈϦ²œ#Ž?€Ùã%ñƒ‚èË.\0001\0ø¡kè`1T · ©„¾ë‚ɐl¼šÀ£îÅp®¢°Á¤³¬³…< .£>íØ5ŽĞ\0ä»     O¬>k@Bn¾Š<\"i%•>œºzÄ– ç“ñá ºÇ3ÙPƒ! ğ\rÀ\"¬ã¬\r ‰>šadàöó¢U?ÚÇ”3P×Áj3£ä°‘>; Óä¡ ¿>žt6Ë2ä[Âğ޾M\r >°º\0äìP®‚·Bè«Oe*R n¬§œy;« 8\0ÈËÕoæ½0ıÓøiÂøş3Ê€2@Êıà£î¯?xô[÷€ÛÃLÿaŽ¯ƒw\ns÷ˆ‡ŒA²¿x\r[Ñaª6Âclc=¶Ê¼X0§z/> +šª‰ øW[´o2ÂøŒ)eî2şHQPéDY“zG4#YD…ö…ºp)     ºHúpŽ˜&â4*@†/:˜     á‰T˜      ­Ÿ¦aH5‘ƒëh.ƒA>œï`;.Ÿ­îY“Áa   Âòút/ =3…°BnhD?(\n€!ÄBúsš\0ØÌDÑ&D“J‘)\0‡jÅQÄyŽhDh(ôK‘/!Ğ>®h,=Ûõ±†ãtJ€+¡Sõ±,\"M¸Ä¿´NÑ1¿[;øĞ¢Š¼+õ±#<ìŒI¤ZÄŸŒP‘)ÄáLJñDéìP1\$Äîõ¼Q‘>dO‘¼vé#˜/mh8881N:øZ0ZŠÁèT •BóCÇq3%°¤@¡\0Øï\"ñXD à3\0•!\\ì8#h¼vìibÏ‚T€!dª—ˆÎüV\\2óÀSëÅÅ’\nA+ͽpšxÈiD(ìº(à<* öÚ+ÅÕE·ÌT®¾ BèS·CÈ¿T ´æÙÄ e„Aï’\"á|©u¼v8ÄT\0002‘@8D^ooƒ‚ø÷‘|”Nù˜ô¥ÊJ8[¬Ï3ÄÂõîJz׳WL\0¶\0ž€È†8×:y,Ï6&@”À E£Ê¯İ‘h;¼!f˜¼.Bş;:ÃÊÎ[Z3¥™Â«‚ğn»ìëÈ‘­éA¨’ÓqP4,„óºXc8^»Ä`׃‚ôl.®üº¢S±hŞ”°‚O+ª%P#Ρ\n?ÛÜIB½ÊeË‘O\\]ÎÂ6ö#û¦۽؁(!c) Nõ¸ºÑ?EØ”B##D íDdo½åPAª\0€:ÜnÂÆŸ€`  Úè Q„³>!\r6¨\0€‰V%cbHF×)¤m&\0B ¨2Ií5’Ù#]ú˜ØD>¬ì3<\n:MLğÉ9CñÊ˜0ãë\0“¨(ᏩH\nş€¦ºM€\"GR\n@éø`[Ã󀊘\ni*\0œğ)ˆü€‚ìu©)¤«Hp\0€Nˆ   À\"€®N:9qÛ.\r!´JÖÔ{,Û'æفŠ4… B†úÇ lqŨŸXc«Â4ß‹N1ɨ5«WmÇ3\nÁF€„`­'‘ˆÒŠxàƒ&>z>N¬\$4?ó›ÃïÂ(\n쀨>à       ëϵPÔ!CqÍŒ¼Œp­qGLqqöG²yÍH.«^àž\0zÕ\$€AT9Fs†Ğ…¢D{ía§øcc_€GÈz†)ó³‡ Ü}QÆÅhóÌHBÖ¸<‚y!L­“€Û!\\‚²ˆî ø'’H(‚ä-µ\"ƒin]Ј³­\\¨!Ú`M˜H,gȎí»*ÒKfë*\0ò>€6¶ˆà6ÈÖ2óhJæ7Ù{nqÂ8àßôÉHÕ#cHã#˜\r’:¶–7Ê8àÜ€Z²˜ZrD£şß²`rG\0äl\n®Iˆi\0<±äãô\0Lg…~¨ÃE¬Û\$¹ÒP“\$Š@ÒPƼT03ÉHGH±lÉQ%*\"N?ë%œ–       €Î\nñCrWÉC\$¬–pñ%‰uR`ÀË%³òR\$–<‘`ÖIfxª¯÷\$/\$„”¥\$œš’O…(‹Ë\0æË\0RY‚ *Ù/       ê\rÜœC9€ï&hhá=IÓ'\$–RRIÇ'\\•a=EÔ„òu·'Ì™wIå'T’€€‘üÿ©¾ãK9%˜d¢´·‚!ü”ÀÊÊÀÒj…ì¡íÓÊ&Ğæ„vÌŸ²\\=<,œEùŒ`ÛYÁò\\Ÿ²‚¤*b0>²r®à,d–pdŒŒÌ0DD Ì–`â,T ­1İ% P‘ž¤/ø\ròb¹(Œ£õJÑèÍîT0ò``ƾŞè íóJ”t©’©ÊŸ((dÇʪáh+ <Ɉ+H%i ‡Èô‹²•#´`­ ÚÊÑ'ô£B>t˜¯J€Z\\‘`<Jç+h R·ÊÔ8 àh R±,J]gò¨Iä•è0\n%J¹*ĞY²¯£JwDœ°&Ê–D±®•ÉĞœªR§K\"ß1Qò¨Ë ”²AJKC,ä´mV’»Ž²›ÊÙ-±òÏKI*±r¨ƒ\0ÇL³\"ÆKb(üªóJ:qKr·dùÊŸ-)ÁžË†#Ô¸²Ş¸[ºA»@•.[–Ҩʼß4º¡¯.™1ò®J½.Ì®¦u#J“‡Ág\0Æãò‘§£<Ë&”’ğK¤+½ M?Í/d£Ê%'/›¿2YÈä>­\$ͬlº\0†©+ø—Á‰}-tº’Í…*ê‰Rä\$ß” òÌK».´Á­óJHûʉ ‡2\r„¿B‚½(PÍÓÌ6\"ü–nf†\0#Ї ®Í%\$ÄÊ[€\nĞnoLJ°ŒÅÓÂe'<¯ó…‡1KíÁyÌY1¤Çs¥0À&zLf#üƳ/%y-²Ë£3-„Â’ÍK£L¶ÎÉ×0œ³’ë¸[,¤Ë̵,œ±’«„§0”±Ó(‹.DÀ¡ @ÏÁ2ïL+.|£’÷¤É2è(³L¥*´¹S:\0Ù3´ÌíóG3lÌÁaːl³@L³3z4­Ç½%Ì’ÍLİ3»…³¼!0Š33=Lù4|È—¡à+\"°Êé4´Ëå7Ë,\$¬SPM‘\\±Î?JŠY“Ì¡¹½+(Âa=K¨ì4œ¤³C̤<Ё…=\$,»³UJ]5h³W &tÖI%€é5¬Ò³\\M38g¢́5HŠN?W1Hš±^ÊÙÔ¸“YÍ—Ø Í.‚N3MŸ4Ã…³`„Ži/P‰7 ÖdM>šd¯/LRÎÜâ=K‘60>¯I\0[ğõ\0ßÍ\r2ôÔòZ@Ï1„Û2ÿ°7È9äFG+ä¯ÒœÅ\r)àhQtL}8\$ÊBeC#Á“r*HÈÛ«Ž-›Hı/ØËÒ6Èß\$øRC9Âب!‚€Å7ük/PË0Xr5ƒ¡3D„¼<TÁÔ’q¯Kô©³nÎH§<µFÿ:1SLÎrÀ%(ÿu)¸Xr—1Ñ€nJÃIÌ´S£ \$\$é.·9Ôé²IΟÒ3 ¨L Ãl”“¯Î™9äÅC•N #Ô¡ó\$µ/ÔésÉ9«@6Êt“²®Nñ9¼´·NÉ: ¹’¡7ó Ó¬Í:DáÓÁM)<#–ÓÃM}+ñ2ÎNş ñ²›O&„ğ¢JNy*ŒòòÙ¸[;ñóÎO\"mÚÄóÅMõ<c Â´‚°±8¬K²,´ÓÇN£=07s×JE=Tá³ÆO<Ôô³£Jé=D“Ó:ÏC<Ì“àˉ=äèó®KÊ»Ì³ÈL3¬÷­„LTĞ€3ÊS,œ.¨ÿÏq-Œñsç7Í>‚?ó¼7O;Ü `ùOA9´óñÏ»\$œüÁ OÑ;ìı`9ÎnÇIAŒxpÜöE=O¹<ü²5Ï΄ı2¸O?d´Ž„´Œ`NòiOÿ>Œş3½P    ?¤òÔOžmœúSğMôˬ·†=¹(ãdã¤AÈ­9“‘\0í#üä²@ƒ­9DŽÁÉ&ÜıòŠ‚ ?œ “Ğ i9»\nà/€ñAİóòÈ­A¤ıSËPo?kuN5¨~4ÜãÆ6††Ø=ò–Œ“*@(®N\0\\Û”d Gåüp#è¤> 0À«\$2“4z )À `ÂW˜ğ +\0Š‘80£è¦•  ¤ª”äz\"TĞä0Ô:\0Š\ne \$€ŽrM”=¡r\n²N‰P÷Cm t80ğú #¤ØJ= &ĞÆ 3\0*€Bú6€\"€ˆéèú€#Ì>˜     (Q\nŒğê´8Ñ1C\rt2ƒECˆ\n`(Çx?j8N¹\0¨È[À¤QN>£©à'\0¬x cêªğ\nÉ3×Chü`&\0²Ğ´8Ñ\0ø\n䵦úO`/€„¢A`#ĞìXcèĞÏD ÿtR\n>¼ÔdÑBòD´LĞÄÌõ ‰äĞÍDt4ĞÖ j”pµGAoQoG8,-sÑÖğÔK#‡);§E5´TQÑGĞ4Ao\0 >ğtMÓD8yRG@'PõC° ô<PõCå\"”K\0’xüÔ~\0ªe i9Ğìœv))ѵGb6‰ €±H\r48Ñ@‚M‰:€³FØtQÒ!H•”{R } ôURpÍÔO\0¥I…t8¤ØğûÎÇ[D4FÑD#ÊÑ+D½'ôMÊ•À>RgIÕ´ŠQïJ¨””UÒ)EmàüTZ­Eµ'ãê£iEİ´£ÒqF zAªº>ı)T‹Q3HÅ#TLÒqIjNT½¼…&CøÒhX\nT›ÑÙK\0000´5€ˆ¢JHÑ\0“FE@'Ñ™Fp´hS5F\"ÎoÑ®e%aoS E)  €“DU «Q—FmÎÑ£M´ÑѲe(tnÒ “U1Ü£~>\$ñßÇ‚’­(hÕÇ‘Güy`«\0’ê      ƒíG„ò3Ô5Sp (ıõPãGí\$”œ#¤¨     ©†©N¨\nôV\$ö]ÔœPÖ=\"RÓ¨?Lzt·ƒ1L\$\0ÔøG~å ,‰KNı=”ëÒGMÅ”…¤NS€)ÑáO]:ÔŠS}İ81àRGe@Cí\0«OPğSõNÍ1ôİT!P•@ÑİS€ğÿÕS‰G`\nÉ:€“P°j”7R€ @3üÑ\n‘ üã÷â £”DÓ æúLÈϼŽ        èë\0ùQ5ôµ©CPúµSMP´v4†º?h        hëT‡D0úÑ֏àõ>&ÒITxôO¼?•@U¤÷R8@%Ô–ŒõK‰€§NåKãóRyE­E#ıù @ıÃøä %Là«Q«Q¨µ£ª?N5\0¥R\0úԁTëFåÔ”RŸSí!oTEÂC(϶Èıĵ\0„?3iîSS@U÷QeMµƒ  KØ\n4PÕCeS”‘\0NC«P‚­Oõ! \"RTûõ€S¥NՏÁU5OU>UiIÕPU#UnKPô£UYTè*ÕC«U¥/\0+º¸Å)ÈÚ:ReAà\$\0øŽ¤xòÇWDº3Ãêà`üÚüçU5ÒIHUY”ô:°P  õe\0–MJi€ƒµ ÃıQø>õ@«T±C{›ÕuÑì?Õ^µv\0WR]U}Cöê1-5+Uä?í\rõW<¸?5•JU-SXüÕLÔß \\tÕ?ÒsMÕb„ÕƒV܁t§TŒ>ÂMU+Ö EÅcˆÏÔ9Nm\rRǃCı8ŽSÇX•'RÒéXjCI#G|¥!QÙGh•tğQ¸ı )<¹YĞ*ÔĞRmX0üôö½M£›õOQßYıhÀ«ßduÕ¤ÕZ(ıAo#¥NlyN¬V€Z9IՍºM•¦V«ZuOÕ…TÕTÅEÕ‡Ö·SÍeµµÖÊ\nµXµªSÛQERµ³ÔÙ[MF±VçO=/õ­¨>õgÕ¹TíVoUT³Z’N€*T\\*ÃïĞ×S-pµSÕÃVÕq€ÒM(ÏQ=\\-UUUV­C•Ä×ZØ\nu’V\$?M@UÎWJ\r\rUĞÔ\\å'U×W]…W”£W8ºN '#h=oCóĞıF(üé:9ÕYu•†¤÷V-UÓ9Ÿ]ÒC©:U¿\\\nµqW—™à(TT?5Páª\$ R3Õ⺟C}`>\0®E]ˆ#Rêà   ƒÿ#R¥)²W–’:`#óGõ)4ŠRÀı;õáViD%8À)Ç“^¥Qõé#”h       ´HŽX       ƒş\$Nıx´š#i xûÔ’XRõ€'Ô9`m\\©†¨\nEÀ¦Q±`¥bu@×ñN¥dT×#YYı„µ®GV]j5#?L¤xt/#¬”å#é…½O­PÕëQæ¢6•££Ï^í† €šŽğüÖØM\\R5t´Óšpà*€ƒXˆV\"WÅD€       oRALm\rdGN ÕÖÀú6”p\$P废E5Ôı†©Tx\n€+€‹C[¨ôVŽŒıÖ8U•Du}Ø»F\$.ªËQ-;4È€±NX\n.Xñb͐•\0¯b¥)–#­NıG4KØĞZS”^×´M¶8Øód­\"C‚¬>ÅÕdHe\nöY8¥Ñ.ê ú°ˆÒFúD”½W1cZ6”›QâKHü@*\0¿^¸úÖ\\QßF‚4U3Y|‘=˜Ó¤éE ›ÔÛ¤¦?-™47YƒPm™hYw_\ršVe×±M˜±ßُe(0¶ÔFÕ\r !ÒPUI•uÑ7Qå•Cèю?0ÿµİgu\rqधY-Qèó°èú=g\0…\0M#÷U×S5Zt®ÖŸae^•\$>²ArV¯_\r;t’¨”HW©Zí@HÕØhzDèÚ\0«S2Jµ HIåO 'ǁeígÉ6¹[µR”<¸?È /ÒKM¤ö–Ø\n>½¤HáZ!iˆ ö¤ŸTX6–Ò×iºC !Ó›g½ à ÒG }Q6žÑ4>äwà!Ú™C}§VBÖ>åªUQÚ‘jª8cïUTàû–'<‚>ÈıõôHC]¨VšÑ7jj3v¥¤å`0ÃèÈ23ö°Ğòxû@U—k \n€:Si5žÕ#Yì-wî”ÕàéM?céÒMQÅGQÕуb`•ò\0Ž@ õËÒ§\0M¥à)ZrKXûÖŸÙWl­²öÍlå³TM×D\r4—QsS¥40ÑsQ́õmYãh•d¶ÂC`{›V€gEÈ\n–»XkՁà'Óè,4ú¼¹^í¢6Æ#<4éNX nM):¹·OM_6d€–æõ¸Ãõ[\"KU²nžÖ?l´x\0&\0¿R56ŸT~>  ô†Õ¸?”Jnž€’ ˆÏZ/iÒ6ôÎÚglͦÖUÛáF}´.ž£¼JLöCTbMŽ4ÍÓcLõTjSD’}JtŒ€Z›ªµÇ:±L­€´d:‰Ez”ʤª>ÖV\$2>­µŽ¢[ãpâ6öÔRŽ9uêW.?•1®£RHužèÛR¸?58Ô®¤íDİÆuƒ£çpûcìZà?œr×» Eaf°}5wY´ëå‚Ï’ÒêÅW‚wT[Sp7'Ô_aEk \"[/i¥¿#ÿ\$;m…fØ£WOüô”ÔFò\r%\$Íju-t#<Å!·\n:«KEA£íÒÑ]À\nUæQ­KEÀ #€¿Xå¨÷5[Ê>ˆ`/£ÍDµÊÖ­VEp à)åI%ÏqßÜûníx):¤§le¢´Õ[eÕ\\•eV[j…–£éÑ7 -+ÖßGWEwt¯WkEÅ~uìQ/mõ#ԐW—`ıyu“Ç£DİAö'×±\r±•Õ™OD )ZM^€³u-|v8]‹g½‘hö×ÅLà–W\0øÈû6ËX†‘=YÔd½Q­7 Ï“”Ï9£çͲr <Ã֏êD³ºB`c 9¿ ’È`D ¬=wx©I%ä,ᄬ†è²àêƒj[ÑšÖíßOÿ‹´ ``ŽÅ|¸òòÆŞø¤Œ˜¼í.Ì AOŠÀÄ       ·‰@å@ 0h2í\\âĞ€M{eã€9^>ô•â@7\0òôË‚W’€ò\$,íÉÅš¡@Ø€Òâ•å×w^fmå‰,\0ÏyD,ם^X€.¯Ö†©7ã·›Ã×2İÅf;¥€6«\n”¤Ž…^ŸzC©×§mz…én–^ˆô”&LFFê ,°ö[€¥eÈ õaXy9h€!:zÍ9còQ9bÅ !€¦µGw_WÉg¥9©ÓS+t®ÚápİtɃ\nm+–œŞÙ_ğ  ¡ª\\¼’k5£ÒÜ]Æ4ˆ_h•9 Ù÷N…—Å]%|¥ˆ7ËÖœŽ];”ï |ñµ ßXıÍ9Õ|åñ×ÌG¢“¨[×Ô\0‘}Uñ”çßMCI:ÒqO¨VÔƒa\0\rñRÍ6Ï€Ã\0ø@H ¢ÅP+rìS¤Wãè€øp7äI~p/ø HÏ^İê²ü¤¬E§-%û¥Ì»Í&.ÎÄ+¸JÑ’;:³¶«!“ıĞNğ Æ~öª‰€/“WÄ !„BèL+Â\$ğíq§=ü¿+Ñ`/Æ„e„\\±ÒÏxÀpE‘lpSÂJ Sİ¢½ö6à‡_¹(ů©Äéb\\OÆÊ&ì¼\\Ğ59\0û€9nñøD¸{¡\$ḋK‘v2     d]èv…CÕşÅÕ?tf|WÜ:£Ô¨ p&¿àLn„Î賞î{;ˆçÚGR9øT.y¹üïI8€¹´\rl° ú       Tè  n”3¼öğT.ƒ9´è3› š¼Zès¡¯ÑÒGñşŽˆ:    0£¦£zè­İ.Œ]ÀçÄ£Q›?àgT»%ñ™ÕxŒÕŒ.„šÔÇn<ì£-â8B˳,Bòì˜rgQş¢íßó„Ɏ`Úá2é„:îµ½{…gëÄs„øgóZ¿•… ׌<æ×w{¦˜ƒbU9ˆ        `5`4„\0BxMpğ‘8qnahé†@ؼí†-â(—>S|0®…¾¥…3á8h\0Ñ«µCÔzLQž@¶\n?†¸`AÀ >2šÂ,÷á˜ñN&Œ«xˆl8sah1è|˜B‡É‡DxBŞ#V—‹V–׊`Wâa'@›‡¬  X_?\nì¾  •_â. ØP¼r2®bUarÀI¸~áñ…S“àú\0×…\" 2€ÖşÀ>b;…vPh{[ °7a`Ë\0ê˲j—oŒ~·ûşvÍÙ|fv†4[½\$¶« {ó¯P\rvæBKGbpëÈÅø™–OŠ5İ 2\0j÷Ù„LŽ€î)ÇmáÈV¡ejBB.'R{C¤ïV'`Ø‚ ‰Ž%­Ç€Ğ\$ Oå\0˜`‚’«4 ÌNò>;4£³¢/ÌÏ€´À*Âø\\5„ÅÁ!†û`X*Ş%îÄNÍ3SõAMôşËÆ”,ş1¬²®í\\¯²caϧ ³ù@ج˃¸B/„¬Íø0` óv2ï¡„§Œ`hDÅJO\$ç…@p!9˜ !¥\n1ø7pB,>8F4¯åf Ï€:“ñ7„î3›£3…¿à°T8—=+~Øn«Îâ\\Äe¸<br·ş øFز°  ¹C¡N‹:c€:Ôl–<\r›ã\\3à>ñ˜‡À6ONnŠä!;áñ@›twë^Fé€Là;€× º,^aÈ\ra\"ŞÀÚ®'ú:„vàJe4Ãא;•ñ_d\r4\rÌ:ÛüÀ¬S˜à2€[c€„XÿʦPl˜\$¹Ş£i“wåd#ŽB šb›Îפõ’™`:†€Ï~ <\0Ñ2Ù·—‘RŒÂÆPÈ\r¸J8D¡t@ìEŽè\0\rÍœ6öóäŞ7•½ä˜YÏ£ú\"åäÀš\rüƒ¦Àš3ƒ¡.˜+«z3±;_ÊŸvLİäÓwJ¿94ÀIJa,A¦ñˆ¯;ƒs?ÖN\nR‡!Ž§İ†Om…sÈ_æà-zÛ­w„€ÛzÜ­7¡ÍÅzî÷–M”ˆ€o¿”¥æ\0¢ƒa”Åݹ4å8èPfñYå?”òi—–eBÎSà1\0ÉjDTeK”®UYSå?66R ¦cõ 6Ry[c÷”°5Ù]BÍ”ÖRù_eA)&ù[凕XYRW–6VYaeU•fYeåw•ŽU¹båw”Eë°Ê†;z¤^W«9–äקäİ–õë\0<ޘèeê9SåΤdaª    ”_-îá‰L×8Ç…ÍQöèTH[!<p\0£”Py5ˆ|—#ê‘P³      ×9vàš2Â|Ǹáfa o†á,j8×\$A@kñƒ¿ŽaË‘½bócñÈf4!4¨‘¶cr,;™‘æ‘öbÆ=€Â;\0°øź…˜†cdÃæX¾bìx™a™Rx0Aãh£+wğxN[˜ÜB·pÚƒ¿w™TÀ8T%™šMšl2à‡½¡šğ—}¡Ès.kY„˜0\$/èfU€=şØs„gKáˆM› õ?ÿ›ç`4c.Ôø!¡&€åˆ†g°ûfà/şf1=¯›V AE<#̹¡f\n») Šë›Npò“ã`.\"\"»A眤ã—ü q¸X“ Ù¬: aÉ8™¹f¯™Vsó‹G™ŞrŽ:æVŞÆcÔgVl™g=`ã“WŽËıyÒgUÀË™ªáº¼îeT=  ã€á€Æx 0â M¼@ˆ»šÂ%κb½œşw™ÆfÛÙOøç­˜Ü*0¯…®|tá°%±™PÈÍpæúgKžù¬?pô@JÀ<BÙŸ#­`1„î9ş2çg¶!3~ØÜçînläÅfŠØVhù¬Ž.Ñ€à…aCÑù•?³Šû-à1œ68>A¤ˆaÈ\r—¦ y‹0 Öi‘J«} à ¹© Ğ z:\r¡)‘Sş‚¡@ ¢åh@äöƒY¹ã´mCEg¡cyφ‚<õàÍh@¼@«zh<WÙÄ`•¨±:zOãÎÖ\rÍêW«“°V08Ùf7™(Gyƒ²`St#ï„f†#ƒ²œC(9Ș؀dùææ8T:¯»Œ0ºè qµ  79· á£phAgÜ6Š.ãæ7 Fr™bä ÈjšèA5î…†ƒá¡a1ú Úh•ZCh:–%¹ÎgU¢ğD9ÖÅɈ„×¹Ïé0~vTi;VvSš„wœØ\r΃?àÇf²£…ÿ¥nŠÏ›iY™ìaº¬3 Î‡9Õ,\n™Ãr‘‰,/,@.:èY>&…šFÑ)ú™¶}šb£€èiOİiæš:dèAŒn˜šc=¤L9O’h{¦ 8hY.’ÙÀ®¾‡®‡…œüÇ\r¬Ö‡£À›Šé1Q¯U      ”C‘hô†eÿO‰›°+2oÌÎìŞN‹˜÷§øzpè¢(ş]Óh€å¢Z|¬O¡cÑzDẁ;õT\0j¡\0…8#>ΎÁ=bZ8Fjóìé;íŞºTé…¡w®Í)¦ıøN`æë¨ ¤Ã…B{ûƒz\ró¡c“Óè|dTG“iœ/ûú !i†Ê0±¼ø'`Z:ŠCHï(8ê`V¥™Úãöª\0Üꧩ†£WïßǪ˜ÕzgG¾‘…ƒ½²-[ÃĞ    iœêN\rqºé«n„„“o    Æ¥fEJı¡apb¹ê}6£…Õ=o¤–„,tèY+ö®EC\rÖPx4=¼¾™Ù@‡‰¦.†‘F£[¡zqçÜèX6:FG¨ #°û\$@&­ab¤şhE:²ƒå¬ä`¶S­1—1g1©ş„2uhY‹¬_:Bß¡dcï–*ÿ­†\0úÆ—FYFœ:Ë£ªn„ØÌ=Û¨H*Z¼Mhk/ëƒ¡žzٹ]šÁh@ôæ©Øã1\0˜øZKùž¢ëÎÆè^+º,vfós®š>ˆ¤’Oã|èÀÊsÃ\0Öœ5öX é‹îѯF„÷n¿Aˆr]|ÏIi4è…ş ØÂC° h@ع´Ÿž–cߥ¨6smOÃ前™›gX¬V2¦6g?~ÖÃYÕÑ°†súcl \\RŠ\0Œ¨cœA+Œ1°„›ùÌé\n(ÑúÃÌ^368cz:=z÷‚(äø ;裨ñsüF¶@`;ì€,>yTßï&–•d½Lןœÿ%Òƒ -ëCHL8\r‡Çbû°°£úMj]4Ym9üÛüĞZÚBøïP}<ŸûàX²¯‰Ì¥á+gÅ^ØMŞ + B_Fd¬X„ø‹lówÈ~î\r⽋è\":ÔêqA1X¾ìæ²Ğø¯3ÖΓEáh±4ßZZÂó¸& …ææ1~!Nfã´öo—ˆ™\nMeÜ଄îëXI΄íG@V*X¯†;µY5{Vˆ\nè»ÏTéz\rF 3}m ¶Ôp1í[€>©tèe¶w™Ÿæë@VÖz#‚2Äï       iôôÎ{ã9ƒ‚p̝»gh‘Šæ+[elU‰¦ÛAßÙ¶Ó¼i1Ä!Œ¾ommµ*Kà‡ê}¶°!íÆ³í¡®İ{me·f`“—mè˜CÛz=žnŞ:}g° T›mLu1FÜÚ}=8¸ZáíèOžÛmFFMf¤…OO€ğîáÀ‹ƒèøß/¼éõ¸Ş“šå€şV™oqj³²èn!+½òµüZ¨ËI¹.Ì9!nG¹\\„›3a¹~…O+Îå::îK@Œ\nÚ@ƒ‘¤Hph‘´\\BÄõdmfvCèžÓPÛ\" æ½Û.nW&–ên¢øHYş+\r¶“Äz÷i>MfqۤùİQc‚[­H+æÀo¤Ñ*ú1'¤÷#āEw€D_Xí)>Ğs£„-~\rT=½£žà÷ˆà- íy§m§¹æğ{„hóŸÌjÚMè)€^ž¹ïÀ'@Vå¡+iÈîÎò›Ÿåµ†É;F“ D[Îb!¼¾´B    ¦¤:MP‹îóÛ­oC¼vAE?éC²IiYÍ„#şp¶P\$kâJŞq½.É07œşöxˆl¦sC|ï½¾bo–2äXª>Mô\rl&»Ç:2ã~ÛÑcQ²îò²æoÑŞdá‚-şèUÜRo‚YšnM;’n©#–ß\0–P¾fğÚPo׿(CÚv<ʬø[òoÛ¸”šû×fÑ¿ÖüÁ;ßẖõ[úYŸ.o®Up¿®pUŒø”.ž ©B!'\0‹òã<Tñ:1±À¾ šã¤î<„›ğnˆîF³ğƒI¢Ç”´‚V0ÊǁRO8‰wøÎ,aFú¼É¥¹[´ÎŸ…ñYOù«‰€/\0™Ùox÷ÇQğ?§°:Ù‹ëÆè`h@:ƒ«¿öÑ/Mím¼x:Û°c1¤Öàû¯ív² ;„‚è^æØÆ@®õ@£úğ½ÂÇ\n{¯¼Âî‹à;ç‘´B¼í¸8‘º g坒ä\\*gåyC)Û„E^ıOÄh        ¡³¦Aƒu>Æèü@àD̆Yæ¼í›â`o»<>Àƒp‰™ŠÄ·’q,Y1Q¨Á߸†/qgŒ\0+\0âæå‡Dÿƒç?¶ş î©Úßîk:ù\$©û¬í×¥6~I¥…=@ŽíÑ!¾ùvÚzOñš²â+ÍõÆ9Çi³–›¼aïğ†êû…gòğô —¹ÿ?š0Gn˜q²]{Ò¸,FáÃøO¡â„Ş <_>f+¢,ñÌ       »Ôñ±&ôœ†ğí·¼yêÇ©Oü:¬U¯ˆLÆ\nÃúI:2³¿-;_Ä¢È|%éå´¿!Îõfž\$¦ˆ†Xr\"Kniîñ—ÀĞ\$8#›g¤t-›€r@LÓ圏è@S£<‘rN\nD/rLdQk࣓”ªõÄîeğåäãĞ­åø\n=4)ƒ B˜”Ëךô");}else{header("Content-Type: image/gif");switch($_GET["file"]){case"plus.gif":echo"GIF89a\0\0\0001îîî\0\0€™™™\0\0\0!ù\0\0\0,\0\0\0\0\0\0!„©ËíMñÌ*)¾oú¯) q•¡eˆµî#ÄòLË\0;";break;case"cross.gif":echo"GIF89a\0\0\0001îîî\0\0€™™™\0\0\0!ù\0\0\0,\0\0\0\0\0\0#„©Ëí#\naÖFo~yÃ._wa”á1ç±Jî GÂL×6]\0\0;";break;case"up.gif":echo"GIF89a\0\0\0001îîî\0\0€™™™\0\0\0!ù\0\0\0,\0\0\0\0\0\0 „©ËíMQN\nï}ôža8ŠyšaŶ®\0Çò\0;";break;case"down.gif":echo"GIF89a\0\0\0001îîî\0\0€™™™\0\0\0!ù\0\0\0,\0\0\0\0\0\0 „©ËíMñÌ*)¾[Wş\\¢ÇL&Ùœƶ•\0Çò\0;";break;case"arrow.gif":echo"GIF89a\0\n\0€\0\0€€€ÿÿÿ!ù\0\0\0,\0\0\0\0\0\n\0\0‚i–±‹ž”ªÓ²Ş»\0\0;";break;}}exit;}if($_GET["script"]=="version"){$p=file_open_lock(get_temp_dir()."/adminer.version");if($p)file_write_unlock($p,serialize(array("signature"=>$_POST["signature"],"version"=>$_POST["version"])));exit;}global$b,$e,$Ib,$Pb,$Zb,$k,$Bc,$Fc,$ba,$Vc,$y,$ca,$ld,$ge,$Ke,$Yf,$Jc,$T,$Gg,$Lg,$Sg,$ga;if(!$_SERVER["REQUEST_URI"])$_SERVER["REQUEST_URI"]=$_SERVER["ORIG_PATH_INFO"];if(!strpos($_SERVER["REQUEST_URI"],'?')&&$_SERVER["QUERY_STRING"]!="")$_SERVER["REQUEST_URI"].="?$_SERVER[QUERY_STRING]";if($_SERVER["HTTP_X_FORWARDED_PREFIX"])$_SERVER["REQUEST_URI"]=$_SERVER["HTTP_X_FORWARDED_PREFIX"].$_SERVER["REQUEST_URI"];$ba=$_SERVER["HTTPS"]&&strcasecmp($_SERVER["HTTPS"],"off");@ini_set("session.use_trans_sid",false);if(!defined("SID")){session_cache_limiter("");session_name("adminer_sid");$Be=array(0,preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]),"",$ba);if(version_compare(PHP_VERSION,'5.2.0')>=0)$Be[]=true;call_user_func_array('session_set_cookie_params',$Be);session_start();}remove_slashes(array(&$_GET,&$_POST,&$_COOKIE),$tc);if(get_magic_quotes_runtime())set_magic_quotes_runtime(false);@set_time_limit(0);@ini_set("zend.ze1_compatibility_mode",false);@ini_set("precision",15);function
  171. get_lang(){return'en';}function
  172. lang($Fg,$Xd=null){if(is_array($Fg)){$Ne=($Xd==1?0:1);$Fg=$Fg[$Ne];}$Fg=str_replace("%d","%s",$Fg);$Xd=format_number($Xd);return
  173. sprintf($Fg,$Xd);}if(extension_loaded('pdo')){class
  174. Min_PDO
  175. extends
  176. PDO{var$_result,$server_info,$affected_rows,$errno,$error;function
  177. __construct(){global$b;$Ne=array_search("SQL",$b->operators);if($Ne!==false)unset($b->operators[$Ne]);}function
  178. dsn($Mb,$V,$G,$me=array()){try{parent::__construct($Mb,$V,$G,$me);}catch(Exception$ec){auth_error(h($ec->getMessage()));}$this->setAttribute(13,array('Min_PDOStatement'));$this->server_info=@$this->getAttribute(4);}function
  179. query($I,$Mg=false){$J=parent::query($I);$this->error="";if(!$J){list(,$this->errno,$this->error)=$this->errorInfo();return
  180. false;}$this->store_result($J);return$J;}function
  181. multi_query($I){return$this->_result=$this->query($I);}function
  182. store_result($J=null){if(!$J){$J=$this->_result;if(!$J)return
  183. false;}if($J->columnCount()){$J->num_rows=$J->rowCount();return$J;}$this->affected_rows=$J->rowCount();return
  184. true;}function
  185. next_result(){if(!$this->_result)return
  186. false;$this->_result->_offset=0;return@$this->_result->nextRowset();}function
  187. result($I,$l=0){$J=$this->query($I);if(!$J)return
  188. false;$L=$J->fetch();return$L[$l];}}class
  189. Min_PDOStatement
  190. extends
  191. PDOStatement{var$_offset=0,$num_rows;function
  192. fetch_assoc(){return$this->fetch(2);}function
  193. fetch_row(){return$this->fetch(3);}function
  194. fetch_field(){$L=(object)$this->getColumnMeta($this->_offset++);$L->orgtable=$L->table;$L->orgname=$L->name;$L->charsetnr=(in_array("blob",(array)$L->flags)?63:0);return$L;}}}$Ib=array();class
  195. Min_SQL{var$_conn;function
  196. __construct($e){$this->_conn=$e;}function
  197. select($Q,$N,$Z,$s,$oe=array(),$_=1,$F=0,$Ue=false){global$b,$y;$cd=(count($s)<count($N));$I=$b->selectQueryBuild($N,$Z,$s,$oe,$_,$F);if(!$I)$I="SELECT".limit(($_GET["page"]!="last"&&$_!=""&&$s&&$cd&&$y=="sql"?"SQL_CALC_FOUND_ROWS ":"").implode(", ",$N)."\nFROM ".table($Q),($Z?"\nWHERE ".implode(" AND ",$Z):"").($s&&$cd?"\nGROUP BY ".implode(", ",$s):"").($oe?"\nORDER BY ".implode(", ",$oe):""),($_!=""?+$_:null),($F?$_*$F:0),"\n");$Tf=microtime(true);$K=$this->_conn->query($I);if($Ue)echo$b->selectQuery($I,$Tf,!$K);return$K;}function
  198. delete($Q,$cf,$_=0){$I="FROM ".table($Q);return
  199. queries("DELETE".($_?limit1($Q,$I,$cf):" $I$cf"));}function
  200. update($Q,$P,$cf,$_=0,$Ff="\n"){$bh=array();foreach($P
  201. as$z=>$X)$bh[]="$z = $X";$I=table($Q)." SET$Ff".implode(",$Ff",$bh);return
  202. queries("UPDATE".($_?limit1($Q,$I,$cf,$Ff):" $I$cf"));}function
  203. insert($Q,$P){return
  204. queries("INSERT INTO ".table($Q).($P?" (".implode(", ",array_keys($P)).")\nVALUES (".implode(", ",$P).")":" DEFAULT VALUES"));}function
  205. insertUpdate($Q,$M,$Te){return
  206. false;}function
  207. begin(){return
  208. queries("BEGIN");}function
  209. commit(){return
  210. queries("COMMIT");}function
  211. rollback(){return
  212. queries("ROLLBACK");}function
  213. convertSearch($Qc,$X,$l){return$Qc;}function
  214. value($X,$l){return$X;}function
  215. quoteBinary($xf){return
  216. q($xf);}function
  217. warnings(){return'';}function
  218. tableHelp($E){}}$Ib=array("server"=>"MySQL")+$Ib;if(!defined("DRIVER")){$Qe=array("MySQLi","MySQL","PDO_MySQL");define("DRIVER","server");if(extension_loaded("mysqli")){class
  219. Min_DB
  220. extends
  221. MySQLi{var$extension="MySQLi";function
  222. __construct(){parent::init();}function
  223. connect($O="",$V="",$G="",$tb=null,$Me=null,$Mf=null){global$b;mysqli_report(MYSQLI_REPORT_OFF);list($Nc,$Me)=explode(":",$O,2);$Sf=$b->connectSsl();if($Sf)$this->ssl_set($Sf['key'],$Sf['cert'],$Sf['ca'],'','');$K=@$this->real_connect(($O!=""?$Nc:ini_get("mysqli.default_host")),($O.$V!=""?$V:ini_get("mysqli.default_user")),($O.$V.$G!=""?$G:ini_get("mysqli.default_pw")),$tb,(is_numeric($Me)?$Me:ini_get("mysqli.default_port")),(!is_numeric($Me)?$Me:$Mf),($Sf?64:0));return$K;}function
  224. set_charset($La){if(parent::set_charset($La))return
  225. true;parent::set_charset('utf8');return$this->query("SET NAMES $La");}function
  226. result($I,$l=0){$J=$this->query($I);if(!$J)return
  227. false;$L=$J->fetch_array();return$L[$l];}function
  228. quote($Xf){return"'".$this->escape_string($Xf)."'";}}}elseif(extension_loaded("mysql")&&!(ini_get("sql.safe_mode")&&extension_loaded("pdo_mysql"))){class
  229. Min_DB{var$extension="MySQL",$server_info,$affected_rows,$errno,$error,$_link,$_result;function
  230. connect($O,$V,$G){$this->_link=@mysql_connect(($O!=""?$O:ini_get("mysql.default_host")),("$O$V"!=""?$V:ini_get("mysql.default_user")),("$O$V$G"!=""?$G:ini_get("mysql.default_password")),true,131072);if($this->_link)$this->server_info=mysql_get_server_info($this->_link);else$this->error=mysql_error();return(bool)$this->_link;}function
  231. set_charset($La){if(function_exists('mysql_set_charset')){if(mysql_set_charset($La,$this->_link))return
  232. true;mysql_set_charset('utf8',$this->_link);}return$this->query("SET NAMES $La");}function
  233. quote($Xf){return"'".mysql_real_escape_string($Xf,$this->_link)."'";}function
  234. select_db($tb){return
  235. mysql_select_db($tb,$this->_link);}function
  236. query($I,$Mg=false){$J=@($Mg?mysql_unbuffered_query($I,$this->_link):mysql_query($I,$this->_link));$this->error="";if(!$J){$this->errno=mysql_errno($this->_link);$this->error=mysql_error($this->_link);return
  237. false;}if($J===true){$this->affected_rows=mysql_affected_rows($this->_link);$this->info=mysql_info($this->_link);return
  238. true;}return
  239. new
  240. Min_Result($J);}function
  241. multi_query($I){return$this->_result=$this->query($I);}function
  242. store_result(){return$this->_result;}function
  243. next_result(){return
  244. false;}function
  245. result($I,$l=0){$J=$this->query($I);if(!$J||!$J->num_rows)return
  246. false;return
  247. mysql_result($J->_result,0,$l);}}class
  248. Min_Result{var$num_rows,$_result,$_offset=0;function
  249. __construct($J){$this->_result=$J;$this->num_rows=mysql_num_rows($J);}function
  250. fetch_assoc(){return
  251. mysql_fetch_assoc($this->_result);}function
  252. fetch_row(){return
  253. mysql_fetch_row($this->_result);}function
  254. fetch_field(){$K=mysql_fetch_field($this->_result,$this->_offset++);$K->orgtable=$K->table;$K->orgname=$K->name;$K->charsetnr=($K->blob?63:0);return$K;}function
  255. __destruct(){mysql_free_result($this->_result);}}}elseif(extension_loaded("pdo_mysql")){class
  256. Min_DB
  257. extends
  258. Min_PDO{var$extension="PDO_MySQL";function
  259. connect($O,$V,$G){global$b;$me=array();$Sf=$b->connectSsl();if($Sf)$me=array(PDO::MYSQL_ATTR_SSL_KEY=>$Sf['key'],PDO::MYSQL_ATTR_SSL_CERT=>$Sf['cert'],PDO::MYSQL_ATTR_SSL_CA=>$Sf['ca'],);$this->dsn("mysql:charset=utf8;host=".str_replace(":",";unix_socket=",preg_replace('~:(\\d)~',';port=\\1',$O)),$V,$G,$me);return
  260. true;}function
  261. set_charset($La){$this->query("SET NAMES $La");}function
  262. select_db($tb){return$this->query("USE ".idf_escape($tb));}function
  263. query($I,$Mg=false){$this->setAttribute(1000,!$Mg);return
  264. parent::query($I,$Mg);}}}class
  265. Min_Driver
  266. extends
  267. Min_SQL{function
  268. insert($Q,$P){return($P?parent::insert($Q,$P):queries("INSERT INTO ".table($Q)." ()\nVALUES ()"));}function
  269. insertUpdate($Q,$M,$Te){$d=array_keys(reset($M));$Re="INSERT INTO ".table($Q)." (".implode(", ",$d).") VALUES\n";$bh=array();foreach($d
  270. as$z)$bh[$z]="$z = VALUES($z)";$bg="\nON DUPLICATE KEY UPDATE ".implode(", ",$bh);$bh=array();$sd=0;foreach($M
  271. as$P){$Y="(".implode(", ",$P).")";if($bh&&(strlen($Re)+$sd+strlen($Y)+strlen($bg)>1e6)){if(!queries($Re.implode(",\n",$bh).$bg))return
  272. false;$bh=array();$sd=0;}$bh[]=$Y;$sd+=strlen($Y)+2;}return
  273. queries($Re.implode(",\n",$bh).$bg);}function
  274. convertSearch($Qc,$X,$l){return(preg_match('~char|text|enum|set~',$l["type"])&&!preg_match("~^utf8~",$l["collation"])?"CONVERT($Qc USING ".charset($this->_conn).")":$Qc);}function
  275. warnings(){$J=$this->_conn->query("SHOW WARNINGS");if($J&&$J->num_rows){ob_start();select($J);return
  276. ob_get_clean();}}function
  277. tableHelp($E){$yd=preg_match('~MariaDB~',$this->_conn->server_info);if(information_schema(DB))return
  278. strtolower(($yd?"information-schema-$E-table/":str_replace("_","-",$E)."-table.html"));if(DB=="mysql")return($yd?"mysql$E-table/":"system-database.html");}}function
  279. idf_escape($Qc){return"`".str_replace("`","``",$Qc)."`";}function
  280. table($Qc){return
  281. idf_escape($Qc);}function
  282. connect(){global$b,$Lg,$Yf;$e=new
  283. Min_DB;$mb=$b->credentials();if($e->connect($mb[0],$mb[1],$mb[2])){$e->set_charset(charset($e));$e->query("SET sql_quote_show_create = 1, autocommit = 1");if(min_version('5.7.8',10.2,$e)){$Yf['Strings'][]="json";$Lg["json"]=4294967295;}return$e;}$K=$e->error;if(function_exists('iconv')&&!is_utf8($K)&&strlen($xf=iconv("windows-1250","utf-8",$K))>strlen($K))$K=$xf;return$K;}function
  284. get_databases($vc){$K=get_session("dbs");if($K===null){$I=(min_version(5)?"SELECT SCHEMA_NAME FROM information_schema.SCHEMATA":"SHOW DATABASES");$K=($vc?slow_query($I):get_vals($I));restart_session();set_session("dbs",$K);stop_session();}return$K;}function
  285. limit($I,$Z,$_,$Zd=0,$Ff=" "){return" $I$Z".($_!==null?$Ff."LIMIT $_".($Zd?" OFFSET $Zd":""):"");}function
  286. limit1($Q,$I,$Z,$Ff="\n"){return
  287. limit($I,$Z,1,0,$Ff);}function
  288. db_collation($i,$Xa){global$e;$K=null;$g=$e->result("SHOW CREATE DATABASE ".idf_escape($i),1);if(preg_match('~ COLLATE ([^ ]+)~',$g,$C))$K=$C[1];elseif(preg_match('~ CHARACTER SET ([^ ]+)~',$g,$C))$K=$Xa[$C[1]][-1];return$K;}function
  289. engines(){$K=array();foreach(get_rows("SHOW ENGINES")as$L){if(preg_match("~YES|DEFAULT~",$L["Support"]))$K[]=$L["Engine"];}return$K;}function
  290. logged_user(){global$e;return$e->result("SELECT USER()");}function
  291. tables_list(){return
  292. get_key_vals(min_version(5)?"SELECT TABLE_NAME, TABLE_TYPE FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() ORDER BY TABLE_NAME":"SHOW TABLES");}function
  293. count_tables($h){$K=array();foreach($h
  294. as$i)$K[$i]=count(get_vals("SHOW TABLES IN ".idf_escape($i)));return$K;}function
  295. table_status($E="",$oc=false){$K=array();foreach(get_rows($oc&&min_version(5)?"SELECT TABLE_NAME AS Name, ENGINE AS Engine, TABLE_COMMENT AS Comment FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() ".($E!=""?"AND TABLE_NAME = ".q($E):"ORDER BY Name"):"SHOW TABLE STATUS".($E!=""?" LIKE ".q(addcslashes($E,"%_\\")):""))as$L){if($L["Engine"]=="InnoDB")$L["Comment"]=preg_replace('~(?:(.+); )?InnoDB free: .*~','\\1',$L["Comment"]);if(!isset($L["Engine"]))$L["Comment"]="";if($E!="")return$L;$K[$L["Name"]]=$L;}return$K;}function
  296. is_view($R){return$R["Engine"]===null;}function
  297. fk_support($R){return
  298. preg_match('~InnoDB|IBMDB2I~i',$R["Engine"])||(preg_match('~NDB~i',$R["Engine"])&&min_version(5.6));}function
  299. fields($Q){$K=array();foreach(get_rows("SHOW FULL COLUMNS FROM ".table($Q))as$L){preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~',$L["Type"],$C);$K[$L["Field"]]=array("field"=>$L["Field"],"full_type"=>$L["Type"],"type"=>$C[1],"length"=>$C[2],"unsigned"=>ltrim($C[3].$C[4]),"default"=>($L["Default"]!=""||preg_match("~char|set~",$C[1])?$L["Default"]:null),"null"=>($L["Null"]=="YES"),"auto_increment"=>($L["Extra"]=="auto_increment"),"on_update"=>(preg_match('~^on update (.+)~i',$L["Extra"],$C)?$C[1]:""),"collation"=>$L["Collation"],"privileges"=>array_flip(preg_split('~, *~',$L["Privileges"])),"comment"=>$L["Comment"],"primary"=>($L["Key"]=="PRI"),);}return$K;}function
  300. indexes($Q,$f=null){$K=array();foreach(get_rows("SHOW INDEX FROM ".table($Q),$f)as$L){$E=$L["Key_name"];$K[$E]["type"]=($E=="PRIMARY"?"PRIMARY":($L["Index_type"]=="FULLTEXT"?"FULLTEXT":($L["Non_unique"]?($L["Index_type"]=="SPATIAL"?"SPATIAL":"INDEX"):"UNIQUE")));$K[$E]["columns"][]=$L["Column_name"];$K[$E]["lengths"][]=($L["Index_type"]=="SPATIAL"?null:$L["Sub_part"]);$K[$E]["descs"][]=null;}return$K;}function
  301. foreign_keys($Q){global$e,$ge;static$Je='`(?:[^`]|``)+`';$K=array();$kb=$e->result("SHOW CREATE TABLE ".table($Q),1);if($kb){preg_match_all("~CONSTRAINT ($Je) FOREIGN KEY ?\\(((?:$Je,? ?)+)\\) REFERENCES ($Je)(?:\\.($Je))? \\(((?:$Je,? ?)+)\\)(?: ON DELETE ($ge))?(?: ON UPDATE ($ge))?~",$kb,$_d,PREG_SET_ORDER);foreach($_d
  302. as$C){preg_match_all("~$Je~",$C[2],$Nf);preg_match_all("~$Je~",$C[5],$ng);$K[idf_unescape($C[1])]=array("db"=>idf_unescape($C[4]!=""?$C[3]:$C[4]),"table"=>idf_unescape($C[4]!=""?$C[4]:$C[3]),"source"=>array_map('idf_unescape',$Nf[0]),"target"=>array_map('idf_unescape',$ng[0]),"on_delete"=>($C[6]?$C[6]:"RESTRICT"),"on_update"=>($C[7]?$C[7]:"RESTRICT"),);}}return$K;}function
  303. view($E){global$e;return
  304. array("select"=>preg_replace('~^(?:[^`]|`[^`]*`)*\\s+AS\\s+~isU','',$e->result("SHOW CREATE VIEW ".table($E),1)));}function
  305. collations(){$K=array();foreach(get_rows("SHOW COLLATION")as$L){if($L["Default"])$K[$L["Charset"]][-1]=$L["Collation"];else$K[$L["Charset"]][]=$L["Collation"];}ksort($K);foreach($K
  306. as$z=>$X)asort($K[$z]);return$K;}function
  307. information_schema($i){return(min_version(5)&&$i=="information_schema")||(min_version(5.5)&&$i=="performance_schema");}function
  308. error(){global$e;return
  309. h(preg_replace('~^You have an error.*syntax to use~U',"Syntax error",$e->error));}function
  310. create_database($i,$Wa){return
  311. queries("CREATE DATABASE ".idf_escape($i).($Wa?" COLLATE ".q($Wa):""));}function
  312. drop_databases($h){$K=apply_queries("DROP DATABASE",$h,'idf_escape');restart_session();set_session("dbs",null);return$K;}function
  313. rename_database($E,$Wa){$K=false;if(create_database($E,$Wa)){$nf=array();foreach(tables_list()as$Q=>$U)$nf[]=table($Q)." TO ".idf_escape($E).".".table($Q);$K=(!$nf||queries("RENAME TABLE ".implode(", ",$nf)));if($K)queries("DROP DATABASE ".idf_escape(DB));restart_session();set_session("dbs",null);}return$K;}function
  314. auto_increment(){$za=" PRIMARY KEY";if($_GET["create"]!=""&&$_POST["auto_increment_col"]){foreach(indexes($_GET["create"])as$v){if(in_array($_POST["fields"][$_POST["auto_increment_col"]]["orig"],$v["columns"],true)){$za="";break;}if($v["type"]=="PRIMARY")$za=" UNIQUE";}}return" AUTO_INCREMENT$za";}function
  315. alter_table($Q,$E,$m,$wc,$bb,$Xb,$Wa,$ya,$Fe){$sa=array();foreach($m
  316. as$l)$sa[]=($l[1]?($Q!=""?($l[0]!=""?"CHANGE ".idf_escape($l[0]):"ADD"):" ")." ".implode($l[1]).($Q!=""?$l[2]:""):"DROP ".idf_escape($l[0]));$sa=array_merge($sa,$wc);$Uf=($bb!==null?" COMMENT=".q($bb):"").($Xb?" ENGINE=".q($Xb):"").($Wa?" COLLATE ".q($Wa):"").($ya!=""?" AUTO_INCREMENT=$ya":"");if($Q=="")return
  317. queries("CREATE TABLE ".table($E)." (\n".implode(",\n",$sa)."\n)$Uf$Fe");if($Q!=$E)$sa[]="RENAME TO ".table($E);if($Uf)$sa[]=ltrim($Uf);return($sa||$Fe?queries("ALTER TABLE ".table($Q)."\n".implode(",\n",$sa).$Fe):true);}function
  318. alter_indexes($Q,$sa){foreach($sa
  319. as$z=>$X)$sa[$z]=($X[2]=="DROP"?"\nDROP INDEX ".idf_escape($X[1]):"\nADD $X[0] ".($X[0]=="PRIMARY"?"KEY ":"").($X[1]!=""?idf_escape($X[1])." ":"")."(".implode(", ",$X[2]).")");return
  320. queries("ALTER TABLE ".table($Q).implode(",",$sa));}function
  321. truncate_tables($S){return
  322. apply_queries("TRUNCATE TABLE",$S);}function
  323. drop_views($gh){return
  324. queries("DROP VIEW ".implode(", ",array_map('table',$gh)));}function
  325. drop_tables($S){return
  326. queries("DROP TABLE ".implode(", ",array_map('table',$S)));}function
  327. move_tables($S,$gh,$ng){$nf=array();foreach(array_merge($S,$gh)as$Q)$nf[]=table($Q)." TO ".idf_escape($ng).".".table($Q);return
  328. queries("RENAME TABLE ".implode(", ",$nf));}function
  329. copy_tables($S,$gh,$ng){queries("SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'");foreach($S
  330. as$Q){$E=($ng==DB?table("copy_$Q"):idf_escape($ng).".".table($Q));if(!queries("\nDROP TABLE IF EXISTS $E")||!queries("CREATE TABLE $E LIKE ".table($Q))||!queries("INSERT INTO $E SELECT * FROM ".table($Q)))return
  331. false;}foreach($gh
  332. as$Q){$E=($ng==DB?table("copy_$Q"):idf_escape($ng).".".table($Q));$fh=view($Q);if(!queries("DROP VIEW IF EXISTS $E")||!queries("CREATE VIEW $E AS $fh[select]"))return
  333. false;}return
  334. true;}function
  335. trigger($E){if($E=="")return
  336. array();$M=get_rows("SHOW TRIGGERS WHERE `Trigger` = ".q($E));return
  337. reset($M);}function
  338. triggers($Q){$K=array();foreach(get_rows("SHOW TRIGGERS LIKE ".q(addcslashes($Q,"%_\\")))as$L)$K[$L["Trigger"]]=array($L["Timing"],$L["Event"]);return$K;}function
  339. trigger_options(){return
  340. array("Timing"=>array("BEFORE","AFTER"),"Event"=>array("INSERT","UPDATE","DELETE"),"Type"=>array("FOR EACH ROW"),);}function
  341. routine($E,$U){global$e,$Zb,$Vc,$Lg;$qa=array("bool","boolean","integer","double precision","real","dec","numeric","fixed","national char","national varchar");$Of="(?:\\s|/\\*[\s\S]*?\\*/|(?:#|-- )[^\n]*\n?|--\r?\n)";$Kg="((".implode("|",array_merge(array_keys($Lg),$qa)).")\\b(?:\\s*\\(((?:[^'\")]|$Zb)++)\\))?\\s*(zerofill\\s*)?(unsigned(?:\\s+zerofill)?)?)(?:\\s*(?:CHARSET|CHARACTER\\s+SET)\\s*['\"]?([^'\"\\s,]+)['\"]?)?";$Je="$Of*(".($U=="FUNCTION"?"":$Vc).")?\\s*(?:`((?:[^`]|``)*)`\\s*|\\b(\\S+)\\s+)$Kg";$g=$e->result("SHOW CREATE $U ".idf_escape($E),2);preg_match("~\\(((?:$Je\\s*,?)*)\\)\\s*".($U=="FUNCTION"?"RETURNS\\s+$Kg\\s+":"")."(.*)~is",$g,$C);$m=array();preg_match_all("~$Je\\s*,?~is",$C[1],$_d,PREG_SET_ORDER);foreach($_d
  342. as$Ae){$E=str_replace("``","`",$Ae[2]).$Ae[3];$m[]=array("field"=>$E,"type"=>strtolower($Ae[5]),"length"=>preg_replace_callback("~$Zb~s",'normalize_enum',$Ae[6]),"unsigned"=>strtolower(preg_replace('~\\s+~',' ',trim("$Ae[8] $Ae[7]"))),"null"=>1,"full_type"=>$Ae[4],"inout"=>strtoupper($Ae[1]),"collation"=>strtolower($Ae[9]),);}if($U!="FUNCTION")return
  343. array("fields"=>$m,"definition"=>$C[11]);return
  344. array("fields"=>$m,"returns"=>array("type"=>$C[12],"length"=>$C[13],"unsigned"=>$C[15],"collation"=>$C[16]),"definition"=>$C[17],"language"=>"SQL",);}function
  345. routines(){return
  346. get_rows("SELECT ROUTINE_NAME AS SPECIFIC_NAME, ROUTINE_NAME, ROUTINE_TYPE, DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = ".q(DB));}function
  347. routine_languages(){return
  348. array();}function
  349. routine_id($E,$L){return
  350. idf_escape($E);}function
  351. last_id(){global$e;return$e->result("SELECT LAST_INSERT_ID()");}function
  352. explain($e,$I){return$e->query("EXPLAIN ".(min_version(5.1)?"PARTITIONS ":"").$I);}function
  353. found_rows($R,$Z){return($Z||$R["Engine"]!="InnoDB"?null:$R["Rows"]);}function
  354. types(){return
  355. array();}function
  356. schemas(){return
  357. array();}function
  358. get_schema(){return"";}function
  359. set_schema($zf){return
  360. true;}function
  361. create_sql($Q,$ya,$Zf){global$e;$K=$e->result("SHOW CREATE TABLE ".table($Q),1);if(!$ya)$K=preg_replace('~ AUTO_INCREMENT=\\d+~','',$K);return$K;}function
  362. truncate_sql($Q){return"TRUNCATE ".table($Q);}function
  363. use_sql($tb){return"USE ".idf_escape($tb);}function
  364. trigger_sql($Q){$K="";foreach(get_rows("SHOW TRIGGERS LIKE ".q(addcslashes($Q,"%_\\")),null,"-- ")as$L)$K.="\nCREATE TRIGGER ".idf_escape($L["Trigger"])." $L[Timing] $L[Event] ON ".table($L["Table"])." FOR EACH ROW\n$L[Statement];;\n";return$K;}function
  365. show_variables(){return
  366. get_key_vals("SHOW VARIABLES");}function
  367. process_list(){return
  368. get_rows("SHOW FULL PROCESSLIST");}function
  369. show_status(){return
  370. get_key_vals("SHOW STATUS");}function
  371. convert_field($l){if(preg_match("~binary~",$l["type"]))return"HEX(".idf_escape($l["field"]).")";if($l["type"]=="bit")return"BIN(".idf_escape($l["field"])." + 0)";if(preg_match("~geometry|point|linestring|polygon~",$l["type"]))return(min_version(8)?"ST_":"")."AsWKT(".idf_escape($l["field"]).")";}function
  372. unconvert_field($l,$K){if(preg_match("~binary~",$l["type"]))$K="UNHEX($K)";if($l["type"]=="bit")$K="CONV($K, 2, 10) + 0";if(preg_match("~geometry|point|linestring|polygon~",$l["type"]))$K=(min_version(8)?"ST_":"")."GeomFromText($K)";return$K;}function
  373. support($pc){return!preg_match("~scheme|sequence|type|view_trigger|materializedview".(min_version(5.1)?"":"|event|partitioning".(min_version(5)?"":"|routine|trigger|view"))."~",$pc);}function
  374. kill_process($X){return
  375. queries("KILL ".number($X));}function
  376. connection_id(){return"SELECT CONNECTION_ID()";}function
  377. max_connections(){global$e;return$e->result("SELECT @@max_connections");}$y="sql";$Lg=array();$Yf=array();foreach(array('Numbers'=>array("tinyint"=>3,"smallint"=>5,"mediumint"=>8,"int"=>10,"bigint"=>20,"decimal"=>66,"float"=>12,"double"=>21),'Date and time'=>array("date"=>10,"datetime"=>19,"timestamp"=>19,"time"=>10,"year"=>4),'Strings'=>array("char"=>255,"varchar"=>65535,"tinytext"=>255,"text"=>65535,"mediumtext"=>16777215,"longtext"=>4294967295),'Lists'=>array("enum"=>65535,"set"=>64),'Binary'=>array("bit"=>20,"binary"=>255,"varbinary"=>65535,"tinyblob"=>255,"blob"=>65535,"mediumblob"=>16777215,"longblob"=>4294967295),'Geometry'=>array("geometry"=>0,"point"=>0,"linestring"=>0,"polygon"=>0,"multipoint"=>0,"multilinestring"=>0,"multipolygon"=>0,"geometrycollection"=>0),)as$z=>$X){$Lg+=$X;$Yf[$z]=array_keys($X);}$Sg=array("unsigned","zerofill","unsigned zerofill");$ke=array("=","<",">","<=",">=","!=","LIKE","LIKE %%","REGEXP","IN","FIND_IN_SET","IS NULL","NOT LIKE","NOT REGEXP","NOT IN","IS NOT NULL","SQL");$Bc=array("char_length","date","from_unixtime","lower","round","floor","ceil","sec_to_time","time_to_sec","upper");$Fc=array("avg","count","count distinct","group_concat","max","min","sum");$Pb=array(array("char"=>"md5/sha1/password/encrypt/uuid","binary"=>"md5/sha1","date|time"=>"now",),array(number_type()=>"+/-","date"=>"+ interval/- interval","time"=>"addtime/subtime","char|text"=>"concat",));}define("SERVER",$_GET[DRIVER]);define("DB",$_GET["db"]);define("ME",preg_replace('~^[^?]*/([^?]*).*~','\\1',$_SERVER["REQUEST_URI"]).'?'.(sid()?SID.'&':'').(SERVER!==null?DRIVER."=".urlencode(SERVER).'&':'').(isset($_GET["username"])?"username=".urlencode($_GET["username"]).'&':'').(DB!=""?'db='.urlencode(DB).'&'.(isset($_GET["ns"])?"ns=".urlencode($_GET["ns"])."&":""):''));$ga="4.6.2";class
  378. Adminer{var$operators;function
  379. name(){return"<a href='https://www.adminer.org/'".target_blank()." id='h1'>Adminer</a>";}function
  380. credentials(){return
  381. array(SERVER,$_GET["username"],get_password());}function
  382. connectSsl(){}function
  383. permanentLogin($g=false){return
  384. password_file($g);}function
  385. bruteForceKey(){return$_SERVER["REMOTE_ADDR"];}function
  386. serverName($O){return
  387. h($O);}function
  388. database(){return
  389. DB;}function
  390. databases($vc=true){return
  391. get_databases($vc);}function
  392. schemas(){return
  393. schemas();}function
  394. queryTimeout(){return
  395. 5;}function
  396. headers(){}function
  397. csp(){return
  398. csp();}function
  399. head(){return
  400. true;}function
  401. css(){$K=array();$sc="adminer.css";if(file_exists($sc))$K[]=$sc;return$K;}function
  402. loginForm(){global$Ib;?>
  403. <table cellspacing="0">
  404. <tr><th>System<td><input type='hidden' name='auth[driver]' value='server'>MySQL
  405. <tr><th>Server<td><input name="auth[server]" value="<?php echo
  406. h(SERVER),'" title="hostname[:port]" placeholder="localhost" autocapitalize="off">
  407. <tr><th>Username<td><input name="auth[username]" id="username" value="',h($_GET["username"]),'" autocapitalize="off">
  408. <tr><th>Password<td><input type="password" name="auth[password]">
  409. <tr><th>Database<td><input name="auth[db]" value="',h($_GET["db"]),'" autocapitalize="off">
  410. </table>
  411. ',script("focus(qs('#username'));"),"<p><input type='submit' value='".'Login'."'>\n",checkbox("auth[permanent]",1,$_COOKIE["adminer_permanent"],'Permanent login')."\n";}function
  412. login($wd,$G){global$y;if($y=="sqlite")return
  413. sprintf('<a href="https://www.adminer.org/en/extension/"%s>Implement</a> %s method to use SQLite.',target_blank(),'<code>login()</code>');return
  414. true;}function
  415. tableName($fg){return
  416. h($fg["Name"]);}function
  417. fieldName($l,$oe=0){return'<span title="'.h($l["full_type"]).'">'.h($l["field"]).'</span>';}function
  418. selectLinks($fg,$P=""){global$y,$j;echo'<p class="links">';$vd=array("select"=>'Select data');if(support("table")||support("indexes"))$vd["table"]='Show structure';if(support("table")){if(is_view($fg))$vd["view"]='Alter view';else$vd["create"]='Alter table';}if($P!==null)$vd["edit"]='New item';$E=$fg["Name"];foreach($vd
  419. as$z=>$X)echo" <a href='".h(ME)."$z=".urlencode($E).($z=="edit"?$P:"")."'".bold(isset($_GET[$z])).">$X</a>";echo
  420. doc_link(array($y=>$j->tableHelp($E)),"?"),"\n";}function
  421. foreignKeys($Q){return
  422. foreign_keys($Q);}function
  423. backwardKeys($Q,$eg){return
  424. array();}function
  425. backwardKeysPrint($Aa,$L){}function
  426. selectQuery($I,$Tf,$nc=false){global$y,$j;$K="</p>\n";if(!$nc&&($jh=$j->warnings())){$u="warnings";$K=", <a href='#$u'>".'Warnings'."</a>".script("qsl('a').onclick = partial(toggle, '$u');","")."$K<div id='$u' class='hidden'>\n$jh</div>\n";}return"<p><code class='jush-$y'>".h(str_replace("\n"," ",$I))."</code> <span class='time'>(".format_time($Tf).")</span>".(support("sql")?" <a href='".h(ME)."sql=".urlencode($I)."'>".'Edit'."</a>":"").$K;}function
  427. sqlCommandQuery($I){return
  428. shorten_utf8(trim($I),1000);}function
  429. rowDescription($Q){return"";}function
  430. rowDescriptions($M,$xc){return$M;}function
  431. selectLink($X,$l){}function
  432. selectVal($X,$A,$l,$we){$K=($X===null?"<i>NULL</i>":(preg_match("~char|binary|boolean~",$l["type"])&&!preg_match("~var~",$l["type"])?"<code>$X</code>":$X));if(preg_match('~blob|bytea|raw|file~',$l["type"])&&!is_utf8($X))$K="<i>".lang(array('%d byte','%d bytes'),strlen($we))."</i>";if(preg_match('~json~',$l["type"]))$K="<code class='jush-js'>$K</code>";return($A?"<a href='".h($A)."'".(is_url($A)?target_blank():"").">$K</a>":$K);}function
  433. editVal($X,$l){return$X;}function
  434. tableStructurePrint($m){echo"<table cellspacing='0' class='nowrap'>\n","<thead><tr><th>".'Column'."<td>".'Type'.(support("comment")?"<td>".'Comment':"")."</thead>\n";foreach($m
  435. as$l){echo"<tr".odd()."><th>".h($l["field"]),"<td><span title='".h($l["collation"])."'>".h($l["full_type"])."</span>",($l["null"]?" <i>NULL</i>":""),($l["auto_increment"]?" <i>".'Auto Increment'."</i>":""),(isset($l["default"])?" <span title='".'Default value'."'>[<b>".h($l["default"])."</b>]</span>":""),(support("comment")?"<td>".nbsp($l["comment"]):""),"\n";}echo"</table>\n";}function
  436. tableIndexesPrint($w){echo"<table cellspacing='0'>\n";foreach($w
  437. as$E=>$v){ksort($v["columns"]);$Ue=array();foreach($v["columns"]as$z=>$X)$Ue[]="<i>".h($X)."</i>".($v["lengths"][$z]?"(".$v["lengths"][$z].")":"").($v["descs"][$z]?" DESC":"");echo"<tr title='".h($E)."'><th>$v[type]<td>".implode(", ",$Ue)."\n";}echo"</table>\n";}function
  438. selectColumnsPrint($N,$d){global$Bc,$Fc;print_fieldset("select",'Select',$N);$t=0;$N[""]=array();foreach($N
  439. as$z=>$X){$X=$_GET["columns"][$z];$c=select_input(" name='columns[$t][col]'",$d,$X["col"],($z!==""?"selectFieldChange":"selectAddRow"));echo"<div>".($Bc||$Fc?"<select name='columns[$t][fun]'>".optionlist(array(-1=>"")+array_filter(array('Functions'=>$Bc,'Aggregation'=>$Fc)),$X["fun"])."</select>".on_help("getTarget(event).value && getTarget(event).value.replace(/ |\$/, '(') + ')'",1).script("qsl('select').onchange = function () { helpClose();".($z!==""?"":" qsl('select, input', this.parentNode).onchange();")." };","")."($c)":$c)."</div>\n";$t++;}echo"</div></fieldset>\n";}function
  440. selectSearchPrint($Z,$d,$w){print_fieldset("search",'Search',$Z);foreach($w
  441. as$t=>$v){if($v["type"]=="FULLTEXT"){echo"<div>(<i>".implode("</i>, <i>",array_map('h',$v["columns"]))."</i>) AGAINST"," <input type='search' name='fulltext[$t]' value='".h($_GET["fulltext"][$t])."'>",script("qsl('input').oninput = selectFieldChange;",""),checkbox("boolean[$t]",1,isset($_GET["boolean"][$t]),"BOOL"),"</div>\n";}}$Ka="this.parentNode.firstChild.onchange();";foreach(array_merge((array)$_GET["where"],array(array()))as$t=>$X){if(!$X||("$X[col]$X[val]"!=""&&in_array($X["op"],$this->operators))){echo"<div>".select_input(" name='where[$t][col]'",$d,$X["col"],($X?"selectFieldChange":"selectAddRow"),"(".'anywhere'.")"),html_select("where[$t][op]",$this->operators,$X["op"],$Ka),"<input type='search' name='where[$t][val]' value='".h($X["val"])."'>",script("mixin(qsl('input'), {oninput: function () { $Ka }, onkeydown: selectSearchKeydown, onsearch: selectSearchSearch});",""),"</div>\n";}}echo"</div></fieldset>\n";}function
  442. selectOrderPrint($oe,$d,$w){print_fieldset("sort",'Sort',$oe);$t=0;foreach((array)$_GET["order"]as$z=>$X){if($X!=""){echo"<div>".select_input(" name='order[$t]'",$d,$X,"selectFieldChange"),checkbox("desc[$t]",1,isset($_GET["desc"][$z]),'descending')."</div>\n";$t++;}}echo"<div>".select_input(" name='order[$t]'",$d,"","selectAddRow"),checkbox("desc[$t]",1,false,'descending')."</div>\n","</div></fieldset>\n";}function
  443. selectLimitPrint($_){echo"<fieldset><legend>".'Limit'."</legend><div>";echo"<input type='number' name='limit' class='size' value='".h($_)."'>",script("qsl('input').oninput = selectFieldChange;",""),"</div></fieldset>\n";}function
  444. selectLengthPrint($sg){if($sg!==null){echo"<fieldset><legend>".'Text length'."</legend><div>","<input type='number' name='text_length' class='size' value='".h($sg)."'>","</div></fieldset>\n";}}function
  445. selectActionPrint($w){echo"<fieldset><legend>".'Action'."</legend><div>","<input type='submit' value='".'Select'."'>"," <span id='noindex' title='".'Full table scan'."'></span>","<script".nonce().">\n","var indexColumns = ";$d=array();foreach($w
  446. as$v){$qb=reset($v["columns"]);if($v["type"]!="FULLTEXT"&&$qb)$d[$qb]=1;}$d[""]=1;foreach($d
  447. as$z=>$X)json_row($z);echo";\n","selectFieldChange.call(qs('#form')['select']);\n","</script>\n","</div></fieldset>\n";}function
  448. selectCommandPrint(){return!information_schema(DB);}function
  449. selectImportPrint(){return!information_schema(DB);}function
  450. selectEmailPrint($Ub,$d){}function
  451. selectColumnsProcess($d,$w){global$Bc,$Fc;$N=array();$s=array();foreach((array)$_GET["columns"]as$z=>$X){if($X["fun"]=="count"||($X["col"]!=""&&(!$X["fun"]||in_array($X["fun"],$Bc)||in_array($X["fun"],$Fc)))){$N[$z]=apply_sql_function($X["fun"],($X["col"]!=""?idf_escape($X["col"]):"*"));if(!in_array($X["fun"],$Fc))$s[]=$N[$z];}}return
  452. array($N,$s);}function
  453. selectSearchProcess($m,$w){global$e,$j;$K=array();foreach($w
  454. as$t=>$v){if($v["type"]=="FULLTEXT"&&$_GET["fulltext"][$t]!="")$K[]="MATCH (".implode(", ",array_map('idf_escape',$v["columns"])).") AGAINST (".q($_GET["fulltext"][$t]).(isset($_GET["boolean"][$t])?" IN BOOLEAN MODE":"").")";}foreach((array)$_GET["where"]as$z=>$X){if("$X[col]$X[val]"!=""&&in_array($X["op"],$this->operators)){$Re="";$db=" $X[op]";if(preg_match('~IN$~',$X["op"])){$Sc=process_length($X["val"]);$db.=" ".($Sc!=""?$Sc:"(NULL)");}elseif($X["op"]=="SQL")$db=" $X[val]";elseif($X["op"]=="LIKE %%")$db=" LIKE ".$this->processInput($m[$X["col"]],"%$X[val]%");elseif($X["op"]=="ILIKE %%")$db=" ILIKE ".$this->processInput($m[$X["col"]],"%$X[val]%");elseif($X["op"]=="FIND_IN_SET"){$Re="$X[op](".q($X["val"]).", ";$db=")";}elseif(!preg_match('~NULL$~',$X["op"]))$db.=" ".$this->processInput($m[$X["col"]],$X["val"]);if($X["col"]!="")$K[]=$Re.$j->convertSearch(idf_escape($X["col"]),$X,$m[$X["col"]]).$db;else{$Ya=array();foreach($m
  455. as$E=>$l){if((is_numeric($X["val"])||!preg_match('~'.number_type().'|bit~',$l["type"]))&&(!preg_match("~[\x80-\xFF]~",$X["val"])||preg_match('~char|text|enum|set~',$l["type"])))$Ya[]=$Re.$j->convertSearch(idf_escape($E),$X,$l).$db;}$K[]=($Ya?"(".implode(" OR ",$Ya).")":"1 = 0");}}}return$K;}function
  456. selectOrderProcess($m,$w){$K=array();foreach((array)$_GET["order"]as$z=>$X){if($X!="")$K[]=(preg_match('~^((COUNT\\(DISTINCT |[A-Z0-9_]+\\()(`(?:[^`]|``)+`|"(?:[^"]|"")+")\\)|COUNT\\(\\*\\))$~',$X)?$X:idf_escape($X)).(isset($_GET["desc"][$z])?" DESC":"");}return$K;}function
  457. selectLimitProcess(){return(isset($_GET["limit"])?$_GET["limit"]:"50");}function
  458. selectLengthProcess(){return(isset($_GET["text_length"])?$_GET["text_length"]:"100");}function
  459. selectEmailProcess($Z,$xc){return
  460. false;}function
  461. selectQueryBuild($N,$Z,$s,$oe,$_,$F){return"";}function
  462. messageQuery($I,$tg,$nc=false){global$y,$j;restart_session();$Lc=&get_session("queries");if(!$Lc[$_GET["db"]])$Lc[$_GET["db"]]=array();if(strlen($I)>1e6)$I=preg_replace('~[\x80-\xFF]+$~','',substr($I,0,1e6))."\n...";$Lc[$_GET["db"]][]=array($I,time(),$tg);$Rf="sql-".count($Lc[$_GET["db"]]);$K="<a href='#$Rf' class='toggle'>".'SQL command'."</a>\n";if(!$nc&&($jh=$j->warnings())){$u="warnings-".count($Lc[$_GET["db"]]);$K="<a href='#$u' class='toggle'>".'Warnings'."</a>, $K<div id='$u' class='hidden'>\n$jh</div>\n";}return" <span class='time'>".@date("H:i:s")."</span>"." $K<div id='$Rf' class='hidden'><pre><code class='jush-$y'>".shorten_utf8($I,1000)."</code></pre>".($tg?" <span class='time'>($tg)</span>":'').(support("sql")?'<p><a href="'.h(str_replace("db=".urlencode(DB),"db=".urlencode($_GET["db"]),ME).'sql=&history='.(count($Lc[$_GET["db"]])-1)).'">'.'Edit'.'</a>':'').'</div>';}function
  463. editFunctions($l){global$Pb;$K=($l["null"]?"NULL/":"");foreach($Pb
  464. as$z=>$Bc){if(!$z||(!isset($_GET["call"])&&(isset($_GET["select"])||where($_GET)))){foreach($Bc
  465. as$Je=>$X){if(!$Je||preg_match("~$Je~",$l["type"]))$K.="/$X";}if($z&&!preg_match('~set|blob|bytea|raw|file~',$l["type"]))$K.="/SQL";}}if($l["auto_increment"]&&!isset($_GET["select"])&&!where($_GET))$K='Auto Increment';return
  466. explode("/",$K);}function
  467. editInput($Q,$l,$wa,$Y){if($l["type"]=="enum")return(isset($_GET["select"])?"<label><input type='radio'$wa value='-1' checked><i>".'original'."</i></label> ":"").($l["null"]?"<label><input type='radio'$wa value=''".($Y!==null||isset($_GET["select"])?"":" checked")."><i>NULL</i></label> ":"").enum_input("radio",$wa,$l,$Y,0);return"";}function
  468. editHint($Q,$l,$Y){return"";}function
  469. processInput($l,$Y,$q=""){if($q=="SQL")return$Y;$E=$l["field"];$K=q($Y);if(preg_match('~^(now|getdate|uuid)$~',$q))$K="$q()";elseif(preg_match('~^current_(date|timestamp)$~',$q))$K=$q;elseif(preg_match('~^([+-]|\\|\\|)$~',$q))$K=idf_escape($E)." $q $K";elseif(preg_match('~^[+-] interval$~',$q))$K=idf_escape($E)." $q ".(preg_match("~^(\\d+|'[0-9.: -]') [A-Z_]+\$~i",$Y)?$Y:$K);elseif(preg_match('~^(addtime|subtime|concat)$~',$q))$K="$q(".idf_escape($E).", $K)";elseif(preg_match('~^(md5|sha1|password|encrypt)$~',$q))$K="$q($K)";return
  470. unconvert_field($l,$K);}function
  471. dumpOutput(){$K=array('text'=>'open','file'=>'save');if(function_exists('gzencode'))$K['gz']='gzip';return$K;}function
  472. dumpFormat(){return
  473. array('sql'=>'SQL','csv'=>'CSV,','csv;'=>'CSV;','tsv'=>'TSV');}function
  474. dumpDatabase($i){}function
  475. dumpTable($Q,$Zf,$ed=0){if($_POST["format"]!="sql"){echo"\xef\xbb\xbf";if($Zf)dump_csv(array_keys(fields($Q)));}else{if($ed==2){$m=array();foreach(fields($Q)as$E=>$l)$m[]=idf_escape($E)." $l[full_type]";$g="CREATE TABLE ".table($Q)." (".implode(", ",$m).")";}else$g=create_sql($Q,$_POST["auto_increment"],$Zf);set_utf8mb4($g);if($Zf&&$g){if($Zf=="DROP+CREATE"||$ed==1)echo"DROP ".($ed==2?"VIEW":"TABLE")." IF EXISTS ".table($Q).";\n";if($ed==1)$g=remove_definer($g);echo"$g;\n\n";}}}function
  476. dumpData($Q,$Zf,$I){global$e,$y;$Bd=($y=="sqlite"?0:1048576);if($Zf){if($_POST["format"]=="sql"){if($Zf=="TRUNCATE+INSERT")echo
  477. truncate_sql($Q).";\n";$m=fields($Q);}$J=$e->query($I,1);if($J){$Xc="";$Ia="";$gd=array();$bg="";$qc=($Q!=''?'fetch_assoc':'fetch_row');while($L=$J->$qc()){if(!$gd){$bh=array();foreach($L
  478. as$X){$l=$J->fetch_field();$gd[]=$l->name;$z=idf_escape($l->name);$bh[]="$z = VALUES($z)";}$bg=($Zf=="INSERT+UPDATE"?"\nON DUPLICATE KEY UPDATE ".implode(", ",$bh):"").";\n";}if($_POST["format"]!="sql"){if($Zf=="table"){dump_csv($gd);$Zf="INSERT";}dump_csv($L);}else{if(!$Xc)$Xc="INSERT INTO ".table($Q)." (".implode(", ",array_map('idf_escape',$gd)).") VALUES";foreach($L
  479. as$z=>$X){$l=$m[$z];$L[$z]=($X!==null?unconvert_field($l,preg_match(number_type(),$l["type"])&&$X!=''?$X:q($X)):"NULL");}$xf=($Bd?"\n":" ")."(".implode(",\t",$L).")";if(!$Ia)$Ia=$Xc.$xf;elseif(strlen($Ia)+4+strlen($xf)+strlen($bg)<$Bd)$Ia.=",$xf";else{echo$Ia.$bg;$Ia=$Xc.$xf;}}}if($Ia)echo$Ia.$bg;}elseif($_POST["format"]=="sql")echo"-- ".str_replace("\n"," ",$e->error)."\n";}}function
  480. dumpFilename($Pc){return
  481. friendly_url($Pc!=""?$Pc:(SERVER!=""?SERVER:"localhost"));}function
  482. dumpHeaders($Pc,$Nd=false){$ye=$_POST["output"];$kc=(preg_match('~sql~',$_POST["format"])?"sql":($Nd?"tar":"csv"));header("Content-Type: ".($ye=="gz"?"application/x-gzip":($kc=="tar"?"application/x-tar":($kc=="sql"||$ye!="file"?"text/plain":"text/csv")."; charset=utf-8")));if($ye=="gz")ob_start('ob_gzencode',1e6);return$kc;}function
  483. importServerPath(){return"adminer.sql";}function
  484. homepage(){echo'<p class="links">'.($_GET["ns"]==""&&support("database")?'<a href="'.h(ME).'database=">'.'Alter database'."</a>\n":""),(support("scheme")?"<a href='".h(ME)."scheme='>".($_GET["ns"]!=""?'Alter schema':'Create schema')."</a>\n":""),($_GET["ns"]!==""?'<a href="'.h(ME).'schema=">'.'Database schema'."</a>\n":""),(support("privileges")?"<a href='".h(ME)."privileges='>".'Privileges'."</a>\n":"");return
  485. true;}function
  486. navigation($Md){global$ga,$y,$Ib,$e;echo'<h1>
  487. ',$this->name(),' <span class="version">',$ga,'</span>
  488. <a href="https://www.adminer.org/#download"',target_blank(),' id="version">',(version_compare($ga,$_COOKIE["adminer_version"])<0?h($_COOKIE["adminer_version"]):""),'</a>
  489. </h1>
  490. ';if($Md=="auth"){$uc=true;foreach((array)$_SESSION["pwds"]as$dh=>$Hf){foreach($Hf
  491. as$O=>$Zg){foreach($Zg
  492. as$V=>$G){if($G!==null){if($uc){echo"<p id='logins'>".script("mixin(qs('#logins'), {onmouseover: menuOver, onmouseout: menuOut});");$uc=false;}$wb=$_SESSION["db"][$dh][$O][$V];foreach(($wb?array_keys($wb):array(""))as$i)echo"<a href='".h(auth_url($dh,$O,$V,$i))."'>($Ib[$dh]) ".h($V.($O!=""?"@".$this->serverName($O):"").($i!=""?" - $i":""))."</a><br>\n";}}}}}else{if($_GET["ns"]!==""&&!$Md&&DB!=""){$e->select_db(DB);$S=table_status('',true);}echo
  493. script_src(preg_replace("~\\?.*~","",ME)."?file=jush.js&version=4.6.2&driver=mysql");if(support("sql")){echo'<script',nonce(),'>
  494. ';if($S){$vd=array();foreach($S
  495. as$Q=>$U)$vd[]=preg_quote($Q,'/');echo"var jushLinks = { $y: [ '".js_escape(ME).(support("table")?"table=":"select=")."\$&', /\\b(".implode("|",$vd).")\\b/g ] };\n";foreach(array("bac","bra","sqlite_quo","mssql_bra")as$X)echo"jushLinks.$X = jushLinks.$y;\n";}$Gf=$e->server_info;echo'bodyLoad(\'',(is_object($e)?preg_replace('~^(\\d\\.?\\d).*~s','\\1',$Gf):""),'\'',(preg_match('~MariaDB~',$Gf)?", true":""),');
  496. </script>
  497. ';}$this->databasesPrint($Md);if(DB==""||!$Md){echo"<p class='links'>".(support("sql")?"<a href='".h(ME)."sql='".bold(isset($_GET["sql"])&&!isset($_GET["import"])).">".'SQL command'."</a>\n<a href='".h(ME)."import='".bold(isset($_GET["import"])).">".'Import'."</a>\n":"")."";if(support("dump"))echo"<a href='".h(ME)."dump=".urlencode(isset($_GET["table"])?$_GET["table"]:$_GET["select"])."' id='dump'".bold(isset($_GET["dump"])).">".'Export'."</a>\n";}if($_GET["ns"]!==""&&!$Md&&DB!=""){echo'<a href="'.h(ME).'create="'.bold($_GET["create"]==="").">".'Create table'."</a>\n";if(!$S)echo"<p class='message'>".'No tables.'."\n";else$this->tablesPrint($S);}}}function
  498. databasesPrint($Md){global$b,$e;$h=$this->databases();echo'<form action="">
  499. <p id="dbs">
  500. ';hidden_fields_get();$ub=script("mixin(qsl('select'), {onmousedown: dbMouseDown, onchange: dbChange});");echo"<span title='".'database'."'>".'DB'."</span>: ".($h?"<select name='db'>".optionlist(array(""=>"")+$h,DB)."</select>$ub":"<input name='db' value='".h(DB)."' autocapitalize='off'>\n"),"<input type='submit' value='".'Use'."'".($h?" class='hidden'":"").">\n";if($Md!="db"&&DB!=""&&$e->select_db(DB)){}echo(isset($_GET["sql"])?'<input type="hidden" name="sql" value="">':(isset($_GET["schema"])?'<input type="hidden" name="schema" value="">':(isset($_GET["dump"])?'<input type="hidden" name="dump" value="">':(isset($_GET["privileges"])?'<input type="hidden" name="privileges" value="">':"")))),"</p></form>\n";}function
  501. tablesPrint($S){echo"<ul id='tables'>".script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");foreach($S
  502. as$Q=>$Uf){$E=$this->tableName($Uf);if($E!=""){echo'<li><a href="'.h(ME).'select='.urlencode($Q).'"'.bold($_GET["select"]==$Q||$_GET["edit"]==$Q,"select").">".'select'."</a> ",(support("table")||support("indexes")?'<a href="'.h(ME).'table='.urlencode($Q).'"'.bold(in_array($Q,array($_GET["table"],$_GET["create"],$_GET["indexes"],$_GET["foreign"],$_GET["trigger"])),(is_view($Uf)?"view":"structure"))." title='".'Show structure'."'>$E</a>":"<span>$E</span>")."\n";}}echo"</ul>\n";}}$b=(function_exists('adminer_object')?adminer_object():new
  503. Adminer);if($b->operators===null)$b->operators=$ke;function
  504. page_header($wg,$k="",$Ha=array(),$xg=""){global$ca,$ga,$b,$Ib,$y;page_headers();if(is_ajax()&&$k){page_messages($k);exit;}$yg=$wg.($xg!=""?": $xg":"");$zg=strip_tags($yg.(SERVER!=""&&SERVER!="localhost"?h(" - ".SERVER):"")." - ".$b->name());echo'<!DOCTYPE html>
  505. <html lang="en" dir="ltr">
  506. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  507. <meta name="robots" content="noindex">
  508. <title>',$zg,'</title>
  509. <link rel="stylesheet" type="text/css" href="',h(preg_replace("~\\?.*~","",ME)."?file=default.css&version=4.6.2&driver=mysql"),'">
  510. ',script_src(preg_replace("~\\?.*~","",ME)."?file=functions.js&version=4.6.2&driver=mysql");if($b->head()){echo'<link rel="shortcut icon" type="image/x-icon" href="',h(preg_replace("~\\?.*~","",ME)."?file=favicon.ico&version=4.6.2&driver=mysql"),'">
  511. <link rel="apple-touch-icon" href="',h(preg_replace("~\\?.*~","",ME)."?file=favicon.ico&version=4.6.2&driver=mysql"),'">
  512. ';foreach($b->css()as$ob){echo'<link rel="stylesheet" type="text/css" href="',h($ob),'">
  513. ';}}echo'
  514. <body class="ltr nojs">
  515. ';$sc=get_temp_dir()."/adminer.version";if(!$_COOKIE["adminer_version"]&&function_exists('openssl_verify')&&file_exists($sc)&&filemtime($sc)+86400>time()){$eh=unserialize(file_get_contents($sc));$af="-----BEGIN PUBLIC KEY-----
  516. MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwqWOVuF5uw7/+Z70djoK
  517. RlHIZFZPO0uYRezq90+7Amk+FDNd7KkL5eDve+vHRJBLAszF/7XKXe11xwliIsFs
  518. DFWQlsABVZB3oisKCBEuI71J4kPH8dKGEWR9jDHFw3cWmoH3PmqImX6FISWbG3B8
  519. h7FIx3jEaw5ckVPVTeo5JRm/1DZzJxjyDenXvBQ/6o9DgZKeNDgxwKzH+sw9/YCO
  520. jHnq1cFpOIISzARlrHMa/43YfeNRAm/tsBXjSxembBPo7aQZLAWHmaj5+K19H10B
  521. nCpz9Y++cipkVEiKRGih4ZEvjoFysEOdRLj6WiD/uUNky4xGeA6LaJqh5XpkFkcQ
  522. fQIDAQAB
  523. -----END PUBLIC KEY-----
  524. ";if(openssl_verify($eh["version"],base64_decode($eh["signature"]),$af)==1)$_COOKIE["adminer_version"]=$eh["version"];}echo'<script',nonce(),'>
  525. mixin(document.body, {onkeydown: bodyKeydown, onclick: bodyClick',(isset($_COOKIE["adminer_version"])?"":", onload: partial(verifyVersion, '$ga', '".js_escape(ME)."', '".get_token()."')");?>});
  526. document.body.className = document.body.className.replace(/ nojs/, ' js');
  527. var offlineMessage = '<?php echo
  528. js_escape('You are offline.'),'\';
  529. var thousandsSeparator = \'',js_escape(','),'\';
  530. </script>
  531.  
  532. <div id="help" class="jush-',$y,' jsonly hidden"></div>
  533. ',script("mixin(qs('#help'), {onmouseover: function () { helpOpen = 1; }, onmouseout: helpMouseout});"),'
  534. <div id="content">
  535. ';if($Ha!==null){$A=substr(preg_replace('~\b(username|db|ns)=[^&]*&~','',ME),0,-1);echo'<p id="breadcrumb"><a href="'.h($A?$A:".").'">'.$Ib[DRIVER].'</a> &raquo; ';$A=substr(preg_replace('~\b(db|ns)=[^&]*&~','',ME),0,-1);$O=$b->serverName(SERVER);$O=($O!=""?$O:'Server');if($Ha===false)echo"$O\n";else{echo"<a href='".($A?h($A):".")."' accesskey='1' title='Alt+Shift+1'>$O</a> &raquo; ";if($_GET["ns"]!=""||(DB!=""&&is_array($Ha)))echo'<a href="'.h($A."&db=".urlencode(DB).(support("scheme")?"&ns=":"")).'">'.h(DB).'</a> &raquo; ';if(is_array($Ha)){if($_GET["ns"]!="")echo'<a href="'.h(substr(ME,0,-1)).'">'.h($_GET["ns"]).'</a> &raquo; ';foreach($Ha
  536. as$z=>$X){$Ab=(is_array($X)?$X[1]:h($X));if($Ab!="")echo"<a href='".h(ME."$z=").urlencode(is_array($X)?$X[0]:$X)."'>$Ab</a> &raquo; ";}}echo"$wg\n";}}echo"<h2>$yg</h2>\n","<div id='ajaxstatus' class='jsonly hidden'></div>\n";restart_session();page_messages($k);$h=&get_session("dbs");if(DB!=""&&$h&&!in_array(DB,$h,true))$h=null;stop_session();define("PAGE_HEADER",1);}function
  537. page_headers(){global$b;header("Content-Type: text/html; charset=utf-8");header("Cache-Control: no-cache");header("X-Frame-Options: deny");header("X-XSS-Protection: 0");header("X-Content-Type-Options: nosniff");header("Referrer-Policy: origin-when-cross-origin");foreach($b->csp()as$nb){$Kc=array();foreach($nb
  538. as$z=>$X)$Kc[]="$z $X";header("Content-Security-Policy: ".implode("; ",$Kc));}$b->headers();}function
  539. csp(){return
  540. array(array("script-src"=>"'self' 'unsafe-inline' 'nonce-".get_nonce()."' 'strict-dynamic'","connect-src"=>"'self'","frame-src"=>"https://www.adminer.org","object-src"=>"'none'","base-uri"=>"'none'","form-action"=>"'self'",),);}function
  541. get_nonce(){static$Vd;if(!$Vd)$Vd=base64_encode(rand_string());return$Vd;}function
  542. page_messages($k){$Ug=preg_replace('~^[^?]*~','',$_SERVER["REQUEST_URI"]);$Kd=$_SESSION["messages"][$Ug];if($Kd){echo"<div class='message'>".implode("</div>\n<div class='message'>",$Kd)."</div>".script("messagesPrint();");unset($_SESSION["messages"][$Ug]);}if($k)echo"<div class='error'>$k</div>\n";}function
  543. page_footer($Md=""){global$b,$T;echo'</div>
  544.  
  545. ';if($Md!="auth"){echo'<form action="" method="post">
  546. <p class="logout">
  547. <input type="submit" name="logout" value="Logout" id="logout">
  548. <input type="hidden" name="token" value="',$T,'">
  549. </p>
  550. </form>
  551. ';}echo'<div id="menu">
  552. ';$b->navigation($Md);echo'</div>
  553. ',script("setupSubmitHighlight(document);");}function
  554. int32($Pd){while($Pd>=2147483648)$Pd-=4294967296;while($Pd<=-2147483649)$Pd+=4294967296;return(int)$Pd;}function
  555. long2str($W,$ih){$xf='';foreach($W
  556. as$X)$xf.=pack('V',$X);if($ih)return
  557. substr($xf,0,end($W));return$xf;}function
  558. str2long($xf,$ih){$W=array_values(unpack('V*',str_pad($xf,4*ceil(strlen($xf)/4),"\0")));if($ih)$W[]=strlen($xf);return$W;}function
  559. xxtea_mx($ph,$oh,$cg,$fd){return
  560. int32((($ph>>5&0x7FFFFFF)^$oh<<2)+(($oh>>3&0x1FFFFFFF)^$ph<<4))^int32(($cg^$oh)+($fd^$ph));}function
  561. encrypt_string($Wf,$z){if($Wf=="")return"";$z=array_values(unpack("V*",pack("H*",md5($z))));$W=str2long($Wf,true);$Pd=count($W)-1;$ph=$W[$Pd];$oh=$W[0];$H=floor(6+52/($Pd+1));$cg=0;while($H-->0){$cg=int32($cg+0x9E3779B9);$Ob=$cg>>2&3;for($ze=0;$ze<$Pd;$ze++){$oh=$W[$ze+1];$Od=xxtea_mx($ph,$oh,$cg,$z[$ze&3^$Ob]);$ph=int32($W[$ze]+$Od);$W[$ze]=$ph;}$oh=$W[0];$Od=xxtea_mx($ph,$oh,$cg,$z[$ze&3^$Ob]);$ph=int32($W[$Pd]+$Od);$W[$Pd]=$ph;}return
  562. long2str($W,false);}function
  563. decrypt_string($Wf,$z){if($Wf=="")return"";if(!$z)return
  564. false;$z=array_values(unpack("V*",pack("H*",md5($z))));$W=str2long($Wf,false);$Pd=count($W)-1;$ph=$W[$Pd];$oh=$W[0];$H=floor(6+52/($Pd+1));$cg=int32($H*0x9E3779B9);while($cg){$Ob=$cg>>2&3;for($ze=$Pd;$ze>0;$ze--){$ph=$W[$ze-1];$Od=xxtea_mx($ph,$oh,$cg,$z[$ze&3^$Ob]);$oh=int32($W[$ze]-$Od);$W[$ze]=$oh;}$ph=$W[$Pd];$Od=xxtea_mx($ph,$oh,$cg,$z[$ze&3^$Ob]);$oh=int32($W[0]-$Od);$W[0]=$oh;$cg=int32($cg-0x9E3779B9);}return
  565. long2str($W,true);}$e='';$Jc=$_SESSION["token"];if(!$Jc)$_SESSION["token"]=rand(1,1e6);$T=get_token();$Ke=array();if($_COOKIE["adminer_permanent"]){foreach(explode(" ",$_COOKIE["adminer_permanent"])as$X){list($z)=explode(":",$X);$Ke[$z]=$X;}}function
  566. add_invalid_login(){global$b;$p=file_open_lock(get_temp_dir()."/adminer.invalid");if(!$p)return;$ad=unserialize(stream_get_contents($p));$tg=time();if($ad){foreach($ad
  567. as$bd=>$X){if($X[0]<$tg)unset($ad[$bd]);}}$Zc=&$ad[$b->bruteForceKey()];if(!$Zc)$Zc=array($tg+30*60,0);$Zc[1]++;file_write_unlock($p,serialize($ad));}function
  568. check_invalid_login(){global$b;$ad=unserialize(@file_get_contents(get_temp_dir()."/adminer.invalid"));$Zc=$ad[$b->bruteForceKey()];$Ud=($Zc[1]>29?$Zc[0]-time():0);if($Ud>0)auth_error(lang(array('Too many unsuccessful logins, try again in %d minute.','Too many unsuccessful logins, try again in %d minutes.'),ceil($Ud/60)));}$xa=$_POST["auth"];if($xa){session_regenerate_id();$dh=$xa["driver"];$O=$xa["server"];$V=$xa["username"];$G=(string)$xa["password"];$i=$xa["db"];set_password($dh,$O,$V,$G);$_SESSION["db"][$dh][$O][$V][$i]=true;if($xa["permanent"]){$z=base64_encode($dh)."-".base64_encode($O)."-".base64_encode($V)."-".base64_encode($i);$Ve=$b->permanentLogin(true);$Ke[$z]="$z:".base64_encode($Ve?encrypt_string($G,$Ve):"");cookie("adminer_permanent",implode(" ",$Ke));}if(count($_POST)==1||DRIVER!=$dh||SERVER!=$O||$_GET["username"]!==$V||DB!=$i)redirect(auth_url($dh,$O,$V,$i));}elseif($_POST["logout"]){if($Jc&&!verify_token()){page_header('Logout','Invalid CSRF token. Send the form again.');page_footer("db");exit;}else{foreach(array("pwds","db","dbs","queries")as$z)set_session($z,null);unset_permanent();redirect(substr(preg_replace('~\b(username|db|ns)=[^&]*&~','',ME),0,-1),'Logout successful.'.' '.sprintf('Thanks for using Adminer, consider <a href="%s">donating</a>.','https://sourceforge.net/donate/index.php?group_id=264133'));}}elseif($Ke&&!$_SESSION["pwds"]){session_regenerate_id();$Ve=$b->permanentLogin();foreach($Ke
  569. as$z=>$X){list(,$Qa)=explode(":",$X);list($dh,$O,$V,$i)=array_map('base64_decode',explode("-",$z));set_password($dh,$O,$V,decrypt_string(base64_decode($Qa),$Ve));$_SESSION["db"][$dh][$O][$V][$i]=true;}}function
  570. unset_permanent(){global$Ke;foreach($Ke
  571. as$z=>$X){list($dh,$O,$V,$i)=array_map('base64_decode',explode("-",$z));if($dh==DRIVER&&$O==SERVER&&$V==$_GET["username"]&&$i==DB)unset($Ke[$z]);}cookie("adminer_permanent",implode(" ",$Ke));}function
  572. auth_error($k){global$b,$Jc;$If=session_name();if(isset($_GET["username"])){header("HTTP/1.1 403 Forbidden");if(($_COOKIE[$If]||$_GET[$If])&&!$Jc)$k='Session expired, please login again.';else{add_invalid_login();$G=get_password();if($G!==null){if($G===false)$k.='<br>'.sprintf('Master password expired. <a href="https://www.adminer.org/en/extension/"%s>Implement</a> %s method to make it permanent.',target_blank(),'<code>permanentLogin()</code>');set_password(DRIVER,SERVER,$_GET["username"],null);}unset_permanent();}}if(!$_COOKIE[$If]&&$_GET[$If]&&ini_bool("session.use_only_cookies"))$k='Session support must be enabled.';$Be=session_get_cookie_params();cookie("adminer_key",($_COOKIE["adminer_key"]?$_COOKIE["adminer_key"]:rand_string()),$Be["lifetime"]);page_header('Login',$k,null);echo"<form action='' method='post'>\n","<div>";if(hidden_fields($_POST,array("auth")))echo"<p class='message'>".'The action will be performed after successful login with the same credentials.'."\n";echo"</div>\n";$b->loginForm();echo"</form>\n";page_footer("auth");exit;}if(isset($_GET["username"])){if(!class_exists("Min_DB")){unset($_SESSION["pwds"][DRIVER]);unset_permanent();page_header('No extension',sprintf('None of the supported PHP extensions (%s) are available.',implode(", ",$Qe)),false);page_footer("auth");exit;}list($Nc,$Me)=explode(":",SERVER,2);if(is_numeric($Me)&&$Me<1024)auth_error('Connecting to privileged ports is not allowed.');check_invalid_login();$e=connect();$j=new
  573. Min_Driver($e);}$wd=null;if(!is_object($e)||($wd=$b->login($_GET["username"],get_password()))!==true)auth_error((is_string($e)?h($e):(is_string($wd)?$wd:'Invalid credentials.')));if($xa&&$_POST["token"])$_POST["token"]=$T;$k='';if($_POST){if(!verify_token()){$Uc="max_input_vars";$Fd=ini_get($Uc);if(extension_loaded("suhosin")){foreach(array("suhosin.request.max_vars","suhosin.post.max_vars")as$z){$X=ini_get($z);if($X&&(!$Fd||$X<$Fd)){$Uc=$z;$Fd=$X;}}}$k=(!$_POST["token"]&&$Fd?sprintf('Maximum number of allowed fields exceeded. Please increase %s.',"'$Uc'"):'Invalid CSRF token. Send the form again.'.' '.'If you did not send this request from Adminer then close this page.');}}elseif($_SERVER["REQUEST_METHOD"]=="POST"){$k=sprintf('Too big POST data. Reduce the data or increase the %s configuration directive.',"'post_max_size'");if(isset($_GET["sql"]))$k.=' '.'You can upload a big SQL file via FTP and import it from server.';}if(!ini_bool("session.use_cookies")||@ini_set("session.use_cookies",false)!==false)session_write_close();function
  574. select($J,$f=null,$re=array(),$_=0){global$y;$vd=array();$w=array();$d=array();$Fa=array();$Lg=array();$K=array();odd('');for($t=0;(!$_||$t<$_)&&($L=$J->fetch_row());$t++){if(!$t){echo"<table cellspacing='0' class='nowrap'>\n","<thead><tr>";for($x=0;$x<count($L);$x++){$l=$J->fetch_field();$E=$l->name;$qe=$l->orgtable;$pe=$l->orgname;$K[$l->table]=$qe;if($re&&$y=="sql")$vd[$x]=($E=="table"?"table=":($E=="possible_keys"?"indexes=":null));elseif($qe!=""){if(!isset($w[$qe])){$w[$qe]=array();foreach(indexes($qe,$f)as$v){if($v["type"]=="PRIMARY"){$w[$qe]=array_flip($v["columns"]);break;}}$d[$qe]=$w[$qe];}if(isset($d[$qe][$pe])){unset($d[$qe][$pe]);$w[$qe][$pe]=$x;$vd[$x]=$qe;}}if($l->charsetnr==63)$Fa[$x]=true;$Lg[$x]=$l->type;echo"<th".($qe!=""||$l->name!=$pe?" title='".h(($qe!=""?"$qe.":"").$pe)."'":"").">".h($E).($re?doc_link(array('sql'=>"explain-output.html#explain_".strtolower($E),'mariadb'=>"explain/#the-columns-in-explain-select",)):"");}echo"</thead>\n";}echo"<tr".odd().">";foreach($L
  575. as$z=>$X){if($X===null)$X="<i>NULL</i>";elseif($Fa[$z]&&!is_utf8($X))$X="<i>".lang(array('%d byte','%d bytes'),strlen($X))."</i>";elseif(!strlen($X))$X="&nbsp;";else{$X=h($X);if($Lg[$z]==254)$X="<code>$X</code>";}if(isset($vd[$z])&&!$d[$vd[$z]]){if($re&&$y=="sql"){$Q=$L[array_search("table=",$vd)];$A=$vd[$z].urlencode($re[$Q]!=""?$re[$Q]:$Q);}else{$A="edit=".urlencode($vd[$z]);foreach($w[$vd[$z]]as$Ua=>$x)$A.="&where".urlencode("[".bracket_escape($Ua)."]")."=".urlencode($L[$x]);}$X="<a href='".h(ME.$A)."'>$X</a>";}echo"<td>$X";}}echo($t?"</table>":"<p class='message'>".'No rows.')."\n";return$K;}function
  576. referencable_primary($Df){$K=array();foreach(table_status('',true)as$gg=>$Q){if($gg!=$Df&&fk_support($Q)){foreach(fields($gg)as$l){if($l["primary"]){if($K[$gg]){unset($K[$gg]);break;}$K[$gg]=$l;}}}}return$K;}function
  577. textarea($E,$Y,$M=10,$Ya=80){global$y;echo"<textarea name='$E' rows='$M' cols='$Ya' class='sqlarea jush-$y' spellcheck='false' wrap='off'>";if(is_array($Y)){foreach($Y
  578. as$X)echo
  579. h($X[0])."\n\n\n";}else
  580. echo
  581. h($Y);echo"</textarea>";}function
  582. edit_type($z,$l,$Xa,$o=array(),$mc=array()){global$Yf,$Lg,$Sg,$ge;$U=$l["type"];echo'<td><select name="',h($z),'[type]" class="type" aria-labelledby="label-type">';if($U&&!isset($Lg[$U])&&!isset($o[$U])&&!in_array($U,$mc))$mc[]=$U;if($o)$Yf['Foreign keys']=$o;echo
  583. optionlist(array_merge($mc,$Yf),$U),'</select>
  584. ',on_help("getTarget(event).value",1),script("mixin(qsl('select'), {onfocus: function () { lastType = selectValue(this); }, onchange: editingTypeChange});",""),'<td><input name="',h($z),'[length]" value="',h($l["length"]),'" size="3"',(!$l["length"]&&preg_match('~var(char|binary)$~',$U)?" class='required'":""),' aria-labelledby="label-length">',script("mixin(qsl('input'), {onfocus: editingLengthFocus, oninput: editingLengthChange});",""),'<td class="options">';echo"<select name='".h($z)."[collation]'".(preg_match('~(char|text|enum|set)$~',$U)?"":" class='hidden'").'><option value="">('.'collation'.')'.optionlist($Xa,$l["collation"]).'</select>',($Sg?"<select name='".h($z)."[unsigned]'".(!$U||preg_match(number_type(),$U)?"":" class='hidden'").'><option>'.optionlist($Sg,$l["unsigned"]).'</select>':''),(isset($l['on_update'])?"<select name='".h($z)."[on_update]'".(preg_match('~timestamp|datetime~',$U)?"":" class='hidden'").'>'.optionlist(array(""=>"(".'ON UPDATE'.")","CURRENT_TIMESTAMP"),$l["on_update"]).'</select>':''),($o?"<select name='".h($z)."[on_delete]'".(preg_match("~`~",$U)?"":" class='hidden'")."><option value=''>(".'ON DELETE'.")".optionlist(explode("|",$ge),$l["on_delete"])."</select> ":" ");}function
  585. process_length($sd){global$Zb;return(preg_match("~^\\s*\\(?\\s*$Zb(?:\\s*,\\s*$Zb)*+\\s*\\)?\\s*\$~",$sd)&&preg_match_all("~$Zb~",$sd,$_d)?"(".implode(",",$_d[0]).")":preg_replace('~^[0-9].*~','(\0)',preg_replace('~[^-0-9,+()[\]]~','',$sd)));}function
  586. process_type($l,$Va="COLLATE"){global$Sg;return" $l[type]".process_length($l["length"]).(preg_match(number_type(),$l["type"])&&in_array($l["unsigned"],$Sg)?" $l[unsigned]":"").(preg_match('~char|text|enum|set~',$l["type"])&&$l["collation"]?" $Va ".q($l["collation"]):"");}function
  587. process_field($l,$Jg){return
  588. array(idf_escape(trim($l["field"])),process_type($Jg),($l["null"]?" NULL":" NOT NULL"),default_value($l),(preg_match('~timestamp|datetime~',$l["type"])&&$l["on_update"]?" ON UPDATE $l[on_update]":""),(support("comment")&&$l["comment"]!=""?" COMMENT ".q($l["comment"]):""),($l["auto_increment"]?auto_increment():null),);}function
  589. default_value($l){$yb=$l["default"];return($yb===null?"":" DEFAULT ".(preg_match('~char|binary|text|enum|set~',$l["type"])||preg_match('~^(?![a-z])~i',$yb)?q($yb):$yb));}function
  590. type_class($U){foreach(array('char'=>'text','date'=>'time|year','binary'=>'blob','enum'=>'set',)as$z=>$X){if(preg_match("~$z|$X~",$U))return" class='$z'";}}function
  591. edit_fields($m,$Xa,$U="TABLE",$o=array(),$cb=false){global$Vc;$m=array_values($m);echo'<thead><tr>
  592. ';if($U=="PROCEDURE"){echo'<td>&nbsp;';}echo'<th id="label-name">',($U=="TABLE"?'Column name':'Parameter name'),'<td id="label-type">Type<textarea id="enum-edit" rows="4" cols="12" wrap="off" style="display: none;"></textarea>',script("qs('#enum-edit').onblur = editingLengthBlur;"),'<td id="label-length">Length
  593. <td>','Options';if($U=="TABLE"){echo'<td id="label-null">NULL
  594. <td><input type="radio" name="auto_increment_col" value=""><acronym id="label-ai" title="Auto Increment">AI</acronym>',doc_link(array('sql'=>"example-auto-increment.html",'mariadb'=>"auto_increment/",'sqlite'=>"autoinc.html",'pgsql'=>"datatype.html#DATATYPE-SERIAL",'mssql'=>"ms186775.aspx",)),'<td id="label-default">Default value
  595. ',(support("comment")?"<td id='label-comment'".($cb?"":" class='hidden'").">".'Comment':"");}echo'<td>',"<input type='image' class='icon' name='add[".(support("move_col")?0:count($m))."]' src='".h(preg_replace("~\\?.*~","",ME)."?file=plus.gif&version=4.6.2&driver=mysql")."' alt='+' title='".'Add next'."'>".script("row_count = ".count($m).";"),'</thead>
  596. <tbody>
  597. ',script("mixin(qsl('tbody'), {onclick: editingClick, onkeydown: editingKeydown, oninput: editingInput});");foreach($m
  598. as$t=>$l){$t++;$se=$l[($_POST?"orig":"field")];$Eb=(isset($_POST["add"][$t-1])||(isset($l["field"])&&!$_POST["drop_col"][$t]))&&(support("drop_col")||$se=="");echo'<tr',($Eb?"":" style='display: none;'"),'>
  599. ',($U=="PROCEDURE"?"<td>".html_select("fields[$t][inout]",explode("|",$Vc),$l["inout"]):""),'<th>';if($Eb){echo'<input name="fields[',$t,'][field]" value="',h($l["field"]),'" maxlength="64" autocapitalize="off" aria-labelledby="label-name">',script("qsl('input').oninput = function () { editingNameChange.call(this);".($l["field"]!=""||count($m)>1?"":" editingAddRow.call(this);")." };","");}echo'<input type="hidden" name="fields[',$t,'][orig]" value="',h($se),'">
  600. ';edit_type("fields[$t]",$l,$Xa,$o);if($U=="TABLE"){echo'<td>',checkbox("fields[$t][null]",1,$l["null"],"","","block","label-null"),'<td><label class="block"><input type="radio" name="auto_increment_col" value="',$t,'"';if($l["auto_increment"]){echo' checked';}echo' aria-labelledby="label-ai"></label><td>',checkbox("fields[$t][has_default]",1,$l["has_default"],"","","","label-default"),'<input name="fields[',$t,'][default]" value="',h($l["default"]),'" aria-labelledby="label-default">',(support("comment")?"<td".($cb?"":" class='hidden'")."><input name='fields[$t][comment]' value='".h($l["comment"])."' maxlength='".(min_version(5.5)?1024:255)."' aria-labelledby='label-comment'>":"");}echo"<td>",(support("move_col")?"<input type='image' class='icon' name='add[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=plus.gif&version=4.6.2&driver=mysql")."' alt='+' title='".'Add next'."'>&nbsp;"."<input type='image' class='icon' name='up[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=up.gif&version=4.6.2&driver=mysql")."' alt='↑' title='".'Move up'."'>&nbsp;"."<input type='image' class='icon' name='down[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=down.gif&version=4.6.2&driver=mysql")."' alt='↓' title='".'Move down'."'>&nbsp;":""),($se==""||support("drop_col")?"<input type='image' class='icon' name='drop_col[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=cross.gif&version=4.6.2&driver=mysql")."' alt='x' title='".'Remove'."'>":"");}}function
  601. process_fields(&$m){$Zd=0;if($_POST["up"]){$md=0;foreach($m
  602. as$z=>$l){if(key($_POST["up"])==$z){unset($m[$z]);array_splice($m,$md,0,array($l));break;}if(isset($l["field"]))$md=$Zd;$Zd++;}}elseif($_POST["down"]){$zc=false;foreach($m
  603. as$z=>$l){if(isset($l["field"])&&$zc){unset($m[key($_POST["down"])]);array_splice($m,$Zd,0,array($zc));break;}if(key($_POST["down"])==$z)$zc=$l;$Zd++;}}elseif($_POST["add"]){$m=array_values($m);array_splice($m,key($_POST["add"]),0,array(array()));}elseif(!$_POST["drop_col"])return
  604. false;return
  605. true;}function
  606. normalize_enum($C){return"'".str_replace("'","''",addcslashes(stripcslashes(str_replace($C[0][0].$C[0][0],$C[0][0],substr($C[0],1,-1))),'\\'))."'";}function
  607. grant($r,$Xe,$d,$fe){if(!$Xe)return
  608. true;if($Xe==array("ALL PRIVILEGES","GRANT OPTION"))return($r=="GRANT"?queries("$r ALL PRIVILEGES$fe WITH GRANT OPTION"):queries("$r ALL PRIVILEGES$fe")&&queries("$r GRANT OPTION$fe"));return
  609. queries("$r ".preg_replace('~(GRANT OPTION)\\([^)]*\\)~','\\1',implode("$d, ",$Xe).$d).$fe);}function
  610. drop_create($Jb,$g,$Kb,$qg,$Lb,$B,$Jd,$Hd,$Id,$ce,$Sd){if($_POST["drop"])query_redirect($Jb,$B,$Jd);elseif($ce=="")query_redirect($g,$B,$Id);elseif($ce!=$Sd){$lb=queries($g);queries_redirect($B,$Hd,$lb&&queries($Jb));if($lb)queries($Kb);}else
  611. queries_redirect($B,$Hd,queries($qg)&&queries($Lb)&&queries($Jb)&&queries($g));}function
  612. create_trigger($fe,$L){global$y;$vg=" $L[Timing] $L[Event]".($L["Event"]=="UPDATE OF"?" ".idf_escape($L["Of"]):"");return"CREATE TRIGGER ".idf_escape($L["Trigger"]).($y=="mssql"?$fe.$vg:$vg.$fe).rtrim(" $L[Type]\n$L[Statement]",";").";";}function
  613. create_routine($uf,$L){global$Vc,$y;$P=array();$m=(array)$L["fields"];ksort($m);foreach($m
  614. as$l){if($l["field"]!="")$P[]=(preg_match("~^($Vc)\$~",$l["inout"])?"$l[inout] ":"").idf_escape($l["field"]).process_type($l,"CHARACTER SET");}$zb=rtrim("\n$L[definition]",";");return"CREATE $uf ".idf_escape(trim($L["name"]))." (".implode(", ",$P).")".(isset($_GET["function"])?" RETURNS".process_type($L["returns"],"CHARACTER SET"):"").($L["language"]?" LANGUAGE $L[language]":"").($y=="pgsql"?" AS ".q($zb):"$zb;");}function
  615. remove_definer($I){return
  616. preg_replace('~^([A-Z =]+) DEFINER=`'.preg_replace('~@(.*)~','`@`(%|\\1)',logged_user()).'`~','\\1',$I);}function
  617. format_foreign_key($n){global$ge;return" FOREIGN KEY (".implode(", ",array_map('idf_escape',$n["source"])).") REFERENCES ".table($n["table"])." (".implode(", ",array_map('idf_escape',$n["target"])).")".(preg_match("~^($ge)\$~",$n["on_delete"])?" ON DELETE $n[on_delete]":"").(preg_match("~^($ge)\$~",$n["on_update"])?" ON UPDATE $n[on_update]":"");}function
  618. tar_file($sc,$_g){$K=pack("a100a8a8a8a12a12",$sc,644,0,0,decoct($_g->size),decoct(time()));$Pa=8*32;for($t=0;$t<strlen($K);$t++)$Pa+=ord($K[$t]);$K.=sprintf("%06o",$Pa)."\0 ";echo$K,str_repeat("\0",512-strlen($K));$_g->send();echo
  619. str_repeat("\0",511-($_g->size+511)%512);}function
  620. ini_bytes($Uc){$X=ini_get($Uc);switch(strtolower(substr($X,-1))){case'g':$X*=1024;case'm':$X*=1024;case'k':$X*=1024;}return$X;}function
  621. doc_link($Ie,$rg="<sup>?</sup>"){global$y,$e;$Gf=$e->server_info;$eh=preg_replace('~^(\\d\\.?\\d).*~s','\\1',$Gf);$Wg=array('sql'=>"https://dev.mysql.com/doc/refman/$eh/en/",'sqlite'=>"https://www.sqlite.org/",'pgsql'=>"https://www.postgresql.org/docs/$eh/static/",'mssql'=>"https://msdn.microsoft.com/library/",'oracle'=>"https://download.oracle.com/docs/cd/B19306_01/server.102/b14200/",);if(preg_match('~MariaDB~',$Gf)){$Wg['sql']="https://mariadb.com/kb/en/library/";$Ie['sql']=(isset($Ie['mariadb'])?$Ie['mariadb']:str_replace(".html","/",$Ie['sql']));}return($Ie[$y]?"<a href='$Wg[$y]$Ie[$y]'".target_blank().">$rg</a>":"");}function
  622. ob_gzencode($Xf){return
  623. gzencode($Xf);}function
  624. db_size($i){global$e;if(!$e->select_db($i))return"?";$K=0;foreach(table_status()as$R)$K+=$R["Data_length"]+$R["Index_length"];return
  625. format_number($K);}function
  626. set_utf8mb4($g){global$e;static$P=false;if(!$P&&preg_match('~\butf8mb4~i',$g)){$P=true;echo"SET NAMES ".charset($e).";\n\n";}}function
  627. connect_error(){global$b,$e,$T,$k,$Ib;if(DB!=""){header("HTTP/1.1 404 Not Found");page_header('Database'.": ".h(DB),'Invalid database.',true);}else{if($_POST["db"]&&!$k)queries_redirect(substr(ME,0,-1),'Databases have been dropped.',drop_databases($_POST["db"]));page_header('Select database',$k,false);echo"<p class='links'>\n";foreach(array('database'=>'Create database','privileges'=>'Privileges','processlist'=>'Process list','variables'=>'Variables','status'=>'Status',)as$z=>$X){if(support($z))echo"<a href='".h(ME)."$z='>$X</a>\n";}echo"<p>".sprintf('%s version: %s through PHP extension %s',$Ib[DRIVER],"<b>".h($e->server_info)."</b>","<b>$e->extension</b>")."\n","<p>".sprintf('Logged as: %s',"<b>".h(logged_user())."</b>")."\n";$h=$b->databases();if($h){$_f=support("scheme");$Xa=collations();echo"<form action='' method='post'>\n","<table cellspacing='0' class='checkable'>\n",script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});"),"<thead><tr>".(support("database")?"<td>&nbsp;":"")."<th>".'Database'." - <a href='".h(ME)."refresh=1'>".'Refresh'."</a>"."<td>".'Collation'."<td>".'Tables'."<td>".'Size'." - <a href='".h(ME)."dbsize=1'>".'Compute'."</a>".script("qsl('a').onclick = partial(ajaxSetHtml, '".js_escape(ME)."script=connect');","")."</thead>\n";$h=($_GET["dbsize"]?count_tables($h):array_flip($h));foreach($h
  628. as$i=>$S){$tf=h(ME)."db=".urlencode($i);$u=h("Db-".$i);echo"<tr".odd().">".(support("database")?"<td>".checkbox("db[]",$i,in_array($i,(array)$_POST["db"]),"","","",$u):""),"<th><a href='$tf' id='$u'>".h($i)."</a>";$Wa=nbsp(db_collation($i,$Xa));echo"<td>".(support("database")?"<a href='$tf".($_f?"&amp;ns=":"")."&amp;database=' title='".'Alter database'."'>$Wa</a>":$Wa),"<td align='right'><a href='$tf&amp;schema=' id='tables-".h($i)."' title='".'Database schema'."'>".($_GET["dbsize"]?$S:"?")."</a>","<td align='right' id='size-".h($i)."'>".($_GET["dbsize"]?db_size($i):"?"),"\n";}echo"</table>\n",(support("database")?"<div class='footer'><div>\n"."<fieldset><legend>".'Selected'." <span id='selected'></span></legend><div>\n"."<input type='hidden' name='all' value=''>".script("qsl('input').onclick = function () { selectCount('selected', formChecked(this, /^db/)); };")."<input type='submit' name='drop' value='".'Drop'."'>".confirm()."\n"."</div></fieldset>\n"."</div></div>\n":""),"<input type='hidden' name='token' value='$T'>\n","</form>\n",script("tableCheck();");}}page_footer("db");}if(isset($_GET["status"]))$_GET["variables"]=$_GET["status"];if(isset($_GET["import"]))$_GET["sql"]=$_GET["import"];if(!(DB!=""?$e->select_db(DB):isset($_GET["sql"])||isset($_GET["dump"])||isset($_GET["database"])||isset($_GET["processlist"])||isset($_GET["privileges"])||isset($_GET["user"])||isset($_GET["variables"])||$_GET["script"]=="connect"||$_GET["script"]=="kill")){if(DB!=""||$_GET["refresh"]){restart_session();set_session("dbs",null);}connect_error();exit;}$ge="RESTRICT|NO ACTION|CASCADE|SET NULL|SET DEFAULT";class
  629. TmpFile{var$handler;var$size;function
  630. __construct(){$this->handler=tmpfile();}function
  631. write($gb){$this->size+=strlen($gb);fwrite($this->handler,$gb);}function
  632. send(){fseek($this->handler,0);fpassthru($this->handler);fclose($this->handler);}}$Zb="'(?:''|[^'\\\\]|\\\\.)*'";$Vc="IN|OUT|INOUT";if(isset($_GET["select"])&&($_POST["edit"]||$_POST["clone"])&&!$_POST["save"])$_GET["edit"]=$_GET["select"];if(isset($_GET["callf"]))$_GET["call"]=$_GET["callf"];if(isset($_GET["function"]))$_GET["procedure"]=$_GET["function"];if(isset($_GET["download"])){$a=$_GET["download"];$m=fields($a);header("Content-Type: application/octet-stream");header("Content-Disposition: attachment; filename=".friendly_url("$a-".implode("_",$_GET["where"])).".".friendly_url($_GET["field"]));$N=array(idf_escape($_GET["field"]));$J=$j->select($a,$N,array(where($_GET,$m)),$N);$L=($J?$J->fetch_row():array());echo$j->value($L[0],$m[$_GET["field"]]);exit;}elseif(isset($_GET["table"])){$a=$_GET["table"];$m=fields($a);if(!$m)$k=error();$R=table_status1($a,true);$E=$b->tableName($R);page_header(($m&&is_view($R)?$R['Engine']=='materialized view'?'Materialized view':'View':'Table').": ".($E!=""?$E:h($a)),$k);$b->selectLinks($R);$bb=$R["Comment"];if($bb!="")echo"<p class='nowrap'>".'Comment'.": ".h($bb)."\n";if($m)$b->tableStructurePrint($m);if(!is_view($R)){if(support("indexes")){echo"<h3 id='indexes'>".'Indexes'."</h3>\n";$w=indexes($a);if($w)$b->tableIndexesPrint($w);echo'<p class="links"><a href="'.h(ME).'indexes='.urlencode($a).'">'.'Alter indexes'."</a>\n";}if(fk_support($R)){echo"<h3 id='foreign-keys'>".'Foreign keys'."</h3>\n";$o=foreign_keys($a);if($o){echo"<table cellspacing='0'>\n","<thead><tr><th>".'Source'."<td>".'Target'."<td>".'ON DELETE'."<td>".'ON UPDATE'."<td>&nbsp;</thead>\n";foreach($o
  633. as$E=>$n){echo"<tr title='".h($E)."'>","<th><i>".implode("</i>, <i>",array_map('h',$n["source"]))."</i>","<td><a href='".h($n["db"]!=""?preg_replace('~db=[^&]*~',"db=".urlencode($n["db"]),ME):($n["ns"]!=""?preg_replace('~ns=[^&]*~',"ns=".urlencode($n["ns"]),ME):ME))."table=".urlencode($n["table"])."'>".($n["db"]!=""?"<b>".h($n["db"])."</b>.":"").($n["ns"]!=""?"<b>".h($n["ns"])."</b>.":"").h($n["table"])."</a>","(<i>".implode("</i>, <i>",array_map('h',$n["target"]))."</i>)","<td>".nbsp($n["on_delete"])."\n","<td>".nbsp($n["on_update"])."\n",'<td><a href="'.h(ME.'foreign='.urlencode($a).'&name='.urlencode($E)).'">'.'Alter'.'</a>';}echo"</table>\n";}echo'<p class="links"><a href="'.h(ME).'foreign='.urlencode($a).'">'.'Add foreign key'."</a>\n";}}if(support(is_view($R)?"view_trigger":"trigger")){echo"<h3 id='triggers'>".'Triggers'."</h3>\n";$Ig=triggers($a);if($Ig){echo"<table cellspacing='0'>\n";foreach($Ig
  634. as$z=>$X)echo"<tr valign='top'><td>".h($X[0])."<td>".h($X[1])."<th>".h($z)."<td><a href='".h(ME.'trigger='.urlencode($a).'&name='.urlencode($z))."'>".'Alter'."</a>\n";echo"</table>\n";}echo'<p class="links"><a href="'.h(ME).'trigger='.urlencode($a).'">'.'Add trigger'."</a>\n";}}elseif(isset($_GET["schema"])){page_header('Database schema',"",array(),h(DB.($_GET["ns"]?".$_GET[ns]":"")));$hg=array();$ig=array();$ea=($_GET["schema"]?$_GET["schema"]:$_COOKIE["adminer_schema-".str_replace(".","_",DB)]);preg_match_all('~([^:]+):([-0-9.]+)x([-0-9.]+)(_|$)~',$ea,$_d,PREG_SET_ORDER);foreach($_d
  635. as$t=>$C){$hg[$C[1]]=array($C[2],$C[3]);$ig[]="\n\t'".js_escape($C[1])."': [ $C[2], $C[3] ]";}$Bg=0;$Ca=-1;$zf=array();$kf=array();$qd=array();foreach(table_status('',true)as$Q=>$R){if(is_view($R))continue;$Ne=0;$zf[$Q]["fields"]=array();foreach(fields($Q)as$E=>$l){$Ne+=1.25;$l["pos"]=$Ne;$zf[$Q]["fields"][$E]=$l;}$zf[$Q]["pos"]=($hg[$Q]?$hg[$Q]:array($Bg,0));foreach($b->foreignKeys($Q)as$X){if(!$X["db"]){$od=$Ca;if($hg[$Q][1]||$hg[$X["table"]][1])$od=min(floatval($hg[$Q][1]),floatval($hg[$X["table"]][1]))-1;else$Ca-=.1;while($qd[(string)$od])$od-=.0001;$zf[$Q]["references"][$X["table"]][(string)$od]=array($X["source"],$X["target"]);$kf[$X["table"]][$Q][(string)$od]=$X["target"];$qd[(string)$od]=true;}}$Bg=max($Bg,$zf[$Q]["pos"][0]+2.5+$Ne);}echo'<div id="schema" style="height: ',$Bg,'em;">
  636. <script',nonce(),'>
  637. qs(\'#schema\').onselectstart = function () { return false; };
  638. var tablePos = {',implode(",",$ig)."\n",'};
  639. var em = qs(\'#schema\').offsetHeight / ',$Bg,';
  640. document.onmousemove = schemaMousemove;
  641. document.onmouseup = partialArg(schemaMouseup, \'',js_escape(DB),'\');
  642. </script>
  643. ';foreach($zf
  644. as$E=>$Q){echo"<div class='table' style='top: ".$Q["pos"][0]."em; left: ".$Q["pos"][1]."em;'>",'<a href="'.h(ME).'table='.urlencode($E).'"><b>'.h($E)."</b></a>",script("qsl('div').onmousedown = schemaMousedown;");foreach($Q["fields"]as$l){$X='<span'.type_class($l["type"]).' title="'.h($l["full_type"].($l["null"]?" NULL":'')).'">'.h($l["field"]).'</span>';echo"<br>".($l["primary"]?"<i>$X</i>":$X);}foreach((array)$Q["references"]as$og=>$lf){foreach($lf
  645. as$od=>$hf){$pd=$od-$hg[$E][1];$t=0;foreach($hf[0]as$Nf)echo"\n<div class='references' title='".h($og)."' id='refs$od-".($t++)."' style='left: $pd"."em; top: ".$Q["fields"][$Nf]["pos"]."em; padding-top: .5em;'><div style='border-top: 1px solid Gray; width: ".(-$pd)."em;'></div></div>";}}foreach((array)$kf[$E]as$og=>$lf){foreach($lf
  646. as$od=>$d){$pd=$od-$hg[$E][1];$t=0;foreach($d
  647. as$ng)echo"\n<div class='references' title='".h($og)."' id='refd$od-".($t++)."' style='left: $pd"."em; top: ".$Q["fields"][$ng]["pos"]."em; height: 1.25em; background: url(".h(preg_replace("~\\?.*~","",ME)."?file=arrow.gif) no-repeat right center;&version=4.6.2&driver=mysql")."'><div style='height: .5em; border-bottom: 1px solid Gray; width: ".(-$pd)."em;'></div></div>";}}echo"\n</div>\n";}foreach($zf
  648. as$E=>$Q){foreach((array)$Q["references"]as$og=>$lf){foreach($lf
  649. as$od=>$hf){$Ld=$Bg;$Dd=-10;foreach($hf[0]as$z=>$Nf){$Oe=$Q["pos"][0]+$Q["fields"][$Nf]["pos"];$Pe=$zf[$og]["pos"][0]+$zf[$og]["fields"][$hf[1][$z]]["pos"];$Ld=min($Ld,$Oe,$Pe);$Dd=max($Dd,$Oe,$Pe);}echo"<div class='references' id='refl$od' style='left: $od"."em; top: $Ld"."em; padding: .5em 0;'><div style='border-right: 1px solid Gray; margin-top: 1px; height: ".($Dd-$Ld)."em;'></div></div>\n";}}}echo'</div>
  650. <p class="links"><a href="',h(ME."schema=".urlencode($ea)),'" id="schema-link">Permanent link</a>
  651. ';}elseif(isset($_GET["dump"])){$a=$_GET["dump"];if($_POST&&!$k){$jb="";foreach(array("output","format","db_style","routines","events","table_style","auto_increment","triggers","data_style")as$z)$jb.="&$z=".urlencode($_POST[$z]);cookie("adminer_export",substr($jb,1));$S=array_flip((array)$_POST["tables"])+array_flip((array)$_POST["data"]);$kc=dump_headers((count($S)==1?key($S):DB),(DB==""||count($S)>1));$dd=preg_match('~sql~',$_POST["format"]);if($dd){echo"-- Adminer $ga ".$Ib[DRIVER]." dump\n\n";if($y=="sql"){echo"SET NAMES utf8;
  652. SET time_zone = '+00:00';
  653. ".($_POST["data_style"]?"SET foreign_key_checks = 0;
  654. SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
  655. ":"")."
  656. ";$e->query("SET time_zone = '+00:00';");}}$Zf=$_POST["db_style"];$h=array(DB);if(DB==""){$h=$_POST["databases"];if(is_string($h))$h=explode("\n",rtrim(str_replace("\r","",$h),"\n"));}foreach((array)$h
  657. as$i){$b->dumpDatabase($i);if($e->select_db($i)){if($dd&&preg_match('~CREATE~',$Zf)&&($g=$e->result("SHOW CREATE DATABASE ".idf_escape($i),1))){set_utf8mb4($g);if($Zf=="DROP+CREATE")echo"DROP DATABASE IF EXISTS ".idf_escape($i).";\n";echo"$g;\n";}if($dd){if($Zf)echo
  658. use_sql($i).";\n\n";$xe="";if($_POST["routines"]){foreach(array("FUNCTION","PROCEDURE")as$uf){foreach(get_rows("SHOW $uf STATUS WHERE Db = ".q($i),null,"-- ")as$L){$g=remove_definer($e->result("SHOW CREATE $uf ".idf_escape($L["Name"]),2));set_utf8mb4($g);$xe.=($Zf!='DROP+CREATE'?"DROP $uf IF EXISTS ".idf_escape($L["Name"]).";;\n":"")."$g;;\n\n";}}}if($_POST["events"]){foreach(get_rows("SHOW EVENTS",null,"-- ")as$L){$g=remove_definer($e->result("SHOW CREATE EVENT ".idf_escape($L["Name"]),3));set_utf8mb4($g);$xe.=($Zf!='DROP+CREATE'?"DROP EVENT IF EXISTS ".idf_escape($L["Name"]).";;\n":"")."$g;;\n\n";}}if($xe)echo"DELIMITER ;;\n\n$xe"."DELIMITER ;\n\n";}if($_POST["table_style"]||$_POST["data_style"]){$gh=array();foreach(table_status('',true)as$E=>$R){$Q=(DB==""||in_array($E,(array)$_POST["tables"]));$rb=(DB==""||in_array($E,(array)$_POST["data"]));if($Q||$rb){if($kc=="tar"){$_g=new
  659. TmpFile;ob_start(array($_g,'write'),1e5);}$b->dumpTable($E,($Q?$_POST["table_style"]:""),(is_view($R)?2:0));if(is_view($R))$gh[]=$E;elseif($rb){$m=fields($E);$b->dumpData($E,$_POST["data_style"],"SELECT *".convert_fields($m,$m)." FROM ".table($E));}if($dd&&$_POST["triggers"]&&$Q&&($Ig=trigger_sql($E)))echo"\nDELIMITER ;;\n$Ig\nDELIMITER ;\n";if($kc=="tar"){ob_end_flush();tar_file((DB!=""?"":"$i/")."$E.csv",$_g);}elseif($dd)echo"\n";}}foreach($gh
  660. as$fh)$b->dumpTable($fh,$_POST["table_style"],1);if($kc=="tar")echo
  661. pack("x512");}}}if($dd)echo"-- ".$e->result("SELECT NOW()")."\n";exit;}page_header('Export',$k,($_GET["export"]!=""?array("table"=>$_GET["export"]):array()),h(DB));echo'
  662. <form action="" method="post">
  663. <table cellspacing="0">
  664. ';$vb=array('','USE','DROP+CREATE','CREATE');$jg=array('','DROP+CREATE','CREATE');$sb=array('','TRUNCATE+INSERT','INSERT');if($y=="sql")$sb[]='INSERT+UPDATE';parse_str($_COOKIE["adminer_export"],$L);if(!$L)$L=array("output"=>"text","format"=>"sql","db_style"=>(DB!=""?"":"CREATE"),"table_style"=>"DROP+CREATE","data_style"=>"INSERT");if(!isset($L["events"])){$L["routines"]=$L["events"]=($_GET["dump"]=="");$L["triggers"]=$L["table_style"];}echo"<tr><th>".'Output'."<td>".html_select("output",$b->dumpOutput(),$L["output"],0)."\n";echo"<tr><th>".'Format'."<td>".html_select("format",$b->dumpFormat(),$L["format"],0)."\n";echo($y=="sqlite"?"":"<tr><th>".'Database'."<td>".html_select('db_style',$vb,$L["db_style"]).(support("routine")?checkbox("routines",1,$L["routines"],'Routines'):"").(support("event")?checkbox("events",1,$L["events"],'Events'):"")),"<tr><th>".'Tables'."<td>".html_select('table_style',$jg,$L["table_style"]).checkbox("auto_increment",1,$L["auto_increment"],'Auto Increment').(support("trigger")?checkbox("triggers",1,$L["triggers"],'Triggers'):""),"<tr><th>".'Data'."<td>".html_select('data_style',$sb,$L["data_style"]),'</table>
  665. <p><input type="submit" value="Export">
  666. <input type="hidden" name="token" value="',$T,'">
  667.  
  668. <table cellspacing="0">
  669. ',script("qsl('table').onclick = dumpClick;");$Se=array();if(DB!=""){$Na=($a!=""?"":" checked");echo"<thead><tr>","<th style='text-align: left;'><label class='block'><input type='checkbox' id='check-tables'$Na>".'Tables'."</label>".script("qs('#check-tables').onclick = partial(formCheck, /^tables\\[/);",""),"<th style='text-align: right;'><label class='block'>".'Data'."<input type='checkbox' id='check-data'$Na></label>".script("qs('#check-data').onclick = partial(formCheck, /^data\\[/);",""),"</thead>\n";$gh="";$kg=tables_list();foreach($kg
  670. as$E=>$U){$Re=preg_replace('~_.*~','',$E);$Na=($a==""||$a==(substr($a,-1)=="%"?"$Re%":$E));$Ue="<tr><td>".checkbox("tables[]",$E,$Na,$E,"","block");if($U!==null&&!preg_match('~table~i',$U))$gh.="$Ue\n";else
  671. echo"$Ue<td align='right'><label class='block'><span id='Rows-".h($E)."'></span>".checkbox("data[]",$E,$Na)."</label>\n";$Se[$Re]++;}echo$gh;if($kg)echo
  672. script("ajaxSetHtml('".js_escape(ME)."script=db');");}else{echo"<thead><tr><th style='text-align: left;'>","<label class='block'><input type='checkbox' id='check-databases'".($a==""?" checked":"").">".'Database'."</label>",script("qs('#check-databases').onclick = partial(formCheck, /^databases\\[/);",""),"</thead>\n";$h=$b->databases();if($h){foreach($h
  673. as$i){if(!information_schema($i)){$Re=preg_replace('~_.*~','',$i);echo"<tr><td>".checkbox("databases[]",$i,$a==""||$a=="$Re%",$i,"","block")."\n";$Se[$Re]++;}}}else
  674. echo"<tr><td><textarea name='databases' rows='10' cols='20'></textarea>";}echo'</table>
  675. </form>
  676. ';$uc=true;foreach($Se
  677. as$z=>$X){if($z!=""&&$X>1){echo($uc?"<p>":" ")."<a href='".h(ME)."dump=".urlencode("$z%")."'>".h($z)."</a>";$uc=false;}}}elseif(isset($_GET["privileges"])){page_header('Privileges');echo'<p class="links"><a href="'.h(ME).'user=">'.'Create user'."</a>";$J=$e->query("SELECT User, Host FROM mysql.".(DB==""?"user":"db WHERE ".q(DB)." LIKE Db")." ORDER BY Host, User");$r=$J;if(!$J)$J=$e->query("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', 1) AS User, SUBSTRING_INDEX(CURRENT_USER, '@', -1) AS Host");echo"<form action=''><p>\n";hidden_fields_get();echo"<input type='hidden' name='db' value='".h(DB)."'>\n",($r?"":"<input type='hidden' name='grant' value=''>\n"),"<table cellspacing='0'>\n","<thead><tr><th>".'Username'."<th>".'Server'."<th>&nbsp;</thead>\n";while($L=$J->fetch_assoc())echo'<tr'.odd().'><td>'.h($L["User"])."<td>".h($L["Host"]).'<td><a href="'.h(ME.'user='.urlencode($L["User"]).'&host='.urlencode($L["Host"])).'">'.'Edit'."</a>\n";if(!$r||DB!="")echo"<tr".odd()."><td><input name='user' autocapitalize='off'><td><input name='host' value='localhost' autocapitalize='off'><td><input type='submit' value='".'Edit'."'>\n";echo"</table>\n","</form>\n";}elseif(isset($_GET["sql"])){if(!$k&&$_POST["export"]){dump_headers("sql");$b->dumpTable("","");$b->dumpData("","table",$_POST["query"]);exit;}restart_session();$Mc=&get_session("queries");$Lc=&$Mc[DB];if(!$k&&$_POST["clear"]){$Lc=array();redirect(remove_from_uri("history"));}page_header((isset($_GET["import"])?'Import':'SQL command'),$k);if(!$k&&$_POST){$p=false;if(!isset($_GET["import"]))$I=$_POST["query"];elseif($_POST["webfile"]){$Qf=$b->importServerPath();$p=@fopen((file_exists($Qf)?$Qf:"compress.zlib://$Qf.gz"),"rb");$I=($p?fread($p,1e6):false);}else$I=get_file("sql_file",true);if(is_string($I)){if(function_exists('memory_get_usage'))@ini_set("memory_limit",max(ini_bytes("memory_limit"),2*strlen($I)+memory_get_usage()+8e6));if($I!=""&&strlen($I)<1e6){$H=$I.(preg_match("~;[ \t\r\n]*\$~",$I)?"":";");if(!$Lc||reset(end($Lc))!=$H){restart_session();$Lc[]=array($H,time());set_session("queries",$Mc);stop_session();}}$Of="(?:\\s|/\\*[\s\S]*?\\*/|(?:#|-- )[^\n]*\n?|--\r?\n)";$_b=";";$Zd=0;$Wb=true;$f=connect();if(is_object($f)&&DB!="")$f->select_db(DB);$ab=0;$bc=array();$Ce='[\'"'.($y=="sql"?'`#':($y=="sqlite"?'`[':($y=="mssql"?'[':''))).']|/\\*|-- |$'.($y=="pgsql"?'|\\$[^$]*\\$':'');$Cg=microtime(true);parse_str($_COOKIE["adminer_export"],$la);$Nb=$b->dumpFormat();unset($Nb["sql"]);while($I!=""){if(!$Zd&&preg_match("~^$Of*+DELIMITER\\s+(\\S+)~i",$I,$C)){$_b=$C[1];$I=substr($I,strlen($C[0]));}else{preg_match('('.preg_quote($_b)."\\s*|$Ce)",$I,$C,PREG_OFFSET_CAPTURE,$Zd);list($zc,$Ne)=$C[0];if(!$zc&&$p&&!feof($p))$I.=fread($p,1e5);else{if(!$zc&&rtrim($I)=="")break;$Zd=$Ne+strlen($zc);if($zc&&rtrim($zc)!=$_b){while(preg_match('('.($zc=='/*'?'\\*/':($zc=='['?']':(preg_match('~^-- |^#~',$zc)?"\n":preg_quote($zc)."|\\\\."))).'|$)s',$I,$C,PREG_OFFSET_CAPTURE,$Zd)){$xf=$C[0][0];if(!$xf&&$p&&!feof($p))$I.=fread($p,1e5);else{$Zd=$C[0][1]+strlen($xf);if($xf[0]!="\\")break;}}}else{$Wb=false;$H=substr($I,0,$Ne);$ab++;$Ue="<pre id='sql-$ab'><code class='jush-$y'>".$b->sqlCommandQuery($H)."</code></pre>\n";if($y=="sqlite"&&preg_match("~^$Of*+ATTACH\\b~i",$H,$C)){echo$Ue,"<p class='error'>".'ATTACH queries are not supported.'."\n";$bc[]=" <a href='#sql-$ab'>$ab</a>";if($_POST["error_stops"])break;}else{if(!$_POST["only_errors"]){echo$Ue;ob_flush();flush();}$Tf=microtime(true);if($e->multi_query($H)&&is_object($f)&&preg_match("~^$Of*+USE\\b~i",$H))$f->query($H);do{$J=$e->store_result();if($e->error){echo($_POST["only_errors"]?$Ue:""),"<p class='error'>".'Error in query'.($e->errno?" ($e->errno)":"").": ".error()."\n";$bc[]=" <a href='#sql-$ab'>$ab</a>";if($_POST["error_stops"])break
  678. 2;}else{$tg=" <span class='time'>(".format_time($Tf).")</span>".(strlen($H)<1000?" <a href='".h(ME)."sql=".urlencode(trim($H))."'>".'Edit'."</a>":"");$na=$e->affected_rows;$jh=($_POST["only_errors"]?"":$j->warnings());$kh="warnings-$ab";if($jh)$tg.=", <a href='#$kh'>".'Warnings'."</a>".script("qsl('a').onclick = partial(toggle, '$kh');","");$ic=null;$jc="explain-$ab";if(is_object($J)){$_=$_POST["limit"];$re=select($J,$f,array(),$_);if(!$_POST["only_errors"]){echo"<form action='' method='post'>\n";$Wd=$J->num_rows;echo"<p>".($Wd?($_&&$Wd>$_?sprintf('%d / ',$_):"").lang(array('%d row','%d rows'),$Wd):""),$tg;if($f&&preg_match("~^($Of|\\()*+SELECT\\b~i",$H)&&($ic=explain($f,$H)))echo", <a href='#$jc'>Explain</a>".script("qsl('a').onclick = partial(toggle, '$jc');","");$u="export-$ab";echo", <a href='#$u'>".'Export'."</a>".script("qsl('a').onclick = partial(toggle, '$u');","")."<span id='$u' class='hidden'>: ".html_select("output",$b->dumpOutput(),$la["output"])." ".html_select("format",$Nb,$la["format"])."<input type='hidden' name='query' value='".h($H)."'>"." <input type='submit' name='export' value='".'Export'."'><input type='hidden' name='token' value='$T'></span>\n"."</form>\n";}}else{if(preg_match("~^$Of*+(CREATE|DROP|ALTER)$Of++(DATABASE|SCHEMA)\\b~i",$H)){restart_session();set_session("dbs",null);stop_session();}if(!$_POST["only_errors"])echo"<p class='message' title='".h($e->info)."'>".lang(array('Query executed OK, %d row affected.','Query executed OK, %d rows affected.'),$na)."$tg\n";}echo($jh?"<div id='$kh' class='hidden'>\n$jh</div>\n":"");if($ic){echo"<div id='$jc' class='hidden'>\n";select($ic,$f,$re);echo"</div>\n";}}$Tf=microtime(true);}while($e->next_result());}$I=substr($I,$Zd);$Zd=0;}}}}if($Wb)echo"<p class='message'>".'No commands to execute.'."\n";elseif($_POST["only_errors"]){echo"<p class='message'>".lang(array('%d query executed OK.','%d queries executed OK.'),$ab-count($bc))," <span class='time'>(".format_time($Cg).")</span>\n";}elseif($bc&&$ab>1)echo"<p class='error'>".'Error in query'.": ".implode("",$bc)."\n";}else
  679. echo"<p class='error'>".upload_error($I)."\n";}echo'
  680. <form action="" method="post" enctype="multipart/form-data" id="form">
  681. ';$gc="<input type='submit' value='".'Execute'."' title='Ctrl+Enter'>";if(!isset($_GET["import"])){$H=$_GET["sql"];if($_POST)$H=$_POST["query"];elseif($_GET["history"]=="all")$H=$Lc;elseif($_GET["history"]!="")$H=$Lc[$_GET["history"]][0];echo"<p>";textarea("query",$H,20);echo($_POST?"":script("qs('textarea').focus();")),"<p>$gc\n",'Limit rows'.": <input type='number' name='limit' class='size' value='".h($_POST?$_POST["limit"]:$_GET["limit"])."'>\n";}else{echo"<fieldset><legend>".'File upload'."</legend><div>",(ini_bool("file_uploads")?"SQL (&lt; ".ini_get("upload_max_filesize")."B): <input type='file' name='sql_file[]' multiple>\n$gc":'File uploads are disabled.'),"</div></fieldset>\n","<fieldset><legend>".'From server'."</legend><div>",sprintf('Webserver file %s',"<code>".h($b->importServerPath()).(extension_loaded("zlib")?"[.gz]":"")."</code>"),' <input type="submit" name="webfile" value="'.'Run file'.'">',"</div></fieldset>\n","<p>";}echo
  682. checkbox("error_stops",1,($_POST?$_POST["error_stops"]:isset($_GET["import"])),'Stop on error')."\n",checkbox("only_errors",1,($_POST?$_POST["only_errors"]:isset($_GET["import"])),'Show only errors')."\n","<input type='hidden' name='token' value='$T'>\n";if(!isset($_GET["import"])&&$Lc){print_fieldset("history",'History',$_GET["history"]!="");for($X=end($Lc);$X;$X=prev($Lc)){$z=key($Lc);list($H,$tg,$Rb)=$X;echo'<a href="'.h(ME."sql=&history=$z").'">'.'Edit'."</a>"." <span class='time' title='".@date('Y-m-d',$tg)."'>".@date("H:i:s",$tg)."</span>"." <code class='jush-$y'>".shorten_utf8(ltrim(str_replace("\n"," ",str_replace("\r","",preg_replace('~^(#|-- ).*~m','',$H)))),80,"</code>").($Rb?" <span class='time'>($Rb)</span>":"")."<br>\n";}echo"<input type='submit' name='clear' value='".'Clear'."'>\n","<a href='".h(ME."sql=&history=all")."'>".'Edit all'."</a>\n","</div></fieldset>\n";}echo'</form>
  683. ';}elseif(isset($_GET["edit"])){$a=$_GET["edit"];$m=fields($a);$Z=(isset($_GET["select"])?($_POST["check"]&&count($_POST["check"])==1?where_check($_POST["check"][0],$m):""):where($_GET,$m));$Tg=(isset($_GET["select"])?$_POST["edit"]:$Z);foreach($m
  684. as$E=>$l){if(!isset($l["privileges"][$Tg?"update":"insert"])||$b->fieldName($l)=="")unset($m[$E]);}if($_POST&&!$k&&!isset($_GET["select"])){$B=$_POST["referer"];if($_POST["insert"])$B=($Tg?null:$_SERVER["REQUEST_URI"]);elseif(!preg_match('~^.+&select=.+$~',$B))$B=ME."select=".urlencode($a);$w=indexes($a);$Og=unique_array($_GET["where"],$w);$df="\nWHERE $Z";if(isset($_POST["delete"]))queries_redirect($B,'Item has been deleted.',$j->delete($a,$df,!$Og));else{$P=array();foreach($m
  685. as$E=>$l){$X=process_input($l);if($X!==false&&$X!==null)$P[idf_escape($E)]=$X;}if($Tg){if(!$P)redirect($B);queries_redirect($B,'Item has been updated.',$j->update($a,$P,$df,!$Og));if(is_ajax()){page_headers();page_messages($k);exit;}}else{$J=$j->insert($a,$P);$nd=($J?last_id():0);queries_redirect($B,sprintf('Item%s has been inserted.',($nd?" $nd":"")),$J);}}}$L=null;if($_POST["save"])$L=(array)$_POST["fields"];elseif($Z){$N=array();foreach($m
  686. as$E=>$l){if(isset($l["privileges"]["select"])){$ua=convert_field($l);if($_POST["clone"]&&$l["auto_increment"])$ua="''";if($y=="sql"&&preg_match("~enum|set~",$l["type"]))$ua="1*".idf_escape($E);$N[]=($ua?"$ua AS ":"").idf_escape($E);}}$L=array();if(!support("table"))$N=array("*");if($N){$J=$j->select($a,$N,array($Z),$N,array(),(isset($_GET["select"])?2:1));if(!$J)$k=error();else{$L=$J->fetch_assoc();if(!$L)$L=false;}if(isset($_GET["select"])&&(!$L||$J->fetch_assoc()))$L=null;}}if(!support("table")&&!$m){if(!$Z){$J=$j->select($a,array("*"),$Z,array("*"));$L=($J?$J->fetch_assoc():false);if(!$L)$L=array($j->primary=>"");}if($L){foreach($L
  687. as$z=>$X){if(!$Z)$L[$z]=null;$m[$z]=array("field"=>$z,"null"=>($z!=$j->primary),"auto_increment"=>($z==$j->primary));}}}edit_form($a,$m,$L,$Tg);}elseif(isset($_GET["create"])){$a=$_GET["create"];$De=array();foreach(array('HASH','LINEAR HASH','KEY','LINEAR KEY','RANGE','LIST')as$z)$De[$z]=$z;$jf=referencable_primary($a);$o=array();foreach($jf
  688. as$gg=>$l)$o[str_replace("`","``",$gg)."`".str_replace("`","``",$l["field"])]=$gg;$ue=array();$R=array();if($a!=""){$ue=fields($a);$R=table_status($a);if(!$R)$k='No tables.';}$L=$_POST;$L["fields"]=(array)$L["fields"];if($L["auto_increment_col"])$L["fields"][$L["auto_increment_col"]]["auto_increment"]=true;if($_POST&&!process_fields($L["fields"])&&!$k){if($_POST["drop"])queries_redirect(substr(ME,0,-1),'Table has been dropped.',drop_tables(array($a)));else{$m=array();$ra=array();$Xg=false;$wc=array();$te=reset($ue);$pa=" FIRST";foreach($L["fields"]as$z=>$l){$n=$o[$l["type"]];$Jg=($n!==null?$jf[$n]:$l);if($l["field"]!=""){if(!$l["has_default"])$l["default"]=null;if($z==$L["auto_increment_col"])$l["auto_increment"]=true;$Ze=process_field($l,$Jg);$ra[]=array($l["orig"],$Ze,$pa);if($Ze!=process_field($te,$te)){$m[]=array($l["orig"],$Ze,$pa);if($l["orig"]!=""||$pa)$Xg=true;}if($n!==null)$wc[idf_escape($l["field"])]=($a!=""&&$y!="sqlite"?"ADD":" ").format_foreign_key(array('table'=>$o[$l["type"]],'source'=>array($l["field"]),'target'=>array($Jg["field"]),'on_delete'=>$l["on_delete"],));$pa=" AFTER ".idf_escape($l["field"]);}elseif($l["orig"]!=""){$Xg=true;$m[]=array($l["orig"]);}if($l["orig"]!=""){$te=next($ue);if(!$te)$pa="";}}$Fe="";if($De[$L["partition_by"]]){$Ge=array();if($L["partition_by"]=='RANGE'||$L["partition_by"]=='LIST'){foreach(array_filter($L["partition_names"])as$z=>$X){$Y=$L["partition_values"][$z];$Ge[]="\n  PARTITION ".idf_escape($X)." VALUES ".($L["partition_by"]=='RANGE'?"LESS THAN":"IN").($Y!=""?" ($Y)":" MAXVALUE");}}$Fe.="\nPARTITION BY $L[partition_by]($L[partition])".($Ge?" (".implode(",",$Ge)."\n)":($L["partitions"]?" PARTITIONS ".(+$L["partitions"]):""));}elseif(support("partitioning")&&preg_match("~partitioned~",$R["Create_options"]))$Fe.="\nREMOVE PARTITIONING";$D='Table has been altered.';if($a==""){cookie("adminer_engine",$L["Engine"]);$D='Table has been created.';}$E=trim($L["name"]);queries_redirect(ME.(support("table")?"table=":"select=").urlencode($E),$D,alter_table($a,$E,($y=="sqlite"&&($Xg||$wc)?$ra:$m),$wc,($L["Comment"]!=$R["Comment"]?$L["Comment"]:null),($L["Engine"]&&$L["Engine"]!=$R["Engine"]?$L["Engine"]:""),($L["Collation"]&&$L["Collation"]!=$R["Collation"]?$L["Collation"]:""),($L["Auto_increment"]!=""?number($L["Auto_increment"]):""),$Fe));}}page_header(($a!=""?'Alter table':'Create table'),$k,array("table"=>$a),h($a));if(!$_POST){$L=array("Engine"=>$_COOKIE["adminer_engine"],"fields"=>array(array("field"=>"","type"=>(isset($Lg["int"])?"int":(isset($Lg["integer"])?"integer":"")),"on_update"=>"")),"partition_names"=>array(""),);if($a!=""){$L=$R;$L["name"]=$a;$L["fields"]=array();if(!$_GET["auto_increment"])$L["Auto_increment"]="";foreach($ue
  689. as$l){$l["has_default"]=isset($l["default"]);$L["fields"][]=$l;}if(support("partitioning")){$Ac="FROM information_schema.PARTITIONS WHERE TABLE_SCHEMA = ".q(DB)." AND TABLE_NAME = ".q($a);$J=$e->query("SELECT PARTITION_METHOD, PARTITION_ORDINAL_POSITION, PARTITION_EXPRESSION $Ac ORDER BY PARTITION_ORDINAL_POSITION DESC LIMIT 1");list($L["partition_by"],$L["partitions"],$L["partition"])=$J->fetch_row();$Ge=get_key_vals("SELECT PARTITION_NAME, PARTITION_DESCRIPTION $Ac AND PARTITION_NAME != '' ORDER BY PARTITION_ORDINAL_POSITION");$Ge[""]="";$L["partition_names"]=array_keys($Ge);$L["partition_values"]=array_values($Ge);}}}$Xa=collations();$Yb=engines();foreach($Yb
  690. as$Xb){if(!strcasecmp($Xb,$L["Engine"])){$L["Engine"]=$Xb;break;}}echo'
  691. <form action="" method="post" id="form">
  692. <p>
  693. ';if(support("columns")||$a==""){echo'Table name: <input name="name" maxlength="64" value="',h($L["name"]),'" autocapitalize="off">
  694. ';if($a==""&&!$_POST)echo
  695. script("focus(qs('#form')['name']);");echo($Yb?"<select name='Engine'>".optionlist(array(""=>"(".'engine'.")")+$Yb,$L["Engine"])."</select>".on_help("getTarget(event).value",1).script("qsl('select').onchange = helpClose;"):""),' ',($Xa&&!preg_match("~sqlite|mssql~",$y)?html_select("Collation",array(""=>"(".'collation'.")")+$Xa,$L["Collation"]):""),' <input type="submit" value="Save">
  696. ';}echo'
  697. ';if(support("columns")){echo'<table cellspacing="0" id="edit-fields" class="nowrap">
  698. ';$cb=($_POST?$_POST["comments"]:$L["Comment"]!="");if(!$_POST&&!$cb){foreach($L["fields"]as$l){if($l["comment"]!=""){$cb=true;break;}}}edit_fields($L["fields"],$Xa,"TABLE",$o,$cb);echo'</table>
  699. <p>
  700. Auto Increment: <input type="number" name="Auto_increment" size="6" value="',h($L["Auto_increment"]),'">
  701. ',checkbox("defaults",1,!$_POST||$_POST["defaults"],'Default values',"columnShow(this.checked, 5)","jsonly"),($_POST?"":script("editingHideDefaults();")),(support("comment")?"<label><input type='checkbox' name='comments' value='1' class='jsonly'".($cb?" checked":"").">".'Comment'."</label>".script("qsl('input').onclick = partial(editingCommentsClick, true);").' <input name="Comment" value="'.h($L["Comment"]).'" maxlength="'.(min_version(5.5)?2048:60).'"'.($cb?'':' class="hidden"').'>':''),'<p>
  702. <input type="submit" value="Save">
  703. ';}echo'
  704. ';if($a!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$a));}if(support("partitioning")){$Ee=preg_match('~RANGE|LIST~',$L["partition_by"]);print_fieldset("partition",'Partition by',$L["partition_by"]);echo'<p>
  705. ',"<select name='partition_by'>".optionlist(array(""=>"")+$De,$L["partition_by"])."</select>".on_help("getTarget(event).value.replace(/./, 'PARTITION BY \$&')",1).script("qsl('select').onchange = partitionByChange;"),'(<input name="partition" value="',h($L["partition"]),'">)
  706. Partitions: <input type="number" name="partitions" class="size',($Ee||!$L["partition_by"]?" hidden":""),'" value="',h($L["partitions"]),'">
  707. <table cellspacing="0" id="partition-table"',($Ee?"":" class='hidden'"),'>
  708. <thead><tr><th>Partition name<th>Values</thead>
  709. ';foreach($L["partition_names"]as$z=>$X){echo'<tr>','<td><input name="partition_names[]" value="'.h($X).'" autocapitalize="off">',($z==count($L["partition_names"])-1?script("qsl('input').oninput = partitionNameChange;"):''),'<td><input name="partition_values[]" value="'.h($L["partition_values"][$z]).'">';}echo'</table>
  710. </div></fieldset>
  711. ';}echo'<input type="hidden" name="token" value="',$T,'">
  712. </form>
  713. ',script("qs('#form')['defaults'].onclick();".(support("comment")?" editingCommentsClick.call(qs('#form')['comments']);":""));}elseif(isset($_GET["indexes"])){$a=$_GET["indexes"];$Tc=array("PRIMARY","UNIQUE","INDEX");$R=table_status($a,true);if(preg_match('~MyISAM|M?aria'.(min_version(5.6,'10.0.5')?'|InnoDB':'').'~i',$R["Engine"]))$Tc[]="FULLTEXT";if(preg_match('~MyISAM|M?aria'.(min_version(5.7,'10.2.2')?'|InnoDB':'').'~i',$R["Engine"]))$Tc[]="SPATIAL";$w=indexes($a);$Te=array();if($y=="mongo"){$Te=$w["_id_"];unset($Tc[0]);unset($w["_id_"]);}$L=$_POST;if($_POST&&!$k&&!$_POST["add"]&&!$_POST["drop_col"]){$sa=array();foreach($L["indexes"]as$v){$E=$v["name"];if(in_array($v["type"],$Tc)){$d=array();$td=array();$Bb=array();$P=array();ksort($v["columns"]);foreach($v["columns"]as$z=>$c){if($c!=""){$sd=$v["lengths"][$z];$Ab=$v["descs"][$z];$P[]=idf_escape($c).($sd?"(".(+$sd).")":"").($Ab?" DESC":"");$d[]=$c;$td[]=($sd?$sd:null);$Bb[]=$Ab;}}if($d){$hc=$w[$E];if($hc){ksort($hc["columns"]);ksort($hc["lengths"]);ksort($hc["descs"]);if($v["type"]==$hc["type"]&&array_values($hc["columns"])===$d&&(!$hc["lengths"]||array_values($hc["lengths"])===$td)&&array_values($hc["descs"])===$Bb){unset($w[$E]);continue;}}$sa[]=array($v["type"],$E,$P);}}}foreach($w
  714. as$E=>$hc)$sa[]=array($hc["type"],$E,"DROP");if(!$sa)redirect(ME."table=".urlencode($a));queries_redirect(ME."table=".urlencode($a),'Indexes have been altered.',alter_indexes($a,$sa));}page_header('Indexes',$k,array("table"=>$a),h($a));$m=array_keys(fields($a));if($_POST["add"]){foreach($L["indexes"]as$z=>$v){if($v["columns"][count($v["columns"])]!="")$L["indexes"][$z]["columns"][]="";}$v=end($L["indexes"]);if($v["type"]||array_filter($v["columns"],'strlen'))$L["indexes"][]=array("columns"=>array(1=>""));}if(!$L){foreach($w
  715. as$z=>$v){$w[$z]["name"]=$z;$w[$z]["columns"][]="";}$w[]=array("columns"=>array(1=>""));$L["indexes"]=$w;}?>
  716.  
  717. <form action="" method="post">
  718. <table cellspacing="0" class="nowrap">
  719. <thead><tr>
  720. <th id="label-type">Index Type
  721. <th><input type="submit" class="wayoff">Column (length)
  722. <th id="label-name">Name
  723. <th><noscript><input type='image' class='icon' name='add[0]' src='" . h(preg_replace("~\\?.*~", "", ME) . "?file=plus.gif&version=4.6.2&driver=mysql") . "' alt='+' title='Add next'></noscript>&nbsp;
  724. </thead>
  725. <?php
  726. if($Te){echo"<tr><td>PRIMARY<td>";foreach($Te["columns"]as$z=>$c){echo
  727. select_input(" disabled",$m,$c),"<label><input disabled type='checkbox'>".'descending'."</label> ";}echo"<td><td>\n";}$x=1;foreach($L["indexes"]as$v){if(!$_POST["drop_col"]||$x!=key($_POST["drop_col"])){echo"<tr><td>".html_select("indexes[$x][type]",array(-1=>"")+$Tc,$v["type"],($x==count($L["indexes"])?"indexesAddRow.call(this);":1),"label-type"),"<td>";ksort($v["columns"]);$t=1;foreach($v["columns"]as$z=>$c){echo"<span>".select_input(" name='indexes[$x][columns][$t]' title='".'Column'."'",($m?array_combine($m,$m):$m),$c,"partial(".($t==count($v["columns"])?"indexesAddColumn":"indexesChangeColumn").", '".js_escape($y=="sql"?"":$_GET["indexes"]."_")."')"),($y=="sql"||$y=="mssql"?"<input type='number' name='indexes[$x][lengths][$t]' class='size' value='".h($v["lengths"][$z])."' title='".'Length'."'>":""),($y!="sql"?checkbox("indexes[$x][descs][$t]",1,$v["descs"][$z],'descending'):"")," </span>";$t++;}echo"<td><input name='indexes[$x][name]' value='".h($v["name"])."' autocapitalize='off' aria-labelledby='label-name'>\n","<td><input type='image' class='icon' name='drop_col[$x]' src='".h(preg_replace("~\\?.*~","",ME)."?file=cross.gif&version=4.6.2&driver=mysql")."' alt='x' title='".'Remove'."'>".script("qsl('input').onclick = partial(editingRemoveRow, 'indexes\$1[type]');");}$x++;}echo'</table>
  728. <p>
  729. <input type="submit" value="Save">
  730. <input type="hidden" name="token" value="',$T,'">
  731. </form>
  732. ';}elseif(isset($_GET["database"])){$L=$_POST;if($_POST&&!$k&&!isset($_POST["add_x"])){$E=trim($L["name"]);if($_POST["drop"]){$_GET["db"]="";queries_redirect(remove_from_uri("db|database"),'Database has been dropped.',drop_databases(array(DB)));}elseif(DB!==$E){if(DB!=""){$_GET["db"]=$E;queries_redirect(preg_replace('~\bdb=[^&]*&~','',ME)."db=".urlencode($E),'Database has been renamed.',rename_database($E,$L["collation"]));}else{$h=explode("\n",str_replace("\r","",$E));$ag=true;$md="";foreach($h
  733. as$i){if(count($h)==1||$i!=""){if(!create_database($i,$L["collation"]))$ag=false;$md=$i;}}restart_session();set_session("dbs",null);queries_redirect(ME."db=".urlencode($md),'Database has been created.',$ag);}}else{if(!$L["collation"])redirect(substr(ME,0,-1));query_redirect("ALTER DATABASE ".idf_escape($E).(preg_match('~^[a-z0-9_]+$~i',$L["collation"])?" COLLATE $L[collation]":""),substr(ME,0,-1),'Database has been altered.');}}page_header(DB!=""?'Alter database':'Create database',$k,array(),h(DB));$Xa=collations();$E=DB;if($_POST)$E=$L["name"];elseif(DB!="")$L["collation"]=db_collation(DB,$Xa);elseif($y=="sql"){foreach(get_vals("SHOW GRANTS")as$r){if(preg_match('~ ON (`(([^\\\\`]|``|\\\\.)*)%`\\.\\*)?~',$r,$C)&&$C[1]){$E=stripcslashes(idf_unescape("`$C[2]`"));break;}}}echo'
  734. <form action="" method="post">
  735. <p>
  736. ',($_POST["add_x"]||strpos($E,"\n")?'<textarea id="name" name="name" rows="10" cols="40">'.h($E).'</textarea><br>':'<input name="name" id="name" value="'.h($E).'" maxlength="64" autocapitalize="off">')."\n".($Xa?html_select("collation",array(""=>"(".'collation'.")")+$Xa,$L["collation"]).doc_link(array('sql'=>"charset-charsets.html",'mariadb'=>"supported-character-sets-and-collations/",'mssql'=>"ms187963.aspx",)):""),script("focus(qs('#name'));"),'<input type="submit" value="Save">
  737. ';if(DB!="")echo"<input type='submit' name='drop' value='".'Drop'."'>".confirm(sprintf('Drop %s?',DB))."\n";elseif(!$_POST["add_x"]&&$_GET["db"]=="")echo"<input type='image' class='icon' name='add' src='".h(preg_replace("~\\?.*~","",ME)."?file=plus.gif&version=4.6.2&driver=mysql")."' alt='+' title='".'Add next'."'>\n";echo'<input type="hidden" name="token" value="',$T,'">
  738. </form>
  739. ';}elseif(isset($_GET["call"])){$da=($_GET["name"]?$_GET["name"]:$_GET["call"]);page_header('Call'.": ".h($da),$k);$uf=routine($_GET["call"],(isset($_GET["callf"])?"FUNCTION":"PROCEDURE"));$Sc=array();$xe=array();foreach($uf["fields"]as$t=>$l){if(substr($l["inout"],-3)=="OUT")$xe[$t]="@".idf_escape($l["field"])." AS ".idf_escape($l["field"]);if(!$l["inout"]||substr($l["inout"],0,2)=="IN")$Sc[]=$t;}if(!$k&&$_POST){$Ja=array();foreach($uf["fields"]as$z=>$l){if(in_array($z,$Sc)){$X=process_input($l);if($X===false)$X="''";if(isset($xe[$z]))$e->query("SET @".idf_escape($l["field"])." = $X");}$Ja[]=(isset($xe[$z])?"@".idf_escape($l["field"]):$X);}$I=(isset($_GET["callf"])?"SELECT":"CALL")." ".table($da)."(".implode(", ",$Ja).")";$Tf=microtime(true);$J=$e->multi_query($I);$na=$e->affected_rows;echo$b->selectQuery($I,$Tf,!$J);if(!$J)echo"<p class='error'>".error()."\n";else{$f=connect();if(is_object($f))$f->select_db(DB);do{$J=$e->store_result();if(is_object($J))select($J,$f);else
  740. echo"<p class='message'>".lang(array('Routine has been called, %d row affected.','Routine has been called, %d rows affected.'),$na)."\n";}while($e->next_result());if($xe)select($e->query("SELECT ".implode(", ",$xe)));}}echo'
  741. <form action="" method="post">
  742. ';if($Sc){echo"<table cellspacing='0'>\n";foreach($Sc
  743. as$z){$l=$uf["fields"][$z];$E=$l["field"];echo"<tr><th>".$b->fieldName($l);$Y=$_POST["fields"][$E];if($Y!=""){if($l["type"]=="enum")$Y=+$Y;if($l["type"]=="set")$Y=array_sum($Y);}input($l,$Y,(string)$_POST["function"][$E]);echo"\n";}echo"</table>\n";}echo'<p>
  744. <input type="submit" value="Call">
  745. <input type="hidden" name="token" value="',$T,'">
  746. </form>
  747. ';}elseif(isset($_GET["foreign"])){$a=$_GET["foreign"];$E=$_GET["name"];$L=$_POST;if($_POST&&!$k&&!$_POST["add"]&&!$_POST["change"]&&!$_POST["change-js"]){$D=($_POST["drop"]?'Foreign key has been dropped.':($E!=""?'Foreign key has been altered.':'Foreign key has been created.'));$B=ME."table=".urlencode($a);if(!$_POST["drop"]){$L["source"]=array_filter($L["source"],'strlen');ksort($L["source"]);$ng=array();foreach($L["source"]as$z=>$X)$ng[$z]=$L["target"][$z];$L["target"]=$ng;}if($y=="sqlite")queries_redirect($B,$D,recreate_table($a,$a,array(),array(),array(" $E"=>($_POST["drop"]?"":" ".format_foreign_key($L)))));else{$sa="ALTER TABLE ".table($a);$Jb="\nDROP ".($y=="sql"?"FOREIGN KEY ":"CONSTRAINT ").idf_escape($E);if($_POST["drop"])query_redirect($sa.$Jb,$B,$D);else{query_redirect($sa.($E!=""?"$Jb,":"")."\nADD".format_foreign_key($L),$B,$D);$k='Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.'."<br>$k";}}}page_header('Foreign key',$k,array("table"=>$a),h($a));if($_POST){ksort($L["source"]);if($_POST["add"])$L["source"][]="";elseif($_POST["change"]||$_POST["change-js"])$L["target"]=array();}elseif($E!=""){$o=foreign_keys($a);$L=$o[$E];$L["source"][]="";}else{$L["table"]=$a;$L["source"]=array("");}$Nf=array_keys(fields($a));$ng=($a===$L["table"]?$Nf:array_keys(fields($L["table"])));$if=array_keys(array_filter(table_status('',true),'fk_support'));echo'
  748. <form action="" method="post">
  749. <p>
  750. ';if($L["db"]==""&&$L["ns"]==""){echo'Target table:
  751. ',html_select("table",$if,$L["table"],"this.form['change-js'].value = '1'; this.form.submit();"),'<input type="hidden" name="change-js" value="">
  752. <noscript><p><input type="submit" name="change" value="Change"></noscript>
  753. <table cellspacing="0">
  754. <thead><tr><th id="label-source">Source<th id="label-target">Target</thead>
  755. ';$x=0;foreach($L["source"]as$z=>$X){echo"<tr>","<td>".html_select("source[".(+$z)."]",array(-1=>"")+$Nf,$X,($x==count($L["source"])-1?"foreignAddRow.call(this);":1),"label-source"),"<td>".html_select("target[".(+$z)."]",$ng,$L["target"][$z],1,"label-target");$x++;}echo'</table>
  756. <p>
  757. ON DELETE: ',html_select("on_delete",array(-1=>"")+explode("|",$ge),$L["on_delete"]),' ON UPDATE: ',html_select("on_update",array(-1=>"")+explode("|",$ge),$L["on_update"]),doc_link(array('sql'=>"innodb-foreign-key-constraints.html",'mariadb'=>"foreign-keys/",'pgsql'=>"sql-createtable.html#SQL-CREATETABLE-REFERENCES",'mssql'=>"ms174979.aspx",'oracle'=>"clauses002.htm#sthref2903",)),'<p>
  758. <input type="submit" value="Save">
  759. <noscript><p><input type="submit" name="add" value="Add column"></noscript>
  760. ';}if($E!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$E));}echo'<input type="hidden" name="token" value="',$T,'">
  761. </form>
  762. ';}elseif(isset($_GET["view"])){$a=$_GET["view"];$L=$_POST;$ve="VIEW";if($y=="pgsql"&&$a!=""){$Uf=table_status($a);$ve=strtoupper($Uf["Engine"]);}if($_POST&&!$k){$E=trim($L["name"]);$ua=" AS\n$L[select]";$B=ME."table=".urlencode($E);$D='View has been altered.';$U=($_POST["materialized"]?"MATERIALIZED VIEW":"VIEW");if(!$_POST["drop"]&&$a==$E&&$y!="sqlite"&&$U=="VIEW"&&$ve=="VIEW")query_redirect(($y=="mssql"?"ALTER":"CREATE OR REPLACE")." VIEW ".table($E).$ua,$B,$D);else{$pg=$E."_adminer_".uniqid();drop_create("DROP $ve ".table($a),"CREATE $U ".table($E).$ua,"DROP $U ".table($E),"CREATE $U ".table($pg).$ua,"DROP $U ".table($pg),($_POST["drop"]?substr(ME,0,-1):$B),'View has been dropped.',$D,'View has been created.',$a,$E);}}if(!$_POST&&$a!=""){$L=view($a);$L["name"]=$a;$L["materialized"]=($ve!="VIEW");if(!$k)$k=error();}page_header(($a!=""?'Alter view':'Create view'),$k,array("table"=>$a),h($a));echo'
  763. <form action="" method="post">
  764. <p>Name: <input name="name" value="',h($L["name"]),'" maxlength="64" autocapitalize="off">
  765. ',(support("materializedview")?" ".checkbox("materialized",1,$L["materialized"],'Materialized view'):""),'<p>';textarea("select",$L["select"]);echo'<p>
  766. <input type="submit" value="Save">
  767. ';if($a!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$a));}echo'<input type="hidden" name="token" value="',$T,'">
  768. </form>
  769. ';}elseif(isset($_GET["event"])){$aa=$_GET["event"];$Yc=array("YEAR","QUARTER","MONTH","DAY","HOUR","MINUTE","WEEK","SECOND","YEAR_MONTH","DAY_HOUR","DAY_MINUTE","DAY_SECOND","HOUR_MINUTE","HOUR_SECOND","MINUTE_SECOND");$Vf=array("ENABLED"=>"ENABLE","DISABLED"=>"DISABLE","SLAVESIDE_DISABLED"=>"DISABLE ON SLAVE");$L=$_POST;if($_POST&&!$k){if($_POST["drop"])query_redirect("DROP EVENT ".idf_escape($aa),substr(ME,0,-1),'Event has been dropped.');elseif(in_array($L["INTERVAL_FIELD"],$Yc)&&isset($Vf[$L["STATUS"]])){$yf="\nON SCHEDULE ".($L["INTERVAL_VALUE"]?"EVERY ".q($L["INTERVAL_VALUE"])." $L[INTERVAL_FIELD]".($L["STARTS"]?" STARTS ".q($L["STARTS"]):"").($L["ENDS"]?" ENDS ".q($L["ENDS"]):""):"AT ".q($L["STARTS"]))." ON COMPLETION".($L["ON_COMPLETION"]?"":" NOT")." PRESERVE";queries_redirect(substr(ME,0,-1),($aa!=""?'Event has been altered.':'Event has been created.'),queries(($aa!=""?"ALTER EVENT ".idf_escape($aa).$yf.($aa!=$L["EVENT_NAME"]?"\nRENAME TO ".idf_escape($L["EVENT_NAME"]):""):"CREATE EVENT ".idf_escape($L["EVENT_NAME"]).$yf)."\n".$Vf[$L["STATUS"]]." COMMENT ".q($L["EVENT_COMMENT"]).rtrim(" DO\n$L[EVENT_DEFINITION]",";").";"));}}page_header(($aa!=""?'Alter event'.": ".h($aa):'Create event'),$k);if(!$L&&$aa!=""){$M=get_rows("SELECT * FROM information_schema.EVENTS WHERE EVENT_SCHEMA = ".q(DB)." AND EVENT_NAME = ".q($aa));$L=reset($M);}echo'
  770. <form action="" method="post">
  771. <table cellspacing="0">
  772. <tr><th>Name<td><input name="EVENT_NAME" value="',h($L["EVENT_NAME"]),'" maxlength="64" autocapitalize="off">
  773. <tr><th title="datetime">Start<td><input name="STARTS" value="',h("$L[EXECUTE_AT]$L[STARTS]"),'">
  774. <tr><th title="datetime">End<td><input name="ENDS" value="',h($L["ENDS"]),'">
  775. <tr><th>Every<td><input type="number" name="INTERVAL_VALUE" value="',h($L["INTERVAL_VALUE"]),'" class="size"> ',html_select("INTERVAL_FIELD",$Yc,$L["INTERVAL_FIELD"]),'<tr><th>Status<td>',html_select("STATUS",$Vf,$L["STATUS"]),'<tr><th>Comment<td><input name="EVENT_COMMENT" value="',h($L["EVENT_COMMENT"]),'" maxlength="64">
  776. <tr><th>&nbsp;<td>',checkbox("ON_COMPLETION","PRESERVE",$L["ON_COMPLETION"]=="PRESERVE",'On completion preserve'),'</table>
  777. <p>';textarea("EVENT_DEFINITION",$L["EVENT_DEFINITION"]);echo'<p>
  778. <input type="submit" value="Save">
  779. ';if($aa!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$aa));}echo'<input type="hidden" name="token" value="',$T,'">
  780. </form>
  781. ';}elseif(isset($_GET["procedure"])){$da=($_GET["name"]?$_GET["name"]:$_GET["procedure"]);$uf=(isset($_GET["function"])?"FUNCTION":"PROCEDURE");$L=$_POST;$L["fields"]=(array)$L["fields"];if($_POST&&!process_fields($L["fields"])&&!$k){$se=routine($_GET["procedure"],$uf);$pg="$L[name]_adminer_".uniqid();drop_create("DROP $uf ".routine_id($da,$se),create_routine($uf,$L),"DROP $uf ".routine_id($L["name"],$L),create_routine($uf,array("name"=>$pg)+$L),"DROP $uf ".routine_id($pg,$L),substr(ME,0,-1),'Routine has been dropped.','Routine has been altered.','Routine has been created.',$da,$L["name"]);}page_header(($da!=""?(isset($_GET["function"])?'Alter function':'Alter procedure').": ".h($da):(isset($_GET["function"])?'Create function':'Create procedure')),$k);if(!$_POST&&$da!=""){$L=routine($_GET["procedure"],$uf);$L["name"]=$da;}$Xa=get_vals("SHOW CHARACTER SET");sort($Xa);$vf=routine_languages();echo'
  782. <form action="" method="post" id="form">
  783. <p>Name: <input name="name" value="',h($L["name"]),'" maxlength="64" autocapitalize="off">
  784. ',($vf?'Language'.": ".html_select("language",$vf,$L["language"])."\n":""),'<input type="submit" value="Save">
  785. <table cellspacing="0" class="nowrap">
  786. ';edit_fields($L["fields"],$Xa,$uf);if(isset($_GET["function"])){echo"<tr><td>".'Return type';edit_type("returns",$L["returns"],$Xa,array(),($y=="pgsql"?array("void","trigger"):array()));}echo'</table>
  787. <p>';textarea("definition",$L["definition"]);echo'<p>
  788. <input type="submit" value="Save">
  789. ';if($da!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$da));}echo'<input type="hidden" name="token" value="',$T,'">
  790. </form>
  791. ';}elseif(isset($_GET["trigger"])){$a=$_GET["trigger"];$E=$_GET["name"];$Hg=trigger_options();$L=(array)trigger($E)+array("Trigger"=>$a."_bi");if($_POST){if(!$k&&in_array($_POST["Timing"],$Hg["Timing"])&&in_array($_POST["Event"],$Hg["Event"])&&in_array($_POST["Type"],$Hg["Type"])){$fe=" ON ".table($a);$Jb="DROP TRIGGER ".idf_escape($E).($y=="pgsql"?$fe:"");$B=ME."table=".urlencode($a);if($_POST["drop"])query_redirect($Jb,$B,'Trigger has been dropped.');else{if($E!="")queries($Jb);queries_redirect($B,($E!=""?'Trigger has been altered.':'Trigger has been created.'),queries(create_trigger($fe,$_POST)));if($E!="")queries(create_trigger($fe,$L+array("Type"=>reset($Hg["Type"]))));}}$L=$_POST;}page_header(($E!=""?'Alter trigger'.": ".h($E):'Create trigger'),$k,array("table"=>$a));echo'
  792. <form action="" method="post" id="form">
  793. <table cellspacing="0">
  794. <tr><th>Time<td>',html_select("Timing",$Hg["Timing"],$L["Timing"],"triggerChange(/^".preg_quote($a,"/")."_[ba][iud]$/, '".js_escape($a)."', this.form);"),'<tr><th>Event<td>',html_select("Event",$Hg["Event"],$L["Event"],"this.form['Timing'].onchange();"),(in_array("UPDATE OF",$Hg["Event"])?" <input name='Of' value='".h($L["Of"])."' class='hidden'>":""),'<tr><th>Type<td>',html_select("Type",$Hg["Type"],$L["Type"]),'</table>
  795. <p>Name: <input name="Trigger" value="',h($L["Trigger"]),'" maxlength="64" autocapitalize="off">
  796. ',script("qs('#form')['Timing'].onchange();"),'<p>';textarea("Statement",$L["Statement"]);echo'<p>
  797. <input type="submit" value="Save">
  798. ';if($E!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$E));}echo'<input type="hidden" name="token" value="',$T,'">
  799. </form>
  800. ';}elseif(isset($_GET["user"])){$fa=$_GET["user"];$Xe=array(""=>array("All privileges"=>""));foreach(get_rows("SHOW PRIVILEGES")as$L){foreach(explode(",",($L["Privilege"]=="Grant option"?"":$L["Context"]))as$hb)$Xe[$hb][$L["Privilege"]]=$L["Comment"];}$Xe["Server Admin"]+=$Xe["File access on server"];$Xe["Databases"]["Create routine"]=$Xe["Procedures"]["Create routine"];unset($Xe["Procedures"]["Create routine"]);$Xe["Columns"]=array();foreach(array("Select","Insert","Update","References")as$X)$Xe["Columns"][$X]=$Xe["Tables"][$X];unset($Xe["Server Admin"]["Usage"]);foreach($Xe["Tables"]as$z=>$X)unset($Xe["Databases"][$z]);$Rd=array();if($_POST){foreach($_POST["objects"]as$z=>$X)$Rd[$X]=(array)$Rd[$X]+(array)$_POST["grants"][$z];}$Cc=array();$de="";if(isset($_GET["host"])&&($J=$e->query("SHOW GRANTS FOR ".q($fa)."@".q($_GET["host"])))){while($L=$J->fetch_row()){if(preg_match('~GRANT (.*) ON (.*) TO ~',$L[0],$C)&&preg_match_all('~ *([^(,]*[^ ,(])( *\\([^)]+\\))?~',$C[1],$_d,PREG_SET_ORDER)){foreach($_d
  801. as$X){if($X[1]!="USAGE")$Cc["$C[2]$X[2]"][$X[1]]=true;if(preg_match('~ WITH GRANT OPTION~',$L[0]))$Cc["$C[2]$X[2]"]["GRANT OPTION"]=true;}}if(preg_match("~ IDENTIFIED BY PASSWORD '([^']+)~",$L[0],$C))$de=$C[1];}}if($_POST&&!$k){$ee=(isset($_GET["host"])?q($fa)."@".q($_GET["host"]):"''");if($_POST["drop"])query_redirect("DROP USER $ee",ME."privileges=",'User has been dropped.');else{$Td=q($_POST["user"])."@".q($_POST["host"]);$He=$_POST["pass"];if($He!=''&&!$_POST["hashed"]){$He=$e->result("SELECT PASSWORD(".q($He).")");$k=!$He;}$lb=false;if(!$k){if($ee!=$Td){$lb=queries((min_version(5)?"CREATE USER":"GRANT USAGE ON *.* TO")." $Td IDENTIFIED BY PASSWORD ".q($He));$k=!$lb;}elseif($He!=$de)queries("SET PASSWORD FOR $Td = ".q($He));}if(!$k){$rf=array();foreach($Rd
  802. as$Yd=>$r){if(isset($_GET["grant"]))$r=array_filter($r);$r=array_keys($r);if(isset($_GET["grant"]))$rf=array_diff(array_keys(array_filter($Rd[$Yd],'strlen')),$r);elseif($ee==$Td){$be=array_keys((array)$Cc[$Yd]);$rf=array_diff($be,$r);$r=array_diff($r,$be);unset($Cc[$Yd]);}if(preg_match('~^(.+)\\s*(\\(.*\\))?$~U',$Yd,$C)&&(!grant("REVOKE",$rf,$C[2]," ON $C[1] FROM $Td")||!grant("GRANT",$r,$C[2]," ON $C[1] TO $Td"))){$k=true;break;}}}if(!$k&&isset($_GET["host"])){if($ee!=$Td)queries("DROP USER $ee");elseif(!isset($_GET["grant"])){foreach($Cc
  803. as$Yd=>$rf){if(preg_match('~^(.+)(\\(.*\\))?$~U',$Yd,$C))grant("REVOKE",array_keys($rf),$C[2]," ON $C[1] FROM $Td");}}}queries_redirect(ME."privileges=",(isset($_GET["host"])?'User has been altered.':'User has been created.'),!$k);if($lb)$e->query("DROP USER $Td");}}page_header((isset($_GET["host"])?'Username'.": ".h("$fa@$_GET[host]"):'Create user'),$k,array("privileges"=>array('','Privileges')));if($_POST){$L=$_POST;$Cc=$Rd;}else{$L=$_GET+array("host"=>$e->result("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', -1)"));$L["pass"]=$de;if($de!="")$L["hashed"]=true;$Cc[(DB==""||$Cc?"":idf_escape(addcslashes(DB,"%_\\"))).".*"]=array();}echo'<form action="" method="post">
  804. <table cellspacing="0">
  805. <tr><th>Server<td><input name="host" maxlength="60" value="',h($L["host"]),'" autocapitalize="off">
  806. <tr><th>Username<td><input name="user" maxlength="16" value="',h($L["user"]),'" autocapitalize="off">
  807. <tr><th>Password<td><input name="pass" id="pass" value="',h($L["pass"]),'" autocomplete="new-password">
  808. ';if(!$L["hashed"])echo
  809. script("typePassword(qs('#pass'));");echo
  810. checkbox("hashed",1,$L["hashed"],'Hashed',"typePassword(this.form['pass'], this.checked);"),'</table>
  811.  
  812. ';echo"<table cellspacing='0'>\n","<thead><tr><th colspan='2'>".'Privileges'.doc_link(array('sql'=>"grant.html#priv_level"));$t=0;foreach($Cc
  813. as$Yd=>$r){echo'<th>'.($Yd!="*.*"?"<input name='objects[$t]' value='".h($Yd)."' size='10' autocapitalize='off'>":"<input type='hidden' name='objects[$t]' value='*.*' size='10'>*.*");$t++;}echo"</thead>\n";foreach(array(""=>"","Server Admin"=>'Server',"Databases"=>'Database',"Tables"=>'Table',"Columns"=>'Column',"Procedures"=>'Routine',)as$hb=>$Ab){foreach((array)$Xe[$hb]as$We=>$bb){echo"<tr".odd()."><td".($Ab?">$Ab<td":" colspan='2'").' lang="en" title="'.h($bb).'">'.h($We);$t=0;foreach($Cc
  814. as$Yd=>$r){$E="'grants[$t][".h(strtoupper($We))."]'";$Y=$r[strtoupper($We)];if($hb=="Server Admin"&&$Yd!=(isset($Cc["*.*"])?"*.*":".*"))echo"<td>&nbsp;";elseif(isset($_GET["grant"]))echo"<td><select name=$E><option><option value='1'".($Y?" selected":"").">".'Grant'."<option value='0'".($Y=="0"?" selected":"").">".'Revoke'."</select>";else{echo"<td align='center'><label class='block'>","<input type='checkbox' name=$E value='1'".($Y?" checked":"").($We=="All privileges"?" id='grants-$t-all'>":">".($We=="Grant option"?"":script("qsl('input').onclick = function () { if (this.checked) formUncheck('grants-$t-all'); };"))),"</label>";}$t++;}}}echo"</table>\n",'<p>
  815. <input type="submit" value="Save">
  816. ';if(isset($_GET["host"])){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',"$fa@$_GET[host]"));}echo'<input type="hidden" name="token" value="',$T,'">
  817. </form>
  818. ';}elseif(isset($_GET["processlist"])){if(support("kill")&&$_POST&&!$k){$id=0;foreach((array)$_POST["kill"]as$X){if(kill_process($X))$id++;}queries_redirect(ME."processlist=",lang(array('%d process has been killed.','%d processes have been killed.'),$id),$id||!$_POST["kill"]);}page_header('Process list',$k);echo'
  819. <form action="" method="post">
  820. <table cellspacing="0" class="nowrap checkable">
  821. ',script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");$t=-1;foreach(process_list()as$t=>$L){if(!$t){echo"<thead><tr lang='en'>".(support("kill")?"<th>&nbsp;":"");foreach($L
  822. as$z=>$X)echo"<th>$z".doc_link(array('sql'=>"show-processlist.html#processlist_".strtolower($z),'pgsql'=>"monitoring-stats.html#PG-STAT-ACTIVITY-VIEW",'oracle'=>"../b14237/dynviews_2088.htm",));echo"</thead>\n";}echo"<tr".odd().">".(support("kill")?"<td>".checkbox("kill[]",$L[$y=="sql"?"Id":"pid"],0):"");foreach($L
  823. as$z=>$X)echo"<td>".(($y=="sql"&&$z=="Info"&&preg_match("~Query|Killed~",$L["Command"])&&$X!="")||($y=="pgsql"&&$z=="current_query"&&$X!="<IDLE>")||($y=="oracle"&&$z=="sql_text"&&$X!="")?"<code class='jush-$y'>".shorten_utf8($X,100,"</code>").' <a href="'.h(ME.($L["db"]!=""?"db=".urlencode($L["db"])."&":"")."sql=".urlencode($X)).'">'.'Clone'.'</a>':nbsp($X));echo"\n";}echo'</table>
  824. <p>
  825. ';if(support("kill")){echo($t+1)."/".sprintf('%d in total',max_connections()),"<p><input type='submit' value='".'Kill'."'>\n";}echo'<input type="hidden" name="token" value="',$T,'">
  826. </form>
  827. ',script("tableCheck();");}elseif(isset($_GET["select"])){$a=$_GET["select"];$R=table_status1($a);$w=indexes($a);$m=fields($a);$o=column_foreign_keys($a);$ae=$R["Oid"];parse_str($_COOKIE["adminer_import"],$ma);$sf=array();$d=array();$sg=null;foreach($m
  828. as$z=>$l){$E=$b->fieldName($l);if(isset($l["privileges"]["select"])&&$E!=""){$d[$z]=html_entity_decode(strip_tags($E),ENT_QUOTES);if(is_shortable($l))$sg=$b->selectLengthProcess();}$sf+=$l["privileges"];}list($N,$s)=$b->selectColumnsProcess($d,$w);$cd=count($s)<count($N);$Z=$b->selectSearchProcess($m,$w);$oe=$b->selectOrderProcess($m,$w);$_=$b->selectLimitProcess();if($_GET["val"]&&is_ajax()){header("Content-Type: text/plain; charset=utf-8");foreach($_GET["val"]as$Pg=>$L){$ua=convert_field($m[key($L)]);$N=array($ua?$ua:idf_escape(key($L)));$Z[]=where_check($Pg,$m);$K=$j->select($a,$N,$Z,$N);if($K)echo
  829. reset($K->fetch_row());}exit;}$Te=$Rg=null;foreach($w
  830. as$v){if($v["type"]=="PRIMARY"){$Te=array_flip($v["columns"]);$Rg=($N?$Te:array());foreach($Rg
  831. as$z=>$X){if(in_array(idf_escape($z),$N))unset($Rg[$z]);}break;}}if($ae&&!$Te){$Te=$Rg=array($ae=>0);$w[]=array("type"=>"PRIMARY","columns"=>array($ae));}if($_POST&&!$k){$mh=$Z;if(!$_POST["all"]&&is_array($_POST["check"])){$Oa=array();foreach($_POST["check"]as$Ma)$Oa[]=where_check($Ma,$m);$mh[]="((".implode(") OR (",$Oa)."))";}$mh=($mh?"\nWHERE ".implode(" AND ",$mh):"");if($_POST["export"]){cookie("adminer_import","output=".urlencode($_POST["output"])."&format=".urlencode($_POST["format"]));dump_headers($a);$b->dumpTable($a,"");$Ac=($N?implode(", ",$N):"*").convert_fields($d,$m,$N)."\nFROM ".table($a);$Ec=($s&&$cd?"\nGROUP BY ".implode(", ",$s):"").($oe?"\nORDER BY ".implode(", ",$oe):"");if(!is_array($_POST["check"])||$Te)$I="SELECT $Ac$mh$Ec";else{$Ng=array();foreach($_POST["check"]as$X)$Ng[]="(SELECT".limit($Ac,"\nWHERE ".($Z?implode(" AND ",$Z)." AND ":"").where_check($X,$m).$Ec,1).")";$I=implode(" UNION ALL ",$Ng);}$b->dumpData($a,"table",$I);exit;}if(!$b->selectEmailProcess($Z,$o)){if($_POST["save"]||$_POST["delete"]){$J=true;$na=0;$P=array();if(!$_POST["delete"]){foreach($d
  832. as$E=>$X){$X=process_input($m[$E]);if($X!==null&&($_POST["clone"]||$X!==false))$P[idf_escape($E)]=($X!==false?$X:idf_escape($E));}}if($_POST["delete"]||$P){if($_POST["clone"])$I="INTO ".table($a)." (".implode(", ",array_keys($P)).")\nSELECT ".implode(", ",$P)."\nFROM ".table($a);if($_POST["all"]||($Te&&is_array($_POST["check"]))||$cd){$J=($_POST["delete"]?$j->delete($a,$mh):($_POST["clone"]?queries("INSERT $I$mh"):$j->update($a,$P,$mh)));$na=$e->affected_rows;}else{foreach((array)$_POST["check"]as$X){$lh="\nWHERE ".($Z?implode(" AND ",$Z)." AND ":"").where_check($X,$m);$J=($_POST["delete"]?$j->delete($a,$lh,1):($_POST["clone"]?queries("INSERT".limit1($a,$I,$lh)):$j->update($a,$P,$lh,1)));if(!$J)break;$na+=$e->affected_rows;}}}$D=lang(array('%d item has been affected.','%d items have been affected.'),$na);if($_POST["clone"]&&$J&&$na==1){$nd=last_id();if($nd)$D=sprintf('Item%s has been inserted.'," $nd");}queries_redirect(remove_from_uri($_POST["all"]&&$_POST["delete"]?"page":""),$D,$J);if(!$_POST["delete"]){edit_form($a,$m,(array)$_POST["fields"],!$_POST["clone"]);page_footer();exit;}}elseif(!$_POST["import"]){if(!$_POST["val"])$k='Ctrl+click on a value to modify it.';else{$J=true;$na=0;foreach($_POST["val"]as$Pg=>$L){$P=array();foreach($L
  833. as$z=>$X){$z=bracket_escape($z,1);$P[idf_escape($z)]=(preg_match('~char|text~',$m[$z]["type"])||$X!=""?$b->processInput($m[$z],$X):"NULL");}$J=$j->update($a,$P," WHERE ".($Z?implode(" AND ",$Z)." AND ":"").where_check($Pg,$m),!$cd&&!$Te," ");if(!$J)break;$na+=$e->affected_rows;}queries_redirect(remove_from_uri(),lang(array('%d item has been affected.','%d items have been affected.'),$na),$J);}}elseif(!is_string($rc=get_file("csv_file",true)))$k=upload_error($rc);elseif(!preg_match('~~u',$rc))$k='File must be in UTF-8 encoding.';else{cookie("adminer_import","output=".urlencode($ma["output"])."&format=".urlencode($_POST["separator"]));$J=true;$Ya=array_keys($m);preg_match_all('~(?>"[^"]*"|[^"\\r\\n]+)+~',$rc,$_d);$na=count($_d[0]);$j->begin();$Ff=($_POST["separator"]=="csv"?",":($_POST["separator"]=="tsv"?"\t":";"));$M=array();foreach($_d[0]as$z=>$X){preg_match_all("~((?>\"[^\"]*\")+|[^$Ff]*)$Ff~",$X.$Ff,$Ad);if(!$z&&!array_diff($Ad[1],$Ya)){$Ya=$Ad[1];$na--;}else{$P=array();foreach($Ad[1]as$t=>$Ua)$P[idf_escape($Ya[$t])]=($Ua==""&&$m[$Ya[$t]]["null"]?"NULL":q(str_replace('""','"',preg_replace('~^"|"$~','',$Ua))));$M[]=$P;}}$J=(!$M||$j->insertUpdate($a,$M,$Te));if($J)$J=$j->commit();queries_redirect(remove_from_uri("page"),lang(array('%d row has been imported.','%d rows have been imported.'),$na),$J);$j->rollback();}}}$gg=$b->tableName($R);if(is_ajax()){page_headers();ob_start();}else
  834. page_header('Select'.": $gg",$k);$P=null;if(isset($sf["insert"])||!support("table")){$P="";foreach((array)$_GET["where"]as$X){if($o[$X["col"]]&&count($o[$X["col"]])==1&&($X["op"]=="="||(!$X["op"]&&!preg_match('~[_%]~',$X["val"]))))$P.="&set".urlencode("[".bracket_escape($X["col"])."]")."=".urlencode($X["val"]);}}$b->selectLinks($R,$P);if(!$d&&support("table"))echo"<p class='error'>".'Unable to select the table'.($m?".":": ".error())."\n";else{echo"<form action='' id='form'>\n","<div style='display: none;'>";hidden_fields_get();echo(DB!=""?'<input type="hidden" name="db" value="'.h(DB).'">'.(isset($_GET["ns"])?'<input type="hidden" name="ns" value="'.h($_GET["ns"]).'">':""):"");echo'<input type="hidden" name="select" value="'.h($a).'">',"</div>\n";$b->selectColumnsPrint($N,$d);$b->selectSearchPrint($Z,$d,$w);$b->selectOrderPrint($oe,$d,$w);$b->selectLimitPrint($_);$b->selectLengthPrint($sg);$b->selectActionPrint($w);echo"</form>\n";$F=$_GET["page"];if($F=="last"){$_c=$e->result(count_rows($a,$Z,$cd,$s));$F=floor(max(0,$_c-1)/$_);}$Af=$N;$Dc=$s;if(!$Af){$Af[]="*";$ib=convert_fields($d,$m,$N);if($ib)$Af[]=substr($ib,2);}foreach($N
  835. as$z=>$X){$l=$m[idf_unescape($X)];if($l&&($ua=convert_field($l)))$Af[$z]="$ua AS $X";}if(!$cd&&$Rg){foreach($Rg
  836. as$z=>$X){$Af[]=idf_escape($z);if($Dc)$Dc[]=idf_escape($z);}}$J=$j->select($a,$Af,$Z,$Dc,$oe,$_,$F,true);if(!$J)echo"<p class='error'>".error()."\n";else{if($y=="mssql"&&$F)$J->seek($_*$F);$Vb=array();echo"<form action='' method='post' enctype='multipart/form-data'>\n";$M=array();while($L=$J->fetch_assoc()){if($F&&$y=="oracle")unset($L["RNUM"]);$M[]=$L;}if($_GET["page"]!="last"&&$_!=""&&$s&&$cd&&$y=="sql")$_c=$e->result(" SELECT FOUND_ROWS()");if(!$M)echo"<p class='message'>".'No rows.'."\n";else{$Ba=$b->backwardKeys($a,$gg);echo"<table id='table' cellspacing='0' class='nowrap checkable'>",script("mixin(qs('#table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true), onkeydown: editingKeydown});"),"<thead><tr>".(!$s&&$N?"":"<td><input type='checkbox' id='all-page' class='jsonly'>".script("qs('#all-page').onclick = partial(formCheck, /check/);","")." <a href='".h($_GET["modify"]?remove_from_uri("modify"):$_SERVER["REQUEST_URI"]."&modify=1")."'>".'Modify'."</a>");$Qd=array();$Bc=array();reset($N);$ff=1;foreach($M[0]as$z=>$X){if(!isset($Rg[$z])){$X=$_GET["columns"][key($N)];$l=$m[$N?($X?$X["col"]:current($N)):$z];$E=($l?$b->fieldName($l,$ff):($X["fun"]?"*":$z));if($E!=""){$ff++;$Qd[$z]=$E;$c=idf_escape($z);$Oc=remove_from_uri('(order|desc)[^=]*|page').'&order%5B0%5D='.urlencode($z);$Ab="&desc%5B0%5D=1";echo"<th>".script("mixin(qsl('th'), {onmouseover: partial(columnMouse), onmouseout: partial(columnMouse, ' hidden')});",""),'<a href="'.h($Oc.($oe[0]==$c||$oe[0]==$z||(!$oe&&$cd&&$s[0]==$c)?$Ab:'')).'">';echo
  837. apply_sql_function($X["fun"],$E)."</a>";echo"<span class='column hidden'>","<a href='".h($Oc.$Ab)."' title='".'descending'."' class='text'> ↓</a>";if(!$X["fun"]){echo'<a href="#fieldset-search" title="'.'Search'.'" class="text jsonly"> =</a>',script("qsl('a').onclick = partial(selectSearch, '".js_escape($z)."');");}echo"</span>";}$Bc[$z]=$X["fun"];next($N);}}$td=array();if($_GET["modify"]){foreach($M
  838. as$L){foreach($L
  839. as$z=>$X)$td[$z]=max($td[$z],min(40,strlen(utf8_decode($X))));}}echo($Ba?"<th>".'Relations':"")."</thead>\n";if(is_ajax()){if($_%2==1&&$F%2==1)odd();ob_end_clean();}foreach($b->rowDescriptions($M,$o)as$Pd=>$L){$Og=unique_array($M[$Pd],$w);if(!$Og){$Og=array();foreach($M[$Pd]as$z=>$X){if(!preg_match('~^(COUNT\\((\\*|(DISTINCT )?`(?:[^`]|``)+`)\\)|(AVG|GROUP_CONCAT|MAX|MIN|SUM)\\(`(?:[^`]|``)+`\\))$~',$z))$Og[$z]=$X;}}$Pg="";foreach($Og
  840. as$z=>$X){if(($y=="sql"||$y=="pgsql")&&preg_match('~char|text|enum|set~',$m[$z]["type"])&&strlen($X)>64){$z=(strpos($z,'(')?$z:idf_escape($z));$z="MD5(".($y!='sql'||preg_match("~^utf8~",$m[$z]["collation"])?$z:"CONVERT($z USING ".charset($e).")").")";$X=md5($X);}$Pg.="&".($X!==null?urlencode("where[".bracket_escape($z)."]")."=".urlencode($X):"null%5B%5D=".urlencode($z));}echo"<tr".odd().">".(!$s&&$N?"":"<td>".checkbox("check[]",substr($Pg,1),in_array(substr($Pg,1),(array)$_POST["check"])).($cd||information_schema(DB)?"":" <a href='".h(ME."edit=".urlencode($a).$Pg)."' class='edit'>".'edit'."</a>"));foreach($L
  841. as$z=>$X){if(isset($Qd[$z])){$l=$m[$z];$X=$j->value($X,$l);if($X!=""&&(!isset($Vb[$z])||$Vb[$z]!=""))$Vb[$z]=(is_mail($X)?$Qd[$z]:"");$A="";if(preg_match('~blob|bytea|raw|file~',$l["type"])&&$X!="")$A=ME.'download='.urlencode($a).'&field='.urlencode($z).$Pg;if(!$A&&$X!==null){foreach((array)$o[$z]as$n){if(count($o[$z])==1||end($n["source"])==$z){$A="";foreach($n["source"]as$t=>$Nf)$A.=where_link($t,$n["target"][$t],$M[$Pd][$Nf]);$A=($n["db"]!=""?preg_replace('~([?&]db=)[^&]+~','\\1'.urlencode($n["db"]),ME):ME).'select='.urlencode($n["table"]).$A;if($n["ns"])$A=preg_replace('~([?&]ns=)[^&]+~','\\1'.urlencode($n["ns"]),$A);if(count($n["source"])==1)break;}}}if($z=="COUNT(*)"){$A=ME."select=".urlencode($a);$t=0;foreach((array)$_GET["where"]as$W){if(!array_key_exists($W["col"],$Og))$A.=where_link($t++,$W["col"],$W["val"],$W["op"]);}foreach($Og
  842. as$fd=>$W)$A.=where_link($t++,$fd,$W);}$X=select_value($X,$A,$l,$sg);$u=h("val[$Pg][".bracket_escape($z)."]");$Y=$_POST["val"][$Pg][bracket_escape($z)];$Qb=!is_array($L[$z])&&is_utf8($X)&&$M[$Pd][$z]==$L[$z]&&!$Bc[$z];$rg=preg_match('~text|lob~',$l["type"]);if(($_GET["modify"]&&$Qb)||$Y!==null){$Gc=h($Y!==null?$Y:$L[$z]);echo"<td>".($rg?"<textarea name='$u' cols='30' rows='".(substr_count($L[$z],"\n")+1)."'>$Gc</textarea>":"<input name='$u' value='$Gc' size='$td[$z]'>");}else{$xd=strpos($X,"<i>...</i>");echo"<td id='$u' data-text='".($xd?2:($rg?1:0))."'".($Qb?"":" data-warning='".h('Use edit link to modify this value.')."'").">$X</td>";}}}if($Ba)echo"<td>";$b->backwardKeysPrint($Ba,$M[$Pd]);echo"</tr>\n";}if(is_ajax())exit;echo"</table>\n";}if(!is_ajax()){if($M||$F){$fc=true;if($_GET["page"]!="last"){if($_==""||(count($M)<$_&&($M||!$F)))$_c=($F?$F*$_:0)+count($M);elseif($y!="sql"||!$cd){$_c=($cd?false:found_rows($R,$Z));if($_c<max(1e4,2*($F+1)*$_))$_c=reset(slow_query(count_rows($a,$Z,$cd,$s)));else$fc=false;}}$_e=($_!=""&&($_c===false||$_c>$_||$F));if($_e){echo(($_c===false?count($M)+1:$_c-$F*$_)>$_?'<p><a href="'.h(remove_from_uri("page")."&page=".($F+1)).'" class="loadmore">'.'Load more data'.'</a>'.script("qsl('a').onclick = partial(selectLoadMore, ".(+$_).", '".'Loading'."...');",""):''),"\n";}}echo"<div class='footer'><div>\n";if($M||$F){if($_e){$Cd=($_c===false?$F+(count($M)>=$_?2:1):floor(($_c-1)/$_));echo"<fieldset>";if($y!="simpledb"){echo"<legend><a href='".h(remove_from_uri("page"))."'>".'Page'."</a></legend>",script("qsl('a').onclick = function () { pageClick(this.href, +prompt('".'Page'."', '".($F+1)."')); return false; };"),pagination(0,$F).($F>5?" ...":"");for($t=max(1,$F-4);$t<min($Cd,$F+5);$t++)echo
  843. pagination($t,$F);if($Cd>0){echo($F+5<$Cd?" ...":""),($fc&&$_c!==false?pagination($Cd,$F):" <a href='".h(remove_from_uri("page")."&page=last")."' title='~$Cd'>".'last'."</a>");}}else{echo"<legend>".'Page'."</legend>",pagination(0,$F).($F>1?" ...":""),($F?pagination($F,$F):""),($Cd>$F?pagination($F+1,$F).($Cd>$F+1?" ...":""):"");}echo"</fieldset>\n";}echo"<fieldset>","<legend>".'Whole result'."</legend>";$Fb=($fc?"":"~ ").$_c;echo
  844. checkbox("all",1,0,($_c!==false?($fc?"":"~ ").lang(array('%d row','%d rows'),$_c):""),"var checked = formChecked(this, /check/); selectCount('selected', this.checked ? '$Fb' : checked); selectCount('selected2', this.checked || !checked ? '$Fb' : checked);")."\n","</fieldset>\n";if($b->selectCommandPrint()){echo'<fieldset',($_GET["modify"]?'':' class="jsonly"'),'><legend>Modify</legend><div>
  845. <input type="submit" value="Save"',($_GET["modify"]?'':' title="'.'Ctrl+click on a value to modify it.'.'"'),'>
  846. </div></fieldset>
  847. <fieldset><legend>Selected <span id="selected"></span></legend><div>
  848. <input type="submit" name="edit" value="Edit">
  849. <input type="submit" name="clone" value="Clone">
  850. <input type="submit" name="delete" value="Delete">',confirm(),'</div></fieldset>
  851. ';}$yc=$b->dumpFormat();foreach((array)$_GET["columns"]as$c){if($c["fun"]){unset($yc['sql']);break;}}if($yc){print_fieldset("export",'Export'." <span id='selected2'></span>");$ye=$b->dumpOutput();echo($ye?html_select("output",$ye,$ma["output"])." ":""),html_select("format",$yc,$ma["format"])," <input type='submit' name='export' value='".'Export'."'>\n","</div></fieldset>\n";}$b->selectEmailPrint(array_filter($Vb,'strlen'),$d);}echo"</div></div>\n";if($b->selectImportPrint()){echo"<div>","<a href='#import'>".'Import'."</a>",script("qsl('a').onclick = partial(toggle, 'import');",""),"<span id='import' class='hidden'>: ","<input type='file' name='csv_file'> ",html_select("separator",array("csv"=>"CSV,","csv;"=>"CSV;","tsv"=>"TSV"),$ma["format"],1);echo" <input type='submit' name='import' value='".'Import'."'>","</span>","</div>";}echo"<input type='hidden' name='token' value='$T'>\n","</form>\n",(!$s&&$N?"":script("tableCheck();"));}}}if(is_ajax()){ob_end_clean();exit;}}elseif(isset($_GET["variables"])){$Uf=isset($_GET["status"]);page_header($Uf?'Status':'Variables');$ch=($Uf?show_status():show_variables());if(!$ch)echo"<p class='message'>".'No rows.'."\n";else{echo"<table cellspacing='0'>\n";foreach($ch
  852. as$z=>$X){echo"<tr>","<th><code class='jush-".$y.($Uf?"status":"set")."'>".h($z)."</code>","<td>".nbsp($X);}echo"</table>\n";}}elseif(isset($_GET["script"])){header("Content-Type: text/javascript; charset=utf-8");if($_GET["script"]=="db"){$dg=array("Data_length"=>0,"Index_length"=>0,"Data_free"=>0);foreach(table_status()as$E=>$R){json_row("Comment-$E",nbsp($R["Comment"]));if(!is_view($R)){foreach(array("Engine","Collation")as$z)json_row("$z-$E",nbsp($R[$z]));foreach($dg+array("Auto_increment"=>0,"Rows"=>0)as$z=>$X){if($R[$z]!=""){$X=format_number($R[$z]);json_row("$z-$E",($z=="Rows"&&$X&&$R["Engine"]==($Pf=="pgsql"?"table":"InnoDB")?"~ $X":$X));if(isset($dg[$z]))$dg[$z]+=($R["Engine"]!="InnoDB"||$z!="Data_free"?$R[$z]:0);}elseif(array_key_exists($z,$R))json_row("$z-$E");}}}foreach($dg
  853. as$z=>$X)json_row("sum-$z",format_number($X));json_row("");}elseif($_GET["script"]=="kill")$e->query("KILL ".number($_POST["kill"]));else{foreach(count_tables($b->databases())as$i=>$X){json_row("tables-$i",$X);json_row("size-$i",db_size($i));}json_row("");}exit;}else{$lg=array_merge((array)$_POST["tables"],(array)$_POST["views"]);if($lg&&!$k&&!$_POST["search"]){$J=true;$D="";if($y=="sql"&&$_POST["tables"]&&count($_POST["tables"])>1&&($_POST["drop"]||$_POST["truncate"]||$_POST["copy"]))queries("SET foreign_key_checks = 0");if($_POST["truncate"]){if($_POST["tables"])$J=truncate_tables($_POST["tables"]);$D='Tables have been truncated.';}elseif($_POST["move"]){$J=move_tables((array)$_POST["tables"],(array)$_POST["views"],$_POST["target"]);$D='Tables have been moved.';}elseif($_POST["copy"]){$J=copy_tables((array)$_POST["tables"],(array)$_POST["views"],$_POST["target"]);$D='Tables have been copied.';}elseif($_POST["drop"]){if($_POST["views"])$J=drop_views($_POST["views"]);if($J&&$_POST["tables"])$J=drop_tables($_POST["tables"]);$D='Tables have been dropped.';}elseif($y!="sql"){$J=($y=="sqlite"?queries("VACUUM"):apply_queries("VACUUM".($_POST["optimize"]?"":" ANALYZE"),$_POST["tables"]));$D='Tables have been optimized.';}elseif(!$_POST["tables"])$D='No tables.';elseif($J=queries(($_POST["optimize"]?"OPTIMIZE":($_POST["check"]?"CHECK":($_POST["repair"]?"REPAIR":"ANALYZE")))." TABLE ".implode(", ",array_map('idf_escape',$_POST["tables"])))){while($L=$J->fetch_assoc())$D.="<b>".h($L["Table"])."</b>: ".h($L["Msg_text"])."<br>";}queries_redirect(substr(ME,0,-1),$D,$J);}page_header(($_GET["ns"]==""?'Database'.": ".h(DB):'Schema'.": ".h($_GET["ns"])),$k,true);if($b->homepage()){if($_GET["ns"]!==""){echo"<h3 id='tables-views'>".'Tables and views'."</h3>\n";$kg=tables_list();if(!$kg)echo"<p class='message'>".'No tables.'."\n";else{echo"<form action='' method='post'>\n";if(support("table")){echo"<fieldset><legend>".'Search data in tables'." <span id='selected2'></span></legend><div>","<input type='search' name='query' value='".h($_POST["query"])."'>",script("qsl('input').onkeydown = partialArg(bodyKeydown, 'search');","")," <input type='submit' name='search' value='".'Search'."'>\n","</div></fieldset>\n";if($_POST["search"]&&$_POST["query"]!=""){$_GET["where"][0]["op"]="LIKE %%";search_tables();}}$Gb=doc_link(array('sql'=>'show-table-status.html'));echo"<table cellspacing='0' class='nowrap checkable'>\n",script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});"),'<thead><tr class="wrap">','<td><input id="check-all" type="checkbox" class="jsonly">'.script("qs('#check-all').onclick = partial(formCheck, /^(tables|views)\[/);",""),'<th>'.'Table','<td>'.'Engine'.doc_link(array('sql'=>'storage-engines.html')),'<td>'.'Collation'.doc_link(array('sql'=>'charset-charsets.html','mariadb'=>'supported-character-sets-and-collations/')),'<td>'.'Data Length'.$Gb,'<td>'.'Index Length'.$Gb,'<td>'.'Data Free'.$Gb,'<td>'.'Auto Increment'.doc_link(array('sql'=>'example-auto-increment.html','mariadb'=>'auto_increment/')),'<td>'.'Rows'.$Gb,(support("comment")?'<td>'.'Comment'.$Gb:''),"</thead>\n";$S=0;foreach($kg
  854. as$E=>$U){$fh=($U!==null&&!preg_match('~table~i',$U));$u=h("Table-".$E);echo'<tr'.odd().'><td>'.checkbox(($fh?"views[]":"tables[]"),$E,in_array($E,$lg,true),"","","",$u),'<th>'.(support("table")||support("indexes")?"<a href='".h(ME)."table=".urlencode($E)."' title='".'Show structure'."' id='$u'>".h($E).'</a>':h($E));if($fh){echo'<td colspan="6"><a href="'.h(ME)."view=".urlencode($E).'" title="'.'Alter view'.'">'.(preg_match('~materialized~i',$U)?'Materialized view':'View').'</a>','<td align="right"><a href="'.h(ME)."select=".urlencode($E).'" title="'.'Select data'.'">?</a>';}else{foreach(array("Engine"=>array(),"Collation"=>array(),"Data_length"=>array("create",'Alter table'),"Index_length"=>array("indexes",'Alter indexes'),"Data_free"=>array("edit",'New item'),"Auto_increment"=>array("auto_increment=1&create",'Alter table'),"Rows"=>array("select",'Select data'),)as$z=>$A){$u=" id='$z-".h($E)."'";echo($A?"<td align='right'>".(support("table")||$z=="Rows"||(support("indexes")&&$z!="Data_length")?"<a href='".h(ME."$A[0]=").urlencode($E)."'$u title='$A[1]'>?</a>":"<span$u>?</span>"):"<td id='$z-".h($E)."'>&nbsp;");}$S++;}echo(support("comment")?"<td id='Comment-".h($E)."'>&nbsp;":"");}echo"<tr><td>&nbsp;<th>".sprintf('%d in total',count($kg)),"<td>".nbsp($y=="sql"?$e->result("SELECT @@storage_engine"):""),"<td>".nbsp(db_collation(DB,collations()));foreach(array("Data_length","Index_length","Data_free")as$z)echo"<td align='right' id='sum-$z'>&nbsp;";echo"</table>\n";if(!information_schema(DB)){echo"<div class='footer'><div>\n";$ah="<input type='submit' value='".'Vacuum'."'> ".on_help("'VACUUM'");$le="<input type='submit' name='optimize' value='".'Optimize'."'> ".on_help($y=="sql"?"'OPTIMIZE TABLE'":"'VACUUM OPTIMIZE'");echo"<fieldset><legend>".'Selected'." <span id='selected'></span></legend><div>".($y=="sqlite"?$ah:($y=="pgsql"?$ah.$le:($y=="sql"?"<input type='submit' value='".'Analyze'."'> ".on_help("'ANALYZE TABLE'").$le."<input type='submit' name='check' value='".'Check'."'> ".on_help("'CHECK TABLE'")."<input type='submit' name='repair' value='".'Repair'."'> ".on_help("'REPAIR TABLE'"):"")))."<input type='submit' name='truncate' value='".'Truncate'."'> ".on_help($y=="sqlite"?"'DELETE'":"'TRUNCATE".($y=="pgsql"?"'":" TABLE'")).confirm()."<input type='submit' name='drop' value='".'Drop'."'>".on_help("'DROP TABLE'").confirm()."\n";$h=(support("scheme")?$b->schemas():$b->databases());if(count($h)!=1&&$y!="sqlite"){$i=(isset($_POST["target"])?$_POST["target"]:(support("scheme")?$_GET["ns"]:DB));echo"<p>".'Move to other database'.": ",($h?html_select("target",$h,$i):'<input name="target" value="'.h($i).'" autocapitalize="off">')," <input type='submit' name='move' value='".'Move'."'>",(support("copy")?" <input type='submit' name='copy' value='".'Copy'."'>":""),"\n";}echo"<input type='hidden' name='all' value=''>";echo
  855. script("qsl('input').onclick = function () { selectCount('selected', formChecked(this, /^(tables|views)\[/));".(support("table")?" selectCount('selected2', formChecked(this, /^tables\[/) || $S);":"")." }"),"<input type='hidden' name='token' value='$T'>\n","</div></fieldset>\n","</div></div>\n";}echo"</form>\n",script("tableCheck();");}echo'<p class="links"><a href="'.h(ME).'create=">'.'Create table'."</a>\n",(support("view")?'<a href="'.h(ME).'view=">'.'Create view'."</a>\n":"");if(support("routine")){echo"<h3 id='routines'>".'Routines'."</h3>\n";$wf=routines();if($wf){echo"<table cellspacing='0'>\n",'<thead><tr><th>'.'Name'.'<td>'.'Type'.'<td>'.'Return type'."<td>&nbsp;</thead>\n";odd('');foreach($wf
  856. as$L){$E=($L["SPECIFIC_NAME"]==$L["ROUTINE_NAME"]?"":"&name=".urlencode($L["ROUTINE_NAME"]));echo'<tr'.odd().'>','<th><a href="'.h(ME.($L["ROUTINE_TYPE"]!="PROCEDURE"?'callf=':'call=').urlencode($L["SPECIFIC_NAME"]).$E).'">'.h($L["ROUTINE_NAME"]).'</a>','<td>'.h($L["ROUTINE_TYPE"]),'<td>'.h($L["DTD_IDENTIFIER"]),'<td><a href="'.h(ME.($L["ROUTINE_TYPE"]!="PROCEDURE"?'function=':'procedure=').urlencode($L["SPECIFIC_NAME"]).$E).'">'.'Alter'."</a>";}echo"</table>\n";}echo'<p class="links">'.(support("procedure")?'<a href="'.h(ME).'procedure=">'.'Create procedure'.'</a>':'').'<a href="'.h(ME).'function=">'.'Create function'."</a>\n";}if(support("event")){echo"<h3 id='events'>".'Events'."</h3>\n";$M=get_rows("SHOW EVENTS");if($M){echo"<table cellspacing='0'>\n","<thead><tr><th>".'Name'."<td>".'Schedule'."<td>".'Start'."<td>".'End'."<td></thead>\n";foreach($M
  857. as$L){echo"<tr>","<th>".h($L["Name"]),"<td>".($L["Execute at"]?'At given time'."<td>".$L["Execute at"]:'Every'." ".$L["Interval value"]." ".$L["Interval field"]."<td>$L[Starts]"),"<td>$L[Ends]",'<td><a href="'.h(ME).'event='.urlencode($L["Name"]).'">'.'Alter'.'</a>';}echo"</table>\n";$dc=$e->result("SELECT @@event_scheduler");if($dc&&$dc!="ON")echo"<p class='error'><code class='jush-sqlset'>event_scheduler</code>: ".h($dc)."\n";}echo'<p class="links"><a href="'.h(ME).'event=">'.'Create event'."</a>\n";}if($kg)echo
  858. script("ajaxSetHtml('".js_escape(ME)."script=db');");}}}page_footer();

Reply to "Untitled"

Here you can reply to the paste above