-
Notifications
You must be signed in to change notification settings - Fork 0
/
admskdhfsjkhgdjshger.php
864 lines (860 loc) · 205 KB
/
admskdhfsjkhgdjshger.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
<?php
/** Adminer - Compact database management
* @link https://www.adminer.org/
* @author Jakub Vrana, https://www.vrana.cz/
* @copyright 2007 Jakub Vrana
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
* @version 4.7.1
*/error_reporting(6135);$sc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($sc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Wg=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Wg)$$X=$Wg;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function
connection(){global$e;return$e;}function
adminer(){global$b;return$b;}function
version(){global$ga;return$ga;}function
idf_unescape($Sc){$pd=substr($Sc,-1);return
str_replace($pd.$pd,$pd,substr($Sc,1,-1));}function
escape_string($X){return
substr(q($X),1,-1);}function
number($X){return
preg_replace('~[^0-9]+~','',$X);}function
number_type(){return'((?<!o)int(?!er)|numeric|real|float|double|decimal|money)';}function
remove_slashes($bf,$sc=false){if(get_magic_quotes_gpc()){while(list($z,$X)=each($bf)){foreach($X
as$id=>$W){unset($bf[$z][$id]);if(is_array($W)){$bf[$z][stripslashes($id)]=$W;$bf[]=&$bf[$z][stripslashes($id)];}else$bf[$z][stripslashes($id)]=($sc?$W:stripslashes($W));}}}}function
bracket_escape($Sc,$_a=false){static$Jg=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return
strtr($Sc,($_a?array_flip($Jg):$Jg));}function
min_version($kh,$Bd="",$f=null){global$e;if(!$f)$f=$e;$Jf=$f->server_info;if($Bd&&preg_match('~([\d.]+)-MariaDB~',$Jf,$C)){$Jf=$C[1];$kh=$Bd;}return(version_compare($Jf,$kh)>=0);}function
charset($e){return(min_version("5.5.3",0,$e)?"utf8mb4":"utf8");}function
script($Sf,$Ig="\n"){return"<script".nonce().">$Sf</script>$Ig";}function
script_src($bh){return"<script src='".h($bh)."'".nonce()."></script>\n";}function
nonce(){return' nonce="'.get_nonce().'"';}function
target_blank(){return' target="_blank" rel="noreferrer noopener"';}function
h($cg){return
str_replace("\0","�",htmlspecialchars($cg,ENT_QUOTES,'utf-8'));}function
nl_br($cg){return
str_replace("\n","<br>",$cg);}function
checkbox($E,$Y,$Na,$md="",$le="",$Ra="",$nd=""){$K="<input type='checkbox' name='$E' value='".h($Y)."'".($Na?" checked":"").($nd?" aria-labelledby='$nd'":"").">".($le?script("qsl('input').onclick = function () { $le };",""):"");return($md!=""||$Ra?"<label".($Ra?" class='$Ra'":"").">$K".h($md)."</label>":$K);}function
optionlist($pe,$Ef=null,$eh=false){$K="";foreach($pe
as$id=>$W){$qe=array($id=>$W);if(is_array($W)){$K.='<optgroup label="'.h($id).'">';$qe=$W;}foreach($qe
as$z=>$X)$K.='<option'.($eh||is_string($z)?' value="'.h($z).'"':'').(($eh||is_string($z)?(string)$z:$X)===$Ef?' selected':'').'>'.h($X);if(is_array($W))$K.='</optgroup>';}return$K;}function
html_select($E,$pe,$Y="",$ke=true,$nd=""){if($ke)return"<select name='".h($E)."'".($nd?" aria-labelledby='$nd'":"").">".optionlist($pe,$Y)."</select>".(is_string($ke)?script("qsl('select').onchange = function () { $ke };",""):"");$K="";foreach($pe
as$z=>$X)$K.="<label><input type='radio' name='".h($E)."' value='".h($z)."'".($z==$Y?" checked":"").">".h($X)."</label>";return$K;}function
select_input($wa,$pe,$Y="",$ke="",$Oe=""){$rg=($pe?"select":"input");return"<$rg$wa".($pe?"><option value=''>$Oe".optionlist($pe,$Y,true)."</select>":" size='10' value='".h($Y)."' placeholder='$Oe'>").($ke?script("qsl('$rg').onchange = $ke;",""):"");}function
confirm($D="",$Ff="qsl('input')"){return
script("$Ff.onclick = function () { return confirm('".($D?js_escape($D):'Are you sure?')."'); };","");}function
print_fieldset($u,$ud,$nh=false){echo"<fieldset><legend>","<a href='#fieldset-$u'>$ud</a>",script("qsl('a').onclick = partial(toggle, 'fieldset-$u');",""),"</legend>","<div id='fieldset-$u'".($nh?"":" class='hidden'").">\n";}function
bold($Ga,$Ra=""){return($Ga?" class='active $Ra'":($Ra?" class='$Ra'":""));}function
odd($K=' class="odd"'){static$t=0;if(!$K)$t=-1;return($t++%2?$K:'');}function
js_escape($cg){return
addcslashes($cg,"\r\n'\\/");}function
json_row($z,$X=null){static$tc=true;if($tc)echo"{";if($z!=""){echo($tc?"":",")."\n\t\"".addcslashes($z,"\r\n\t\"\\/").'": '.($X!==null?'"'.addcslashes($X,"\r\n\"\\/").'"':'null');$tc=false;}else{echo"\n}\n";$tc=true;}}function
ini_bool($Xc){$X=ini_get($Xc);return(preg_match('~^(on|true|yes)$~i',$X)||(int)$X);}function
sid(){static$K;if($K===null)$K=(SID&&!($_COOKIE&&ini_bool("session.use_cookies")));return$K;}function
set_password($jh,$O,$V,$G){$_SESSION["pwds"][$jh][$O][$V]=($_COOKIE["adminer_key"]&&is_string($G)?array(encrypt_string($G,$_COOKIE["adminer_key"])):$G);}function
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
q($cg){global$e;return$e->quote($cg);}function
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
get_key_vals($I,$f=null,$Mf=true){global$e;if(!is_object($f))$f=$e;$K=array();$J=$f->query($I);if(is_object($J)){while($L=$J->fetch_row()){if($Mf)$K[$L[0]]=$L[1];else$K[]=$L[0];}}return$K;}function
get_rows($I,$f=null,$k="<p class='error'>"){global$e;$db=(is_object($f)?$f:$e);$K=array();$J=$db->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
unique_array($L,$w){foreach($w
as$v){if(preg_match("~PRIMARY|UNIQUE~",$v["type"])){$K=array();foreach($v["columns"]as$z){if(!isset($L[$z]))continue
2;$K[$z]=$L[$z];}return$K;}}}function
escape_key($z){if(preg_match('(^([\w(]+)('.str_replace("_",".*",preg_quote(idf_escape("_"))).')([ \w)]+)$)',$z,$C))return$C[1].idf_escape(idf_unescape($C[2])).$C[3];return
idf_escape($z);}function
where($Z,$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
implode(" AND ",$K);}function
where_check($X,$m=array()){parse_str($X,$Ma);remove_slashes(array(&$Ma));return
where($Ma,$m);}function
where_link($t,$c,$Y,$me="="){return"&where%5B$t%5D%5Bcol%5D=".urlencode($c)."&where%5B$t%5D%5Bop%5D=".urlencode(($Y!==null?$me:"IS NULL"))."&where%5B$t%5D%5Bval%5D=".urlencode($Y);}function
convert_fields($d,$m,$N=array()){$K="";foreach($d
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
cookie($E,$Y,$xd=2592000){global$ba;return
header("Set-Cookie: $E=".urlencode($Y).($xd?"; expires=".gmdate("D, d M Y H:i:s",time()+$xd)." GMT":"")."; path=".preg_replace('~\?.*~','',$_SERVER["REQUEST_URI"]).($ba?"; secure":"")."; HttpOnly; SameSite=lax",false);}function
restart_session(){if(!ini_bool("session.use_cookies"))session_start();}function
stop_session($vc=false){if(!ini_bool("session.use_cookies")||($vc&&@ini_set("session.use_cookies",false)!==false))session_write_close();}function&get_session($z){return$_SESSION[$z][DRIVER][SERVER][$_GET["username"]];}function
set_session($z,$X){$_SESSION[$z][DRIVER][SERVER][$_GET["username"]]=$X;}function
auth_url($jh,$O,$V,$i=null){global$Hb;preg_match('~([^?]*)\??(.*)~',remove_from_uri(implode("|",array_keys($Hb))."|username|".($i!==null?"db|":"").session_name()),$C);return"$C[1]?".(sid()?SID."&":"").($jh!="server"||$O!=""?urlencode($jh)."=".urlencode($O)."&":"")."username=".urlencode($V).($i!=""?"&db=".urlencode($i):"").($C[2]?"&$C[2]":"");}function
is_ajax(){return($_SERVER["HTTP_X_REQUESTED_WITH"]=="XMLHttpRequest");}function
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
query_redirect($I,$B,$D,$jf=true,$fc=true,$mc=false,$yg=""){global$e,$k,$b;if($fc){$Yf=microtime(true);$mc=!$e->query($I);$yg=format_time($Yf);}$Uf="";if($I)$Uf=$b->messageQuery($I,$yg,$mc);if($mc){$k=error().$Uf.script("messagesPrint();");return
false;}if($jf)redirect($B,$D.$Uf);return
true;}function
queries($I){global$e;static$ef=array();static$Yf;if(!$Yf)$Yf=microtime(true);if($I===null)return
array(implode("\n",$ef),format_time($Yf));$ef[]=(preg_match('~;$~',$I)?"DELIMITER ;;\n$I;\nDELIMITER ":$I).";";return$e->query($I);}function
apply_queries($I,$S,$bc='table'){foreach($S
as$Q){if(!queries("$I ".$bc($Q)))return
false;}return
true;}function
queries_redirect($B,$D,$jf){list($ef,$yg)=queries(null);return
query_redirect($ef,$B,$D,$jf,false,!$jf,$yg);}function
format_time($Yf){return
sprintf('%.3f s',max(0,microtime(true)-$Yf));}function
remove_from_uri($De=""){return
substr(preg_replace("~(?<=[?&])($De".(SID?"":"|".session_name()).")=[^&]*&~",'',"$_SERVER[REQUEST_URI]&"),0,-1);}function
pagination($F,$ob){return" ".($F==$ob?$F+1:'<a href="'.h(remove_from_uri("page").($F?"&page=$F".($_GET["next"]?"&next=".urlencode($_GET["next"]):""):"")).'">'.($F+1)."</a>");}function
get_file($z,$wb=false){$qc=$_FILES[$z];if(!$qc)return
null;foreach($qc
as$z=>$X)$qc[$z]=(array)$X;$K='';foreach($qc["error"]as$z=>$k){if($k)return$k;$E=$qc["name"][$z];$Fg=$qc["tmp_name"][$z];$eb=file_get_contents($wb&&preg_match('~\.gz$~',$E)?"compress.zlib://$Fg":$Fg);if($wb){$Yf=substr($eb,0,3);if(function_exists("iconv")&&preg_match("~^\xFE\xFF|^\xFF\xFE~",$Yf,$pf))$eb=iconv("utf-16","utf-8",$eb);elseif($Yf=="\xEF\xBB\xBF")$eb=substr($eb,3);$K.=$eb."\n\n";}else$K.=$eb;}return$K;}function
upload_error($k){$Hd=($k==UPLOAD_ERR_INI_SIZE?ini_get("upload_max_filesize"):0);return($k?'Unable to upload a file.'.($Hd?" ".sprintf('Maximum allowed file size is %sB.',$Hd):""):'File does not exist.');}function
repeat_pattern($Me,$vd){return
str_repeat("$Me{0,65535}",$vd/65535)."$Me{0,".($vd%65535)."}";}function
is_utf8($X){return(preg_match('~~u',$X)&&!preg_match('~[\0-\x8\xB\xC\xE-\x1F]~',$X));}function
shorten_utf8($cg,$vd=80,$gg=""){if(!preg_match("(^(".repeat_pattern("[\t\r\n -\x{10FFFF}]",$vd).")($)?)u",$cg,$C))preg_match("(^(".repeat_pattern("[\t\r\n -~]",$vd).")($)?)",$cg,$C);return
h($C[1]).$gg.(isset($C[2])?"":"<i>â¦</i>");}function
format_number($X){return
strtr(number_format($X,0,".",','),preg_split('~~u','0123456789',-1,PREG_SPLIT_NO_EMPTY));}function
friendly_url($X){return
preg_replace('~[^a-z0-9_]~i','-',$X);}function
hidden_fields($bf,$Tc=array()){$K=false;while(list($z,$X)=each($bf)){if(!in_array($z,$Tc)){if(is_array($X)){foreach($X
as$id=>$W)$bf[$z."[$id]"]=$W;}else{$K=true;echo'<input type="hidden" name="'.h($z).'" value="'.h($X).'">';}}}return$K;}function
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
table_status1($Q,$nc=false){$K=table_status($Q,$nc);return($K?$K:array("Name"=>$Q));}function
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
enum_input($U,$wa,$l,$Y,$Vb=null){global$b;preg_match_all("~'((?:[^']|'')*)'~",$l["length"],$Cd);$K=($Vb!==null?"<label><input type='$U'$wa value='$Vb'".((is_array($Y)?in_array($Vb,$Y):$Y===0)?" checked":"")."><i>".'empty'."</i></label>":"");foreach($Cd[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
input($l,$Y,$q){global$Rg,$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";}$rf=($y=="mssql"&&$l["auto_increment"]);if($rf&&!$_POST["save"])$q=null;$Bc=(isset($_GET["select"])||$rf?array("orig"=>'original'):array())+$b->editFunctions($l);$wa=" name='fields[$E]'";if($l["type"]=="enum")echo
h($Bc[""])."<td>".$b->editInput($_GET["edit"],$l,$wa,$Y);else{$Jc=(in_array($q,$Bc)||isset($Bc[$q]));echo(count($Bc)>1?"<select name='function[$E]'>".optionlist($Bc,$q===null||$Jc?$q:"")."</select>".on_help("getTarget(event).value.replace(/^SQL\$/, '')",1).script("qsl('select').onchange = functionChange;",""):h(reset($Bc))).'<td>';$Zc=$b->editInput($_GET["edit"],$l,$wa,$Y);if($Zc!="")echo$Zc;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"],$Cd);foreach($Cd[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(($wg=preg_match('~text|lob~',$l["type"]))||preg_match("~\n~",$Y)){if($wg&&$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{$Jd=(!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)):($Rg[$l["type"]]?$Rg[$l["type"]]+($l["unsigned"]?0:1):0));if($y=='sql'&&min_version(5.6)&&preg_match('~time~',$l["type"]))$Jd+=7;echo"<input".((!$Jc||$q==="")&&preg_match('~(?<!o)int(?!er)~',$l["type"])&&!preg_match('~\[\]~',$l["full_type"])?" type='number'":"")." value='".h($Y)."'".($Jd?" data-maxlength='$Jd'":"").(preg_match('~char|binary~',$l["type"])&&$Jd>20?" size='40'":"")."$wa>";}echo$b->editHint($_GET["edit"],$l,$Y);$tc=0;foreach($Bc
as$z=>$X){if($z===""||!$X)break;$tc++;}if($tc)echo
script("mixin(qsl('td'), {onchange: partial(skipOriginal, $tc), oninput: function () { this.onchange(); }});");}}function
process_input($l){global$b,$j;$Sc=bracket_escape($l["field"]);$q=$_POST["function"][$Sc];$Y=$_POST["fields"][$Sc];if($l["type"]=="enum"){if($Y==-1)return
false;if($Y=="")return"NULL";return+$Y;}if($l["auto_increment"]&&$Y=="")return
null;if($q=="orig")return(preg_match('~^CURRENT_TIMESTAMP~i',$l["on_update"])?idf_escape($l["field"]):false);if($q=="NULL")return"NULL";if($l["type"]=="set")return
array_sum((array)$Y);if($q=="json"){$q="";$Y=json_decode($Y,true);if(!is_array($Y))return
false;return$Y;}if(preg_match('~blob|bytea|raw|file~',$l["type"])&&ini_bool("file_uploads")){$qc=get_file("fields-$Sc");if(!is_string($qc))return
false;return$j->quoteBinary($qc);}return$b->processInput($l,$Y,$q);}function
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
search_tables(){global$b,$e;$_GET["where"][0]["val"]=$_POST["query"];$Hf="<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()){$Xe="<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"$Hf<li>".($J?$Xe:"<p class='error'>$Xe: ".error())."\n";$Hf="";}}}echo($Hf?"<p class='message'>".'No tables.':"</ul>")."\n";}function
dump_headers($Rc,$Qd=false){global$b;$K=$b->dumpHeaders($Rc,$Qd);$Ae=$_POST["output"];if($Ae!="text")header("Content-Disposition: attachment; filename=".$b->dumpFilename($Rc).".$K".($Ae!="file"&&!preg_match('~[^0-9a-z]~',$Ae)?".$Ae":""));session_write_close();ob_flush();flush();return$K;}function
dump_csv($L){foreach($L
as$z=>$X){if(preg_match("~[\"\n,;\t]~",$X)||$X==="")$L[$z]='"'.str_replace('"','""',$X).'"';}echo
implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$L)."\r\n";}function
apply_sql_function($q,$c){return($q?($q=="unixepoch"?"DATETIME($c, '$q')":($q=="count distinct"?"COUNT(DISTINCT ":strtoupper("$q("))."$c)"):$c);}function
get_temp_dir(){$K=ini_get("upload_tmp_dir");if(!$K){if(function_exists('sys_get_temp_dir'))$K=sys_get_temp_dir();else{$rc=@tempnam("","");if(!$rc)return
false;$K=dirname($rc);unlink($rc);}}return$K;}function
file_open_lock($rc){$p=@fopen($rc,"r+");if(!$p){$p=@fopen($rc,"w");if(!$p)return;chmod($rc,0660);}flock($p,LOCK_EX);return$p;}function
file_write_unlock($p,$qb){rewind($p);fwrite($p,$qb);ftruncate($p,strlen($qb));flock($p,LOCK_UN);fclose($p);}function
password_file($g){$rc=get_temp_dir()."/adminer.key";$K=@file_get_contents($rc);if($K||!$g)return$K;$p=@fopen($rc,"w");if($p){chmod($rc,0660);$K=rand_string();fwrite($p,$K);fclose($p);}return$K;}function
rand_string(){return
md5(uniqid(mt_rand(),true));}function
select_value($X,$A,$l,$xg){global$b;if(is_array($X)){$K="";foreach($X
as$id=>$W)$K.="<tr>".($X!=array_values($X)?"<th>".h($id):"")."<td>".select_value($W,$A,$l,$xg);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(!is_utf8($K))$K="\0";elseif($xg!=""&&is_shortable($l))$K=shorten_utf8($K,max(0,+$xg));else$K=h($K);}return$b->selectVal($K,$A,$l,$X);}function
is_mail($Sb){$va='[-a-z0-9!#$%&\'*+/=?^_`{|}~]';$Gb='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';$Me="$va+(\\.$va+)*@($Gb?\\.)+$Gb";return
is_string($Sb)&&preg_match("(^$Me(,\\s*$Me)*\$)i",$Sb);}function
is_url($cg){$Gb='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';return
preg_match("~^(https?)://($Gb?\\.)+$Gb(:\\d+)?(/.*)?(\\?.*)?(#.*)?\$~i",$cg);}function
is_shortable($l){return
preg_match('~char|text|json|lob|geometry|point|linestring|polygon|string|bytea~',$l["type"]);}function
count_rows($Q,$Z,$fd,$s){global$y;$I=" FROM ".table($Q).($Z?" WHERE ".implode(" AND ",$Z):"");return($fd&&($y=="sql"||count($s)==1)?"SELECT COUNT(DISTINCT ".implode(", ",$s).")$I":"SELECT COUNT(*)".($fd?" FROM (SELECT 1$I GROUP BY ".implode(", ",$s).") x":$I));}function
slow_query($I){global$b,$T,$j;$i=$b->database();$zg=$b->queryTimeout();$Qf=$j->slowQuery($I,$zg);if(!$Qf&&support("kill")&&is_object($f=connect())&&($i==""||$f->select_db($i))){$kd=$f->result(connection_id());echo'<script',nonce(),'>
var timeout = setTimeout(function () {
ajax(\'',js_escape(ME),'script=kill\', function () {
}, \'kill=',$kd,'&token=',$T,'\');
}, ',1000*$zg,');
</script>
';}else$f=null;ob_flush();flush();$K=@get_key_vals(($Qf?$Qf:$I),$f,false);if($f){echo
script("clearTimeout(timeout);");ob_flush();flush();}return$K;}function
get_token(){$hf=rand(1,1e6);return($hf^$_SESSION["token"]).":$hf";}function
verify_token(){list($T,$hf)=explode(":",$_POST["token"]);return($hf^$_SESSION["token"])==$T;}function
lzw_decompress($Da){$Cb=256;$Ea=8;$Ta=array();$sf=0;$tf=0;for($t=0;$t<strlen($Da);$t++){$sf=($sf<<8)+ord($Da[$t]);$tf+=8;if($tf>=$Ea){$tf-=$Ea;$Ta[]=$sf>>$tf;$sf&=(1<<$tf)-1;$Cb++;if($Cb>>$Ea)$Ea++;}}$Bb=range("\0","\xFF");$K="";foreach($Ta
as$t=>$Sa){$Rb=$Bb[$Sa];if(!isset($Rb))$Rb=$th.$th[0];$K.=$Rb;if($t)$Bb[]=$th.$Rb[0];$th=$Rb;}return$K;}function
on_help($Za,$Of=0){return
script("mixin(qsl('select, input'), {onmouseover: function (event) { helpMouseover.call(this, event, $Za, $Of) }, onmouseout: helpMouseout});","");}function
edit_form($a,$m,$L,$Zg){global$b,$y,$T,$k;$lg=$b->tableName(table_status1($a,true));page_header(($Zg?'Edit':'Insert'),$k,array("select"=>array($a,$lg)),$lg);if($L===false)echo"<p class='error'>".'No rows.'."\n";echo'<form action="" method="post" enctype="multipart/form-data" id="form">
';if(!$m)echo"<p class='error'>".'You have no privileges to update this table.'."\n";else{echo"<table cellspacing='0' class='layout'>".script("qsl('table').onkeydown = editingKeydown;");foreach($m
as$E=>$l){echo"<tr><th>".$b->fieldName($l);$xb=$_GET["set"][bracket_escape($E)];if($xb===null){$xb=$l["default"];if($l["type"]=="bit"&&preg_match("~^b'([01]*)'\$~",$xb,$pf))$xb=$pf[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]):(!$Zg&&$l["auto_increment"]?"":(isset($_GET["select"])?false:$xb)));if(!$_POST["save"]&&is_string($Y))$Y=$b->editVal($Y,$l);$q=($_POST["save"]?(string)$_POST["function"][$E]:($Zg&&preg_match('~^CURRENT_TIMESTAMP~i',$l["on_update"])?"now":($Y===false?null:($Y!==null?'':'NULL'))));if(preg_match("~time~",$l["type"])&&preg_match('~^CURRENT_TIMESTAMP~i',$Y)){$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='".($Zg?'Save and continue edit':'Save and insert next')."' title='Ctrl+Shift+Enter'>\n",($Zg?script("qsl('input').onclick = function () { return !ajaxForm(this.form, '".'Saving'."â¦', this); };"):"");}}echo($Zg?"<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"]),'">
<input type="hidden" name="save" value="1">
<input type="hidden" name="token" value="',$T,'">
</form>
';}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
lzw_decompress("\0\0\0` \0\0\n @\0´Cè\"\0`EãQ¸àÿ?ÀtvM'JdÁd\\b0\0Ä\"ÀfÓ¤îs5ÏçÑAXPaJ0¥8#RT©z`#.©ÇcíXÃþÈ?À-\0¡Im? .«M¶\0ȯ(ÌýÀ/(%\0");}elseif($_GET["file"]=="default.css"){header("Content-Type: text/css; charset=utf-8");echo
lzw_decompress("\n1ÌÙÞl7B14vb0Ífs¼ên2BÌѱÙÞn:#(¼b.\rDc)ÈÈa7E¤Âl¦Ã±èi1Ìs´ç-4fÓ ÈÎi7³éFévt2Ó!r0Ïãã£t~½U'3MÉWB¦'cÍPÂ:6T\rc£A¾zr_îWK¶\r-¼VNFS%~Ãc²Ùí&\\^ÊrÀæuÅÃôÙ4'7k¶è¯ÂãQÔæh'g\rFB\ryT7SS¥PÐ1=ǤcIèÊ:dºm>£S8LJt.M¢ Ï`'C¡¼ÛÐ889¤È QØýî2#8У6mú²ðj¢h«<
°«9/ëç:Jê)ʤ\0d>!\0Zvì»në¾ð¼o(Úó¥ÉkÔ7½sàù>î!ÐR\"*nSý\0@P\"Áè(#[¶¥£@g¹oüznþ9k¤8nª1´I*ô=Ín²¤ª¸è0«c(ö;¾Ã Ðè!°üë*cì÷>άE7DñLJ© 1Èä·ã`Â8(áÕ3M¨ó\"Ç39é?Ee=Ò¬ü~ù¾²ôÅîÓ¸7;ÉCÄÁÍE\rd!)Âa*¯5ajo\0ª#`Ê38¶\0Êí]eêÆ2¤ mk×øe]
ÁAZsÕStZZ!)BR¨G+Î#Jv2(ã öîc
4<¸#sB¯0éú6YL\r²=£
¿[×73Æð<Ô:£bxßJ= m_ ¾ÏÅfªlÙ×tåIªHÚ3x*á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|Áô¢Û*ôFAquvyO½WeMÖ÷D.Fáö:RÐ\$-¡Þ¶µT!ìDS`°8D~àA`(Çem¦òý¢T@O1@ºX¦â\nLpðPäþÁÓÂm«yf¸£) «ÂÚGSEI¥xC(s(a?\$`tE¨nñ±,÷Õ \$aU>,èÐ\$ZñkDm,G\0å \\iú£%ʹ¢ n¬¥¥±·ìÝÜgÉb y`òÔËWì· ä¡_CÀÄT\niÏH%ÕdaÀÖiÍ7íAt°,Á®JX4n0o͹»9g\nzmM%`É'IüÐ-èò©Ð7:pð3pÇQrED¤×ì àb2]
PF ý¥É>eÉú3j\nß°t!Á?4ftK;£Ê\rÎи!àou?ÓúPhÒ0uIC}'~ÅÈ2vþ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°7r,¾¡¬7èÞľBÖùÈ;é+÷¨©ßAÚpÍνÇ^¡~ؼW!3PI8]½vÓJÁfñq£|,êè9Wøf`\0áqAÖwE¬àçÕ´¦FÙTî«QÕGÎù\$0ÇÊ #Ç%By7r¨i{eÍQÔòdìÇ ÌB4;ks(å0ÝÁ=1r)_<¿Ø;̹çSÛr &YÇ,h,®iiÙÕÁbÉÌ¢Aé ¼åG±´Lz2p(¦ÏÙõ0À°ÂL ¡¹SÅú¨¨EêÀ <©ÄÇ}_#\\fª¨daÊçKå3¼Y|V+êl@²0`;ÅàËLhÅä±ÁÞ¯j'öàÆ»Yâ+¶QZ-iôyvI5Ú0O|½PÖ]FÜáòÓùñ\0üË2D9Í¢¤Án/ÏQس&¦ªI^®=Ól©qfIÆÊ= Ö]xqGRüF¦e¹7éº)ó9*Æ:B²b±>a¦z-µÑ2.¯ö¬¸b{°ð4#¥¼òÄUáÆL7-¼Áv/;Ê5ñôu©ÊöHå§&²#÷³¤jÖ`ÕG8Î 7pùØðÒ YCÁÐ~ÁÈ:À@ÆÞEUJÜÛ;v7v]¶J'ØÞäq1ï·éElôÐi¾ÍÃÏ/íÿ{k<àÖ¡MÜpoí}ðéÁ¤±Ù,ìdæÙ_uÓïÂpºuÞ½Åùúüú=»·tnþ´ ý~×LxîøæÖ{kàßåÞù\rj~·P+ÿç0ÐuòowÚyu\$Üèß·î\nd¥Ém´ZdÀ8i`¤=ûÛgð<§ùÛìáÍ*+3j¦ÌüÜ<[\0²®ÿ/PÍBÿÎr±ö`Ë`½#xå+B?#öÜ^;Ob\r¨èù¯4øÏ\n÷Ìæ¿0\núô¿0\\×0>Pø@ú¯À2lÆÂjÒOªëÿ¨(_î<çW\$Ùgºø Gt×@ûl.hSiƾ°¬PH\n¦JëâëèLDãh6ŶB ¯ÃrÚâ\r¨6£n¬Ðå°ë0à Fõp-Ðç\rà\r\0àçq±°ã#q`¿ü¨#EÑ(q}¨Ð·úéñ 4@ïéúÉf|\0``f*â` `Ð×QRvßyÀê\rñ-±B± ¤y7±&ª@Øñ± ¤ª`¿ñ_IÙ1@`)lÁñxàì)±Q±ÞðqÑÜ)ìÝâêÞ1sQeyqw1ïÇèA 2 ±ò*¨Çq wg>C°®B³ÈºA*Î~pÕPêO`Ï CÙ\$¢Ò³2M%ÆR²W±%RO&2S\rkàØÒ~²/jÀPÙ\$@¾Ò_)rw&ORq%±*rm)²«'O'Ñ1'R(5(IÙr:im,à¨lQ0\0ÛòD÷ñ'%rÛ-ñ =°Çrë'2K/²X@`è¯Ò:,#*Ò¥+RY3ò~ÇEüÙÑ23'-Q*\r`Ê113s;&cq10ë4Ï.¨A2ë32@7*2f`Òç-Q!ÓEÒ&ò6Ò%7±bÁ6ñÙ%ÓóÓ1 àóy9²[7Qu9Ó ªs7Ó©À¾\r©;4¹;Ó£!s!c\\e;1<Sq³Ó=s52,±jSñ)ê]ñâóùmp&Q'<±@1®0\"Á:hСï³ÔRÊiÍ.JÓ.BÐQ&é\n°0 5¢;±°j©½DðÙ9-\r\"S®ü±1@esãEq¤eÓ&ÌT.*L¼i3Ë:³§Eó¥H³¹ GÍ®(ýrEIJi!4Y±yJÔKûKt³;ºT.Ã)ÂÂo)| P;.²°â\nl¼*εâ«jþ±¤|½£OÃl²Bâ.hº.ôòò AÌ\rÃ.²88Ö2tÚ#ôÞo¢ANbËN©?ñ!ÀËOBóO,d¼*");}elseif($_GET["file"]=="functions.js"){header("Content-Type: text/javascript; charset=utf-8");echo
lzw_decompress("f:gCI¼Ü\n8Å3)°Ë7
81ÐÊx:\nOg#)Ðêr7\n\"è´`ø|2ÌgSiH)N¦Sä§\r\"0¹Ä@ä)`(\$s6O!ÓèV/=' T4æ=iS6IOÊerÙxî9*ź°ºn3\rÑvCÁ`õÝ2G%¨Yãæáþ1Ífô¹ÑÈl¤Ã1\ny£*pC\r\$ÌnTª3=\\r9O\"ã Ààl<\rÇ\\³I,s\nA¤Æeh+Mâ!q0ýf»`(¹N{c+wËñÁY£pÙ§33ú+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ÈXbu4Ý¡i88Â2Bä/â4¡N8AÜA)52íúøËåÎ2¨sã8ç5¤¥¡pçWC@è:t
ã¾´Öeh\"#8_æcp^ãâI]OHþÔ:zdÈ3g£(×Ãk¸î\\6´2ÚÚ÷¹iÃä7²Ï]\rÃxO¾nºpè<¡ÁpïQ®UÐnò|@çËó#G3ðÁ8bA¨Ê6ô267%#¸\\8\rý2Èc\ræÝk®.( -J;îÑó ÈéLãÏ ¼Wâøã§Ñ¥É¤â÷·nû Ò§»æýMÎÀ9ZÐs]êz®¯¬ëy^[¯ì4-ºU\0ta ¶62^.`¤â.Cßjÿ[á % Q\0`dëM8¿¦¼ËÛ\$O0`4²êÎ\n\0a\rA<@\r!À:ØBA9Ù?h>¤Çº ~Ì6ÈhÜ=Ë-A7XäÀÖ\\¼\rQ<è§q'!XÎ2úT °!D\r§Ò,K´\"ç%HÖqR\rÌ ¢îC =í æäÈ<c\n#<5Mø êEy¡°úo\"°cJKL2ù&£ØeRÀWÐAÎTwÊÑ;åJâá\\`)5¦ÔÞBòqhT3§àR ¸'\r+\": Øðà.ÑZM'|¬et:3%LÜË#Âf!ñhà×e³Ù+ļNá¹ Á½_CXGî1µi-ãz\$oK@O@TÒ=&0\$ àDA¥ùùDàªSJèx9×FÈml¨Èp»GÕ¤T6RfÀ@a¾\rs´RªFgih]¥éf.7+Ñ<nhh* ÈSH P]¡ :Ò¨Áa\"¨Õù¬2¦&R©)ùB¦PÊÓH/õf {r|¨0^ÙhCAÌ0»@æMÎâç2B@©âzªU¾O÷þCppå\\¾L«%è¬ðy«çodÃ¥´p3·7E¸ÐÜA\\°öKÛXnØi.ÐZ×Í ós¡Gým^tIòYJüÙ±G1£R¨³Dcäà6tMihÆä9»9gqRLûMj-TQÍ6i«G_!í.½hªvÞûcN¨ý¸^üÑ0w@n|ý½×VûÜ«AÐÃÀ3ú[Úû] s7õGP@ :Ì1ÑØbØ µìÝwÏ(i³ø:Òåz\\ûº;Óù´AéPU T^£]9Ý`UX+U îQ+ÃbÌÀñ*Ïs¨¼Î[ßÛxkûF*ôݧ_w.òÅ6~òbÛÎmKì¾sIÞMKÉ}ïÒ¥ÚøåeHɲdµ*mdçlQ°eHô2½ÔL¨ aÒ¯=
³sëPøaM\"apÃÀ:<á
äGB\r2Ytx&L}}ßAÏÔ±N
GЬzaöD4øtÔ4QÉvS©Ã¹S\rÎ;U¸ê¦éäý¸´Æ~pBð{¶ÑÆ,¢O´ãt;ÇJ¡ZC,&Yº:Y\"Ý#ÜãÄt:\nh8r¯¡îÚnéÔÈh>>Zðø`&àaÞpY+¹x¬UÕýA¼<?ãPxWÕ¡¯W i¬Ë.É\r`÷\$,Àú©Ò¾³V¥]Zrä§H³5Æf\\º-KÆ©¦v¼Zçä®A¸Õ(§{3oó¿¡l.¿ì¹JéÅ.ç\\t2æ;¯ì2\0´Í>c+|ÁÐ*;-0înÂà[t@ÛÚò¢¤=cQ\n.zÉwC&Ô@ù¦FæÕ'cBS7_*rsѨÔ?jð3@ôÐ!ð.@7s]ÓªòL÷ÎGð@ÿÕ_qÕ&uûØótª\nÕ´LßEÐT¤ð}gGþ¸îwëoö(*ªðAí¯-¥Åù¢Õ3¿mk¾
÷°¶×¤«t·¢Sø¥Á(ûd±Aî~ïx\n×õô§kÕÏ£:Dø+ gãäh14 Öâ\n.øÏdê«ãì öþéAlY©j©êjJÇÅPN+b D°j¼¬îÔDªÞPäìLQ`Of£@Ø}(ÅÂ6^nB³4Û`ÜeÀ\n
trp!lV¤'}b*r%|\nr\r#°Ä@w®¼-ÔT.Vvâ8ìªæ\nmF¦/Èp¬Ï`úY0¬ÏâëèP\r8ÀY\rØݤ ÀQ%EÎ/@]\0ÊÀ{@ÌQØá\0bR M\rÙ'|¢è%0SDr¨È f/àÂÜb:ܯ¶ÞÃÂ%ßæ3H¦x\0Âl\0ÌÅÚ Wàß%Ú\nç8\r\0}îDÉ1d#±xä.jEoHrÇ¢lbÀØÚ%tì¦4¸pÀä%Ñ4åÒk®z2\rñ£`îW@Âç%\rJ1X ¤Ú1¾D6!°ô*ä²{4<E¦k.më4Äò×\r\nê^iÀ è³!n«²!2\$§ÈüÌ÷(îfñöÄìÄùk>ï¢ÅËNú5\$àé2T¾,ÖLĬ ¶ Z@ºí*Ð`^PðP%5%ªtHâWÀðonüö«E#föÒ<Ú2@K:ÌoùòÌϦÍ-èû2\\Wi+f&Ñòg&²níLõ'eÒ|²´¿nK¥2ûrÚ¶Ëpá*.ánü²Î¦*Ð+ªtBg* òQ
1+)1hªî^`Q#ñØân*hòàòv¢Bãñ\0\\F\nWÅr f\$ó=4\$G4ed b:J^!0_àû¦%2ÀË6³.FÑèÒºóEQÁ±²Îdts\"×B(`Ú\rÀ®cR©°°ñV®²óºXêâ:R*2E*sÃ\$¬Ï+Á:bXlÌØtbá-ÄÂS>ù-åd¢=äò\$Sø\$å2ÀÊ7jº\"[Ì\"È] [6SE_>åq.\$@z`í;ô4²3ʼÅCSÕ*ïª[ÀÒÀ{DO´ÞªCJjå³Pò:'èÈ QEÓæ`%rñ¯û7¯þG+hW4E*ÀÐ#TuFj\n¾eùDô^æs§r.ìÅRkæz@¶@»
³Dâ`CÂV!Cæå\0ñØÛ)3<Q4@Ù3SPâZB³5FLä¨~G³5ÈÒ:ñÂÓ5\$XÑÔö}ÆfËâIó3S8ñ\0XÔtd³<\nbtNç Q¢;\rÜÑHÕP\0Ô¯&\nà\$VÒ\r:Ò\0]V5gV¦òD`N1:ÓSS4Q
4³N5u5Ó`x Ò<5_FHÜßõ}7û)SVíÌÄ#ê|Õ< Õ¼ÑË°£ ·\\ Ý-Êz2³\0ü#¡WJU6kv·µÎ#µÒ\rµì·¤§ÀûUõöiÕï_îõ^UVJ|Y.¨É\0u,òðôæ°õ_UQD#µZJuXtñµ_ï&JO,Du`N\r5³Á`«}ZQM^mÌPìG[±Áa»bàNä® ÖreÚ\nÒ%¤4o_(ñ^¶q@Y6t;I\nGSM£3§×^SAYH hB±5 fN?NjWUJÐÂøÖ¯YÖ³ke\"\\B1Ø
0º µenÐÄí*<¥O`SL\nÚ.gÍ5Zj¡\0R\$åh÷n÷[¶\\ÝíñrÊ,æ4ð° cP§pq@Rµrw>wCK
t¶ }5_uvh¤Ó`/Àúà\$òJ)ÏRõ2Du73Öd\rÂ;çw´ÝöHùI_\"4±rµ«®¦Ï¿+ê¿&0>É_-eqeDöÍVÔnÄfhüÂ\"ZÀ¨¶óZ¢WÌ6\\Lê÷î·ke&ã~àà
i\$Ï°´Mr×i*×ÄâÔç\0Ì.Q,¶¢8\r±È¸\$×KÈY ÐioÍe%tÕ2ÿ\0äJýø~×ñ/I/.
en«~x!8´À|f¸hÛ-H×åÏ&/Æoø.K Ë^jÜÀtµé>('L\ràHsK1´e¤\0\$&3²\0æin3í¨ oä6ôжø®÷ô§9j°¸àÈÚ1(b.vC Ý8Ù:wi¬\"®^wµQ©¥Åïzo~Þ/úÒ÷÷`Y2D¬VúƳ/kã8³¹7ZHø°]2k2r¿ñϯh©=T
]O&§\0ÄM\0Ö[8È®
æâ8&LÚVm vÀ±êj×ÇFåÄ\\¶ º¾&såQ \\\"òb° àÄ\rBsIw YéÂN 7ÇC/*ÙË ¨\n\nÃH[«¹Ô*A ñTEÏVP.UZ(tz/}\n2çyS¢,#É3âi°~W@yCC\nKT¿1\"@|zC\$ü_CZjzHBºLVÔ,Kº£ºOÁÀPà@X
´
°¨º;DúWZW¥aÙÀ\0ÞÂCG8R à¦\n
àºÐPÆA£è&º é,ÚpfV|@N¨b¾\$[Iâàð¦´àZ¥@Zd\\\"
|¢+¢Û®ìtzðo\$â\0[²èÞ±yE çë³É®bhU1£,r\$ão8D§²F«ÆV&Ú5 h}ÂNÜͳ&ºçµefÇY¸:»^z©VPu W¹Z\"rÚ:ûhwµh#1¥´O¥äÃKâhq`å¦óħv| ˧:wDúj
(W¢ºº¨ï¤»õ?;|Z«%%Ú¡Är@[úÄB»&»³ú#ª©Ù£:)ÂàY6û²è&¹Ü @¦ àüIÄÒ!©²»¶ »â2MäO;²«ÑWƼ)êùCãÊFZâp!ÂÄaÄ*FÄb¹I³Ã;à¤#Ĥ9¡¦åçS©/SüA`zéL*Î8»+¨ÌNùÄ-¸MÄ-kd°®àLiÎJë·þJnÂÃbí Ó>,ÜV¶SP¯8´è>¶wïì\"E.îRz`Þu_ÀèôE\\ùÏÉ«Ð3Pç¬óÓ¥s]goVS±ñ\n ¤ *\r»¸7)ªÊümPWÝUÕßÕÇ°¨·Þf×ÜiÿÆ
kÐ\rÄ('W`ÞBdã/h*AÌlºMä_\nÀèüú½µëOªäT5Ú&AÀ2é`¸à\\RÑE\"__½.7¥M6d;¶<?ÈÜ)(;¾û}K¸[«Åû»ÆZ?ÕyI ÷á1pªbu\0èé²²£{ó£Å\risÉQQ¦Y§2ª
\r×0\0XØ\"@qÍuMböÓuJ6ÉNGÖþ^ÓÔwF/tõ°#P¾p÷Í!7Øý
å!ûé^VüM!(â©8ÖÍ=¥\0å¥@¿í80N¬Sཾ°QÐ_TÏàÄ¥þqSz\"Õ&hã\0R.\0hZÓfx ÜF9¶Q(Ób³=ÄD&xs=Xbu@oÎwd5ñÇÝP1P>k¸HöD6/Ú¿íqë¼¾Î3¥7TЬKÈ~54° ñt#µM\rctxgçTæX\r2\$í<0øy}*ßÿCbiÆ^ó±ÄL7 bäoùÓÊx71 bXS`OÀàá0)ù¨Ú\"®/=Ȭ ¸lÊáQöpÍ-!ýà{ýõ±©ÖâaÃÈ9bAg¶2,1zf£kàÈjh/o(.4\rýàTz&nw¶Ä7 X!ðûª@,»< ý`\"@:¼7ÃCX\\ \$1H\n=Ä¡O5°&ºv*( àtHÑ#É\nê_X/8k~+tO&<vÍ_Yh.ØMeHxpáI¨aù0ÕM\nhø`r'B
¥ÃhÓn8qÑ! åÖ eu»«]^TWÖd9{û¾H,ã8ÅüLa«,!\0;ÆîB#É#ÁÒ`ò)³¯ ÅaèEeòÚÜ/MèPÓ lðÉa` ¥sâ²
<(D\nöá¡À9{06Æ;A8¶¸5! ÍÀZ[Tâ© hV
»Ü»Åé¯U@än`ÆVp¥h(Rb4ÆVôƼ¸ÒÈRp¢Ò\$ªÐÞD3O¡¾õÔ\$öÃÓaQ²¯0xbH` ®ÐâLÃ8i¾èoC½àúð#6xÊ)XHÐ!`÷íÀôÆÔBÖ%wÑÂÇo\nxÌh®ÁH»r¦ ʼcóÀmJHáLUðÜäÆe1l`ü(Õ\$\"¾hJÒrvØíÓTPÁÐØ·ó1uï¢HA\0èèH2@(Ê¡Uà\"©Q@qg]l\"¨%©ú*«\0Wj[ ·eÃ4êõÆPúÂNàê5\$H\r¼îIP'@:\0è\"#t^D0Åèå«>(h· '¼F,sZJôèµAn¯#h ªX³.qYobÚ·Ò2¨Þ?j¼B÷Iôߣ¥ÖÛôù0aû(ñ`ZñCÁà¯rHSQîÆ\\W ¼XZ÷Í|¹E@âÂTÔÅqð DD:_yկݱ©B~ßxP±--e_äu|2(³G,Æå-rR KxîÕ d¡ÃhHìA|ôw|PÁ!ÇÒä¬}ÜTùÇÖ<Ñù,1ÑÕvêg*Ù¤ïz¯^«÷¤ñ_pi {ØGÕíÝÿ LaJJCT%N1ÒI:V@ZÔÁ%É*Ô|@NNxLLzd \$8b#Û!2=cÛ±QDí@½\0±Jàdzpû¯\$Aî|ya4)¤s%!ð¥BIQ]dG´6&E\$
H\$Rj\0·ÜGi\$Ø¥â9ÅYúÐ@Ê´0ñ6ĦºXÒÜ1&Lç&2Ì E^äa8öj¦#¸DEu\$uTÌ*R¥#&P2e¥äK«'E%â¡YWáJô ©öO`Ê·^l+¦`¨ R¹1u&F¸¥Z[)]J¬ZÃEÑ`±¶FN.\r=ÀØ ³\0´O~ÒÅM,«
FATÌbhèz0`-bl\nñÇ
Z '*In°\$â[,8Dn«¨`°ÒóI0uʼhf¬³¤àààAEy<!ÔÁxdAÀÊô1¬aÆUÀt\$½'p\"óÐjüP6XR)EÎTR°\0SÃ@-ÉT³Ô³.SÁwU\\¿\\(\rìõÑÂÀkÀ¸úg`j}\$Ï`aJsLÂÎéR3ÖTéX}æ£8%ýH@Z\0^UÙ |6A¸ÀRT/à¬ÙEÆ@Ä\0ĤLØÂîPµ¢ûºRÐ0\0-dI¬Ñæ¯+¨µ,WÀvàßÅô6N4\"mãNÂU9P6Î>r / tåRvAp©Í4R3LX\0ЬS1LOú0<Í|S(+ìâJÅ9`1ÎbsS^Ðâ8³ æe3¶¨Xç9Q´æw*×ÀW2MZaGKÞŹ0ÕYè\r³Ä¦fêiêÌH(/ä[ ¼ñ\"Y§øWÃ7ZdµÃJÊ\"Æ\0Ä7DÓÒ¦LEÈ´½.xCvðÆÂã¾O«QÅ,_BñÖ{ç3d
Óz¯0ÒÔÌuILZcóøÐÆ\"J%ãÖR¤£ÙÊ¥aãgì^%zÆ5=S)²WZxÕûQZÊ@ &;àu.@ó&F(ä:F{ SÚÒ¡!ÐäM8¹È%B#iäC¼Ù*S\$ÏÀ@oøC§æ9ú¤TgÎsTXæâ\0èÜÓB)áPD´¨'CuÒc£Jp£ÔåiB`D'\0ÉHY*,XfTlziPøÁþÊ¢pÉÈ!H´#:ûÃHuÉP
2è\0BHrí«Iâ¡àC JrèÑÐ2 Ào\nÅeHJuJÒâS\0æÏVr =!õ*Lv+YT\0002:ê²(¦¨hÓµÊÂV#ÌħMe¡yV@[^øCþ¿¢9/ôÿ\0{§ÞÊçNDfÌ?éÄ\$Üi½J²*qM&V«
¬íïhB^évcâSê¬Þ ±QÍ1â<\nvÓ2tåéÂö1¯Þþ¨8QA~S*Õ§ÃÿQzuS-¡ éð/béjûÆäò÷óÆDl¤)TÐ|é¤<Ã+É6<< Ð0L%h,ªÓZ.ÒWäI¤¤ãª¤d1ßHëdNª`3.'Kô¦þP«Ó>U?âI&¦¢PªÝ!µ[>ÕYÜ£gaÞD\$ )0IÆA2-:gk iÀÆFz§·jý\\ÈÆì\"\"~jùÓWXûÎÕPu¨ÄRèJY:nC|(Eͺð9dàLHÀÀ)`X
'¾¹>\0¢±¢ºek¤nb=*f¡Bl&|SbÕB,Ñ0ayTØr=jªnzLè@GE'º\nHPë@à<@gq~@ìp>\$é*@¢ò¬\"ÂGÐ>0^¿\"tK IÄé¬Ò¾ucz¨õXàÒze\"¬àDü:Ë4~º#&«:ó\0¶1à'NgÕê-ð°@t¦)¨)üCªD(JNWºHu®ui Zz´,Òºk¾RTôÂeUvrvbÊÑ´§°¨në¤qºê;Ì>¢Ñ\nÙà®ï·\0r6C½n×aàøTÄÙq\0Nä¦Ü¨eI.ôzÅ}Ua&Ll#Ðm;!Ĩ È\"~ø@Å]\nÌ\0vwåìõ:h]W6[«.D~\$!{Yí`b£àpZ¡Q¤1\rhp¸,LÍ
©``K@\0Àb ->¾\0gX¢ÕMÄóSxí\\ÒòÏv»w2Íf8@ÄÕ\n.xà&, äJ~ä*é.q iaNÂ=³´ÒpôÖ¢r;ÀÈÛ7âÂEÊÀË\\Ó°À¦Ù.¶XôíFq[@âªr\rµSm/&rÛeí¶êÔánFÜdÿ®aØ-Ó:û2ÝmÀ·m¨Ä×+xÛDÖð_8'µ5¹D/P®Ð /MíÁñ·ÉKXÞy\nØëç)\nÝI±?vá ¬±ÉU¦!Ê(¡w-\$o(áöJ*ïµlÀ¸PiQ6§E\n¢-TV -Ç>çk;k¦@ÔcÑΪ£jo8V5/¢¼#ªJ<òÝÚ4 ã=(ßLÐÀ
T H8tRªôôä_ÅÂ¥&CBë/àÇ.즤¼*1¡ÖaëHͤÓÚ¾Z8Æ´ ;%½_\0^îñ¬-xkwúºäWWǦ.µi\næò\nHhgëÈX^îâëL&çl@«N\nP£À>íÆÒJ
Dô(65RµâÉ`ÕSXøµ]¯là«Ó¤µ.íç
ßs6åñÝÖº¹Ph
áPÆÊ°5%`Ð*¹.!ÀÔ¾«?XúÏ24XB\r;4Ù¬)6m4SS¨óY &j;~ä÷ß*¢½Ðä9DÑÚ]à\\\0iÝíÌ\0¬EwrNzQÓÐþîI
=®p{g[Aʱ¾,=áP³Î7\0?¼i)Ë\$¢ÖH?½à@eÔç]d 5Ö ïz¤J`À^ãª÷HÂn²q¬>àK(¦R}Õ\\#unÅ@H6«¸F©ñgçñVõ[I+Äþ0¸Ô \0-Ȭ¹ÿ\npÀhEÕsAøá´AÄü-|IüaDÂ=>Ô}|<Òúú)R/èU?ºPõ¨é ÕÄBÁÐÜÜTت3ÿ°çBü¡Ðø¶ñ7ëæ\0 ?¸dÃ5ã\0Y°¦·L r=«ØÐø¢@¯¼ c¦°½BåbråhBÅHÐÞ\$ /ÝŹNMľ¯E`4¥ñKÏá{©²Lê¨ûJD&¼Ð: aKo%ºGá-Óq}|h ¥ðàep`±]Ø,ÆѳIö½]BÝÀg·ûð4xÔz\\bì\"¨Hn¹ iÛlÇi°uâæàw#Û±+|KYv è\"`÷ØC\\32\\ê\\\\CÇÂ1õmü#Ê/ãG=¬:¹ Ç4´ÇÓK§Hýê¸Ô\\*±±¢ctÚ#v-äÇZdÑoÃÖ52gÿ(öÊz¥2¢8âù?)LyÊnQ×R§ÜmMn]ñßÄhÅü&\$ãaÕÕ\n×r3]ðguµä\"ëà6»§*ð£@â1GÎËʽ\\ËK\\,pwrÌ6Têç¤\\8¾b~Û ¯bFH^@|Âk_÷MJÌÒBåÌÏç4í%mn(Ð:H#¹«nhgTØ·6Aº.kÄÒbí
¸ç``bwÒfÙ.¥³G][û£¨þí@[HPñ0:6©
]\\í§Md\r2Y
r¶dî×,ìuØÒdÆIǤ}ÜóX\\qA=ìJ.Á©Â¿diÝ7ºUºnmå×ÄfDôYñÆ
®HûR<9ú¥XÍóü'L
½uVùÉB~ÀÙ¶l®MísÑ¥çJ¤·aÅ(\\öv8¶Íþq:.éð)½ ÿ³ïJRgí<Q§ÎáD\0\rH¸ÄÑ«Òs££æSGVgí9´}¡,üãHZ}§4hGõìaF\$þ´ë¨
Â[¹nzlåÕ60¨ØLÔTÑgÿ4ùvgózÜ¿¯Á9_\\5Ò²Ú'78ìÀ¼·c{E#Ý6K
¶6nsw bjj8ÊCõǧ×8¶óF@G 0ÚBÞªÀ´CIêS]ða@.`¦Ë»QjѯË\"\0õ=k)`rv¢Èðôµ|©G¹½ºÃÕf;p-ªòM*få%ÍáÄèÀÜBrÅBÀ¸Ra:Î4P¡5´VõS6>î_½ðyQ.ѽé'&\rMÃ-~BS×xGNBD%ÿþXqnxêSÉëÛÅ:¾c×\"'kÄ0®ÝZ¯Ô[^îÄ%ôɱ\\Ï廼»²wõ´,_w7ÓHå»ê+¨:¦y=Õ Ì.õS;¾Ü¨b³;\rÚò®Ñ?iý>UÑù¬>Ñà lSÏìñ|»5*kè%@Ú\né%7wõNWbbv¶ÔpÂþ½ª\$B÷ÚRA²%«ÌjÿY:Ëeòl¶Ñ¬}`G\$hì±ðÊäwE\nÿ Õ(\"ËP\n§TöÞl]ëÏ
B|ÂË1:?ßÊ)úÒöÇÀ]>óúgj?H;FÕ-ôØ
Z6Qdxæµòµg±K°sºQ鸡¹)æ×j¼ÂnWB¨sÝ^·G¢À>/Wl\$^À}¥\0vÁÇ5AðE\rJ§éy{¾0¨P4ÆÆ-3#³zaÆáTÉy^Ê\nQ9.Èá¼M¤}&¸Îù¤Ëj/2á¬9/\0﫤Ù\\Â>RzfË1öêÐø« äÃ!Ç)éÝrÐɯ|\rÉIw·]»TÎÀ,Ëæñ÷e ÉÇw[ÑбO]HçsÅûµAç(@¡ÕÖ¥16bc¢YÚ¢µ¨pÑó\0U6¾Èyp=]ijµº;Gï(xSÛÌHª¥1ÉË wb\0´{¥¨?Á`eY,?NøY5ÃZo¿ø\$ÎÌ\$ÜÕh'8Lf³F:¶¤k1)@Äï_µ Pûvpøé\$£o¸:fùe¸zÙu¿TÊZ@¼âÖÞ8¹ññìÜb\\¬Úþ4J1#SðÂ/wÇñÍ#X_±AÇ¥Ùw8K:OÔþQáÇx=J4äE¼;òzl©J®!Øñ.Õ7ûRåTñÒÌ®WN©¹Âe\$²_¼îCjß½äRQyRû
¦ñaËç|»2
Úx0ì>1«µjDLMÞR7\\lR§céüÕ\rÏiçÅwËÛÏR,ÒÀÛ;ÔÕs«QA!)º|ßØBpo\$]ÚSx
:wP¡îEO%ôê·b_C\0Ôì°¬æÔëæ-³¹²8FâèöÐyjårr\\{_è¢Z.D²
/¨LÃ8µëÐZ½ @Ip\0(ק³\$g(sw2C`áßAD/7t3Ìdçjux»(_\$\"K
I99ݽ#õnå÷TÂs`Ø9¾ÅB]ë/v¾Vs!-3\$OS0^¡\\¼Çm¯Ý³9Í\n¡Ï¥8iå²wí}cî{F-]må³ê[3ó\$û§Ú^9 ¶8L6°Û£óV»Ë¼ò\n&Ù.hïÑ2]ÈE{V2ÎBAhXÓ?8:ºæëDàS5kZ\rYÄ@e\\Õù%°7?Ô`(¶¸ç ë@:¥ÕpvußqÔ~ã繩½ÊGfñÍh`Wq®ô^(ï-ÆÎ/«ëèÄÉêäoßq÷èj©®kH¢ûÍ&eäþ\0ïáùûü`ÃÁa¨ù|¹}X^dûH¹ Dת¯uå!G\\,q©4¦^xxFøo½4¸×<5Þù&Ð6tPA|k\r9 ®²¸A&£÷JU&!Ú [´[hÊh
n0¡·}vîw ,aóø{³>¨\0*\0O2%,¨áày³+b:aÀSLÜ×X©@n¢ý5>xC~ê\$Ò£0\\ï.J,W 4FÎ_c´<¨ÇèaiÀÕ¿}y£¿Oo7¼>rȨÅ\"vas\"ü¨É-ÂyQYúB`-ôç\0ÚòúÆ©ÛÐàtÈsUêåS(~\n+¹àDÞÐÖQtÄ!óÖØ\0(ûYTÈÔöCXz@À¨Ô¾ °¡Æy®QQ|EZ)8PSÚ_·Jt*;EÚ5·b~AfQ+3@®è>Ê3QïxçÞj÷¬7)̯}Àã'» =\\´ºËý 1è]ÔHsl×Ìò@]à+´Ê¦ÿ½â¸S{O\"b¾×©ÀéðÇè oî̺Úibß\0§áßÕçÉ¡Õð±?¼rï\"vjeÑêGCEïÃ~LÁTß&/Ê~Vü¿.¯ÌÍò/¢×æçÒ~v¢x|ôß?Pèo>üÑÎüÁ¿]?Îy¡¯{2»;ø×2kããÞçø*ÂïÀ|^»+jZâÉÁ «Ý¾°ÃG÷¯~Çà_õÁ¥¿_Çüò|)¾÷ò02üì _åñáòàÿ£Òíí@Mmö4¨}\0ßBFxé ¼ß§ :Í_¨àÑõà þ³ë>¨=J-@Wô|ý»ø_CUîÏò¡C÷\"ü¿ò~ì\nuË.X\\
ϬRÒz£äßÀþó¿XßÇý·é\\(MÙD|âªr#ìÿ/¨ªQêUÞ_åÔJwÖÿé÷B þÅóÕOI=nxª0èlãÕ¡×ìÿ+Ôjüc-J1&X÷È[øt³¨aüÀo§*Ä
Ä ])|Q5à@T d0ü8l/çÊ* ¦¥@V|®À¶îÉÖÎí»îè!ot°f£óéiîµLôÈp'ºÒb(7½ß&æ2êÁͨî.èa<s¿/÷hxH=Vg)Ó æ°\$h\0\$
®ÆãÍ¡4Æôâm
NPÓä
йémAõH%hmë´Êc\"Üéé\n·á#Ì´ÇcâN\rþ= áÛ5a¬ ¨@ÓTÍ1
4Ó\"¢¢*\"YG&Τ\n˼¤Ln\r¼°÷qIo:¹aÇ\r\rÈMf D\0è\0²hÜ\r^?B\$à 8#aT` ßbèÍæ¾ØÄPPA¸8jEn¼/¡¾m\"!ðc3æôaÐeðúá_\0Ò§ë¼ûjvEìEt61Ôðs\0N~ù\" @îNÂOÁ0\"(¼0GÀæ%Ë`9áó?B²OaÓxd°CÆX\0§î=T\rì*aX!C A<Þ{rÄ*");}elseif($_GET["file"]=="jush.js"){header("Content-Type: text/javascript; charset=utf-8");echo
lzw_decompress("v0F£©ÌÐ==ÎFS ÐÊ_6MƳèèr:ECI´Êo:CXc\ræØJ(:=E¦a28¡xð¸?Ä'i°SANNùðxs
NBáÌVl0çS ËUl(D|ÒçÊP¦À>E㩶yHchäÂ-3Ebå ¸b½ßpEÁpÿ9.Ì~\n?Kb±iw|È`Ç÷d.¼x8EN¦ã!Í23©á\rÑYÌèy6GFmY8o7\n\r³0¤÷\0DbcÓ!¾Q7Шd8Áì~¬N)ùEг`ôNsßð`ÆS)ÐOé·ç/º<xÆ9o»ÔåµÁì3n«®2»!r¼:;ã+Â9CȨ®Ã\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ãê/m6PÔ@ÃEQàÄ9\n¨V-Áó\"¦.:åJÏ8weÎq½|سXÐ]µÝY XÁeåzWâü 7âûZ1íhQfÙãu£jÑ4Z{p\\AUËJ<õkáÁ@¼ÉÃà@}&L7U°wuYhÔ2¸È@ûu Pà7ËAhèÌò°Þ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(¸PNµìq[g¸Árÿ&Â}PhÊà¡ÀWÙí*Þír_sËPhà¼àÐ\nÛËÃomõ¿¥ÃêÓ#§¡.Á\0@épdW ²\$Òº°QÛ½Tl0 ¾ÃHdHë)ÛÙÀ)PÓÜØHgàýUþªBèe\rt:Õ\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îrf\0¢F
·ºvÒÌG®ÁI@é%¤+Àö_I`¶ÌôÅ\r. N²ºËKI
[ÊSJò©¾aUfSzû«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\rP¿%¢Ñ\r}b/Î\$5§PëCä\"wÌB_çÉUÕgAtë¤ô
å¤
é^QÄåUÉÄÖjÁí Bvhì¡4)¹ã+ª)<j^<Lóà4U* õBg ëÐæè*nÊè-ÿÜõÓ 9O\$´Ø·zyM3\\9Üè.o¶Ìë¸E(iåàÄÓ7 tßé-&¢\nj!\rÀyyàD1gðÒö]«ÜyRÔ7\"ð槷~ÀíàÜ)TZ0E9MåYZtXe!Ýf@ç{Ȭyl 8;¦R{ë8Ä®ÁeØ+ULñ'F²1ýøæ8PE5- Ð_!Ô7
ó [2JËÁ;HR²éǹ8pç²Ý@£0,Õ®psK0\r¿4¢\$sJ¾Ã4ÉDZ©ÕI¢'\$cLRMpY&ü½Íiçz3GÍzÒJ%ÁÌPÜ-[É/xç³T¾{p¶§zCÖvµ¥Ó:V'\\KJa¨ÃM&º°£Ó¾\"à²eo^Q+h^âÐiTð1ªORäl«,5[Ý\$¹·)¬ôjLÆU`£SË`Z^ð|r½=Ð÷nç»TU 1HykÇt+\0váD¿\r <àÆìñjGtÆ*3%kYܲT*Ý|\"CülhE§(È\rÃ8r×{Üñ0å²×þÙDÜ_.6иè;ãürBjO'Û¥¥Ï>\$¤Ô`^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(~ÀÌ ê\rE°ÛprùQVFHl£Kj¦¿äN&j!ÍH`_bh\r1 ºn!ÍÉz°¡ð¥Í\\«¬\ríÃ`V_kÚÃ\"\\×'V«\0ʾ`ACúÀ±Ï
¦VÆ`\r%¢ÂÅì¦\rñâk@NÀ°üBñí¯ ·!È\n\0Z6°\$d ,%à%laíH×\n#¢S\$!\$@¶Ý2±I\$r{!±°J2HàZM\\ÉÇhb,'||cj~gÐr
`¼Ä¼º\$ºÄÂ+êA1ðEÇÀÙ <ÊL¨Ñ\$âY%-FDªdLç³ ª\n@bVfè¾;2_(ëôLÄп²<%@Ú,\"êdÄÀNerô\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>m1\0I@Ô9T34+Ô@eGFMCÉ\rE3ËEtm!Û#1ÁD @H(Ón ÃÆ<g,V`R]@úÂÇÉ3Cr7s~ÅGIói@\0vÂÓ5\rVß'¬ ¤ ΣPÀÔ\râ\$<bÐ%(DdPWÄîÐÌbØfO æx\0è} Üâlb &vj4µLS¼¨Ö´Ô¶5&dsF Mó4ÌÓ\".HËM0ó1uL³\"ÂÂ/J`ò{Çþ§ÊxÇYu*\"U.I53Q3Qô»Jg 5
sàú&jÑÕuÙЪGQMTmGBtl-cù*±þ\r«Z7Ôõó*hs/RUV·ðôªBN˸ÃóãêÔà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`ZJ eçºÝ@Ceíëa\"mób6Ô¯JRÂÖT?Ô£XMZÜÍÐÍòpèÒ¶ªQv¯jÿjV¶{¶¼ÅC\rµÕ7Tʪ úí5{Pö¿]\rÓ?QàAAÀèÍ2ñ¾ V)Ji£Ü-N99fl JmÍò;u¨@<FþÑ ¾ejÒĦI<+CW@ðçÀ¿ZlÑ1É<2ÅiFý7`KG~L&+NàYtWHé£w ÖòlÒs'gÉãq+Lézbiz«ÆÊÅ¢Ð.ÐÇzW²Ç ùzdW¦Û÷¹(y)vÝE4,\0Ô\"d¢¤\$Bã{²!)1U5bp#Å}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¾Ê,ÜKaN~ÏÀÛìú,ÿ'íÇM\rf9£w!x÷x[ÏØG8;xAù-IÌ&5\$D\$ö¼³%
ØxѬÁÈ´ÀÂ]¤õ&o-39ÖLù½zü§y6¹;u¹zZ èÑ8ÿ_Éx\0D?X7«y±OY.#38 ÇeQ¨=Ø*Gwm ³Ú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Èqyéxé+|7Í{7Ë|w³}¢£EûW°Wk¸|Jضåxm¸q xwyj»#³e¼ø(²©¸Àßþò³ {èßÚ y »M»¸´@«æÉ°Y(gÍ-ÿ©º©äí¡¡ØJ(¥ü@ó
;
yÂ#S¼µYÈp@Ï%èsúo9;°ê¿ôõ¤¹+¯Ú ¥;«Áú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×ÉWtvÄ\\OxWJ9È×R5·WiMi[Kf(\0æ¾dÄÒè¿©´\rìMÄáÈÙ7¿;ÈÃÆóÒñçÓ6KʦIª\rÄÜÃxv\r²V3ÕÛßɱ.ÌàRùÂþÉá|á¾^2^0ß¾\$ QÍä[ã¿D÷áÜ£å>1'^X~t1\"6Lþ+þ¾AàeáæÞåIç~åâ³â³@ßÕõpM>Óm<´ÒSKÊç-HÉÀ¼T76ÙSMfg¨=»ÅGPÊ°PÖ\r¸é>Íö¾¡¥2Sb\$C[Ø×ï(Ä)Þ%Q#G`uð°ÇGwp\rkÞKezhjÓzi(ôèrO«óÄÞÓþØT=·7³òî~ÿ4\"ef~ídôíVÿZ÷U-ëb'VµJ¹Z7ÛöÂ)T£8.<¿RMÿ\$ôÛØ'ßbyï\n5øÝõ_àwñΰíUð`eiÞ¿Jb©gðuSÍë?Íå`öáì+¾Ïï Mïgè7`ùïí\0¢_Ô-ûõ_÷?õF°\0õ¸Xå´[²¯J8&~D#Áö{PØô4ܽù\"\0ÌÀý§ý@Ò¥\0F ?* ^ñï¹å¯wëÐ:ð¾uàÏ3xKÍ^ów¼¨ß¯y[Ô(æµ#¦/zr_g·æ?¾\0?1wMR&M¿ù?¬StT]Ý´Gõ:I·à¢÷)©Bï vô§½1ç<ôtÈâ6½:W{Àôx:=ÈîÞóø:Â!!\0xÕ£÷q&áè0}z\"]ÄÞoz¥ÒjÃw×ßÊÚÁ6¸ÒJ¢PÛ[\\ }ûª`S\0à¤qHMë/7BP°ÂÄ]FTã8S5±/IÑ\r\n îO¯0aQ\n >Ã2j
;=Ú¬ÛdA=p£VL)Xõ\n¦`e\$TƦQJÍó®ælJïÔîÑyIÞ ä:ÑÄÄBùbPÀûZ͸n«ª°ÕU;>_Ñ\n ¾õëÐÌ`ÔuMòÂÖm³ÕóÂLwúB\0\\b8¢MÜ[z&©1ý\0ô ¡\rTÖ× +\\»3ÀPlb4-)%Wd#\nÈårÞåMX\"Ï¡ä(Ei11(b`@fÒ´SÒójåDbf£}rï¾ýDR1
´bÓAÛïIy\"µWvàÁgC¸IÄJ8z\"P\\i¥\\m~ZR¹¢vî1ZB5IÃi@x·°-uM\njKÕU°h\$oJϤ!ÈL\"#p7\0´ P\0D÷\$ GK4eÔÐ\$\nGä?ù3£EAJF4àIp\0«×F4±²<f@ %q¸<kãw àLOp\0xÓÇ( G>ð@¡ØçÆÆ9\0TÀìGB7 - øâG:<Q #èÓÇ´û1Ï&tz£á0*J=à'J>ØßÇ8q¡Ð¥ªà OÀ¢XôF´àQ,ÀÊÐ\"9®pä*ð66A'ý,yIFR³TÏý\"÷HÀR!´j#kyFÀàe¬z£ëéÈðG\0p£aJ`C÷iù@T÷|\nIx£K\"´*¨Tk\$c³òÆaAh! \"úE\0OdÄSxò\0T ö\0à!FÜ\nU|#S& IvL\"
ä\$hÐÈÞEAïN\$%%ù/\nP1²{¤ï) <ð L å-R1¤â6¶<@O*\0J@q¹Ôª#É@ǵ0\$t|]ã`»¡ÄA]èÍìPáCÀp\\pÒ¤\0ÒÅ7°ÄÖ@9©bmr¶oÛC+Ù]¥JrÔfü¶\rì)d¤Ñ^hßI\\Î. gÊ>¥Í×8ÞÀ'HÀfrJÒ[rço㥯.¹v½ï##yR·+©yËÖ^òùF\0á±]!ÉÒÞ++Ù_Ë,©\0<@M-¤2WòâÙR,ce2Ä*@\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\0MÈ>lO4ÅS 7cÍì\"ìߧ\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ðO0±0]'
>¡ÝÉ:ÜêÅ;°/ÂwÒôäì'~3GÎ~Óäþ§c. þòvT\0cØt'Ó;P²\$À\$øÐ-s³òe|º!@dÐObwÓæc¢õ'Ó@`P\"xôµèÀ0O5´/|ãU{:b©R\"û0
ÑkÐâ`BD\nkPãc©á4ä^ p6S`Ü\$ëf;Î7µ?lsÅÀßgDÊ'4Xja A
E% 86b¡:qr\r±]C8ÊcÀF\n'Ñf_9Ã%(¦*~ãiSèÛÉ@(85 TË[þJÚ4I
l=°QÜ\$dÀ®hä@D -Ù!ü_]ÉÚHÆk6:·Úò\\M-ÌØðò£\rFJ>\n.qeGú5QZ´' É¢½Û0îzPà#ŤøöÖéràÒít½ÒÏËþ<QT¸£3D\\¹ÄÓpOE¦%)77Wt[ºô@¼\$F)½5qG0«-ÑW´v¢`è°*)RrÕ¨=9qE*K\$g íA!åPjBT:Kû§!×÷H R0?6¤yA)B@:Q8B+J5U]`Ò¬:£ðå*%Ip9Ìÿ`KcQúQ.B±LtbªyJñEêTé¥õ7ÎöAmÓä¢Ku:ðSji 5.q%LiFºTr¦Ài©ÕKÒ¨z55T%UUÚ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ضÕì7VLZu
e¨ëXúèºB¿¬¥Bº¡Z`;®øJ]òÑäS8¼«f \nÚ¶#\$ùjM(¹Þ¡¬aGí§Ì+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£ÆpFNÙÖ¶*Õ¨Í3kÚ0§D{Ôø`qÒ²Bqµe¥DcÚÚÔ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ÁÜlBt9-oZüL÷£¥ÂåpËx6&¯¯MyÔÏsÒ¿èð\"ÕÍèRIWU`c÷°à}l<|Â~Äw\"·ðvI%r+Rà¶\n\\ØùÃÑ][Ñ6&Á¸ÝÈÃaÓºìÅj¹(ÚðTÑÀ·C'
´ '%de,È\nFCÅÑe9C¹NäÐ-6Ueȵý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Ì®8DeG`ÛÂöL±õ,dË\"CÊÈÖB-Ä°(þp÷íÓp±=àÙü¶!ýkØÒļï}(ýÑÊBkr_Rîܼ08a%Û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+q8\na·RãBÜ|°R×ê¿Ýmµ\\qÚõgXÀ Ï0äXä«`nîFîìO pÈîHòCjd¡fµßEuDVbJɦ¿å:±ï\\¤!mɱ?,TIaØaT.L],J??ÏFMct!aÙ§RêFGð!¹Aõ»rr-pX·\r»òC^À7áð&ãRé\0ÎÑf²*àA\nõÕHáã¤yîY=Çúè
l<¹AÄ_¹è +ÎtAú\0B<Ay
(fy1Îc§O;pèÅá¦`ç4СMìà*îfê 5fvy {?©àË:yøÑ^câÍu'8\0±¼Ó±?«gÓ 8BÎ&p9ÖO\"zÇõrs0ºæB!uÍ3f{×\0£:Á\n@\0ÜÀ£pÙÆ6þv.;àú©Êb«Æ«:J>Ëé-ÃBÏhkR`-ÜñÎðawæxEj©
÷Ár8¸\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ÊÔúku3MÎæ~ú¤Ó5V àj/3úÓ@gG}D龺BÓNq´Ù=]\$é¿IõÓ3¨x=_jXÙ¨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à\$mv¨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á·¸q4uÎ|ÕÛQÛàõpýi\$¶@oxñ_<Àæ9pBU\"\0005 iä×»¸Cûp´\nôi@[ãÆ4¼jÐ6bæP\0&F2~Àù£¼ïU&}¾½¿É ÌDa<æzx¶k£=ùñ°r3éË(l_
FeF4ä1K \\Óldî ä1H\r½ùp!%bGæXfÌÀ'\0ÈØ '6Àps_á\$?0\0~p(H\n1
W:9ÕÍ¢¯`æ:hÇBègBk©ÆpÄÆót¼ìEBI@<ò%øÀù` êyd\\Y@DP?|+!áWÀø.:Lev,Ð>qóAÈçº:îbYé@8d>r/)ÂBç4ÀÐÎ(·`|é¸:t±!«Á¨?<¯@ø«/¥ S¯P\0Âà>\\æâ |é3ï:VÑuw¥ëçx°(®²4ÇZjD^´¥¦Lý'¼ìÄC[×'ú°§®éjº[ E¸ó uã°{KZ[s6S1Ìz%1õc£B4B\n3M`0§;çòÌÂ3Ð.&?¡ê!YAÀI,)ðålW['ÆÊIÂTjè>F©¼÷S§ BбPá»caþÇuï¢NÝÏÀøHÔ LSôî0ÕY`ÂÆÈ\"il\rçB²ëã/ôãø%PÏÝNGô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Ò+Σ¥sfL9QÒBÊÉóäbÓà_+ï«*Su>%0©
8@l±?L1po.ÄC&½íÉ BÀÊqh¦óÁz\0±`1á_9ð\"è!\$ø¶~~-±.¼*3r?øòÀds\0ÌõÈ>z\nÈ\00 1Ä~ôJð³ðú|SÞô k7gé\0úKÔ d¶ÙaÉîPgº%ãwDôê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=óáOX«ß¶Cù>\n²
|wá?ÆFÅêÕaÏ©UÙåÖb N¥YïÉh½»é/úû)ÞGÎ2ü¢K|ã±y/\0éä¿Z{éßP÷YG¤;õ?Z}T!Þ0Õ=mN¯«úÃfØ\"%4aö\"!Þúºµ\0çõï©}»î[òçܾ³ëbU}»ÚmõÖ2±
ö/tþî%#.ÑØÄÿseBÿ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ì >½Yp#Ð-f0îÃʱaª,>»Ü`ÆÅàPà:9o·ð°ov¹R)e\0Ú¢\\²°Áµ\nr{îXÒøÎ:A*ÛÇ.Dõº7»¼ò#,ûN¸\rEÔ÷hQK2»Ý©¥½zÀ>P@°°¦ T<ÒÊ=¡:òÀ°XÁGJ<°GAfõ&×A^pã`©ÀÐ{ûÔ0`¼:ûð);U !Ðe\0Ïcp\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Ù\nIk@ºã¦[àÈϦ²#?Ùã%ñèË.\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*Rn¬§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éDYzG4#YD
ö
ºp) ºHúp&â4*@/: áT ¦aH5ëh.A>ï`;.îYÁa Âòút/ =3
°BnhD?(\n!ÄBús\0ØÌDÑ&DJ)\0jÅQÄyhDh(ô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+ͽpxÈiD(ìº(à<*öÚ+ÅÕE·ÌT®¾ BèS·CÈ¿T´æÙÄ eAï\"á|©u¼v8ÄT\0002@8D^ooø÷|Nùô¥ÊJ8[¬Ï3ÄÂõîJz׳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½åPAª\0:ÜnÂÆ` ÚèQ³>!\r6¨\0V%cbHF×)¤m&\0B¨2Ií5Ù#]úØD>¬ì3<\n:MLðÉ9CñÊ0ãë\0¨(á©H\nþ¦ºM\"GR\n@éø`[Ãó\ni*\0ð)üìu©)¤«Hp\0N À\"®N:9qÛ.\r!´JÖÔ{,Û'æÙ4
BúÇlqŨXc«Â4ßN1ɨ5«WmÇ3\nÁF`'Òxà&>z>N¬\$4?óÃïÂ(\nì¨>à ëϵPÔ!CqͼpqGLqqöG²yÍH.«^à\0zÕ\$AT9FsÐ
¢D{ía§øcc_GÈz)ó³ Ü}QÆÅhóÌHBÖ¸<y!LÛ!\\²î ø'H(ä-µ\"in]ij\\¨!Ú`MH,gÈí»*ÒKfë*\0ò>Â6¶à6ÈÖ2óhJæ7Ù{nqÂ8àßôÉHÕ#cHã#\r:¶7Ê8àÜZ²ZrD£þß²`rG\0äl\n®Ii\0<±äãô\0Lg
~¨ÃE¬Û\$¹ÒP\$@ÒPƼT03ÉHGH±lÉQ%*\"N?ë% Î\nñCrWÉC\$¬pñ%uR`ÀË%³òR\$<`ÖIfxª¯÷\$/\$¥\$O
(Ë\0æË\0RY*Ù/ ê\rÜC9ï&hhá=IÓ'\$RRIÇ'\\a=EÔòu·'ÌwIå'Tüÿ©¾ãK9%d¢´·!üÀÊÊÀÒj
ì¡íÓÊ&Ðæv̲\\=<,Eù`ÛYÁò\\²¤*b0>²r®à,dpdÌ0DD Ì`â,T 1Ý% P¤/ø\ròb¹(£õJÑèÍîT0ò``ƾÞèíóJt©©Ê((dÇʪáh+ <É+H%iÈô²#´` ÚÊÑ'ô£B>t¯JZ\\`<Jç+hR·ÊÔ8îàhR±,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ÐnoLJ°ÅÓÂ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»
³¼!033=Lù4|È¡à+\"°Êé4´Ëå7Ë,\$¬SPM\\±Î?JYÌ¡¹½+(Âa=K¨ì4¤³C̤<Ð
=\$,»³UJ]5h³W &tÖI%é5¬Ò³\\M38g¢Í5HN?W1H±^ÊÙÔ¸YÍØ Í.N3M4Ã
³`i/P7ÖdM>d¯/LRÎÜâ=K60>¯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)¸Xr1ÑnJÃIÌ´S£\$\$é.Î9Ôé²IÎÒ3 ¨LÃl¯Î9äÅCN #Ô¡ó\$µ/Ôé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ÇIAxpÜöE=O¹<ü²5ÏÎý2¸O?d´´`NòiOÿ>þ3½P ?¤òÔOmúSðMôˬ·=¹(ãdã¤AÈ9\0í#üä²@9DÁÉ&Üýò? Ði9»\nà/ñAÝóòÈA¤ýSËPo?kuN5¨~4ÜãÆ6Ø=ò*@(®N\0\\ÛdGåüp#è¤> 0À«\$24z )À`ÂWð +\080£è¦ ¤ªäz\"TÐä0Ô:\0\ne \$rM=¡r\n²NP÷Cmt80ðú #¤ØJ= &ÐÆ3\0*Bú6\"éèú#Ì> (Q\nðê´8Ñ1C\rt2EC\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ÐÖ jpµGAoQoG8,-sÑÖðÔK#);§E5´TQÑGÐ4Ao\0 >ðtMÓD8yRG@'PõC° ô<PõCå\"K\0xüÔ~\0ªei9Ðìv))ѵGb6±H\r48Ñ@M:³FØtQÒ!H{R} ôURpÍÔO\0¥I
t8¤ØðûÎÇ[D4FÑD#ÊÑ+D½'ôMÊÀ>RgIÕ´QïJ¨UÒ)EmàüTZEµ'ãê£iEÝ´£ÒqFzAªº>ý)TQ3HÅ#TLÒqIjNT½¼
&CøÒhX\nTÑÙK\0000´5¢JHÑ\0FE@'ÑFp´hS5F\"ÎoÑ®e%aoS E) DU «QFmÎÑ£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ðÿÕSG`\nÉ:P°j7R @3üÑ\n üã÷â£DÓ æúLÈϼ èë\0ùQ5ôµ©CPúµSMP´v4º?h hëTD0úÑÖàõ>&ÒITxôO¼?@U¤÷R8@%ÔõK§NåKãóRyEE#ýù @ýÃøä%Là«Q«Q¨µ£ª?N5\0¥R\0úÔTëFåÔRSí!oTEÂC(϶Èýĵ\0?3iîSS@U÷QeMµ KØ\n4PÕCeS\0NC«POõ! \"RTûõS¥NÕÁU5OU>UiIÕPU#UnKPô£UYTè*ÕC«U¥/\0+º¸Å)ÈÚ:ReAà\$\0ø¤xòÇWDº3Ãêà`üÚüçU5ÒIHUYô:°P õe\0MJiµÃýQø>õ@«T±C{ÕuÑì?Õ^µv\0WR]U}Cöê1-5+Uä?í\rõW<¸?5JU-SXüÕLÔß \\tÕ?ÒsMÕbÕVÜt§T>ÂMU+Ö EÅcÏÔ9Nm\rRÇCý8SÇX'RÒéXjCI#G|¥!QÙGhtðQ¸ý )<¹YÐ*ÔÐRmX0üôö½M£õOQßYýhÀ«ßduÕ¤ÕZ(ýAo#¥NlyN¬VZ9IÕºM¦V«ZuOÕ
TÕTÅEÕÖ·SÍeµµÖÊ\nµXµªSÛQERµ³ÔÙ[MF±VçO=/õ¨>õgÕ¹TíVoUT³ZN*T\\*ÃïÐ×S-pµSÕÃVÕqÒM(ÏQ=\\-UUUVCÄ×ZØ\nuV\$?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õ)4RÀý;õáViD%8À)Ç^¥Qõé#h ´HÂX þ\$Nýx´#i xûÔXRõ'Ô9`m\\©¨\nEÀ¦Q±`¥bu@×ñN¥dT×#YYýµ®GV]j5#?L¤xt/#¬å#é
½OPÕëQæ¢6££Ï^í ðüÖØM\\R5t´Ópà*XV\"WÅD oRALm\rdGN ÕÖÀú6p\$PåºE5Ôý©Tx\n+C[¨ôVýÖ8UDu}Ø»F\$.ªËQ-;4ȱNX\n.XñbÍ\0¯b¥)#NýG4KØÐZS^×´M¶8Øód\"C¬>ÅÕdHe\nöY8¥Ñ.ê ú°ÒFúD½W1cZ6QâKHü@*\0¿^¸úÖ\\QßF4U3Y|=Ó¤éEÔÛ¤¦?-47YPmhYw_\rVe×±M±ßÙe(0¶ÔFÕ\r !ÒPUIuÑ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ïUTàû'<>ÈýõôHC]¨VÑ7jj3v¥¤å`0ÃèÈ23ö°Ðòxû@Uk \n:Si5Õ#Yì-wîÕàéM?céÒMQÅGQÕÑb`ò\0@õËÒ§\0M¥à)ZrKXûÖÙWl²öÍlå³TM×D\r4QsS¥40ÑsQÌõmYãhd¶ÂC`{VgEÈ\n»XkÕà'Óè,4ú¼¹^í¢6Æ#<4éNXnM):¹·OM_6dæõ¸Ãõ[\"KU²nÖ?l´x\0&\0¿R56T~> ôÕ¸?Jn ÏZ/iÒ6ôÎÚglͦÖUÛáF}´.£¼JLöCTbM4ÍÓcLõTjSD}JtZªµÇ:±L´d:Ezʤª>ÖV\$2>µ¢[ãpâ6öÔR9uêW.?1®£RHuèÛR¸?58Ô®¤íDÝÆu£çpûcìZà?r×» Eaf°}5wY´ëåÏÒêÅWwT[Sp7'Ô_aEk \"[/i¥¿#ÿ\$;m
fØ£WOüôÔFò\r%\$Íju-t#<Å!·\n:«KEA£íÒÑ]À\nUæQKEÀ #¿Xå¨÷5[Ê>`/£ÍDµÊÖVEpà)åI%ÏqßÜûníx):¤§le¢´Õ[eÕ\\eV[j
£éÑ7 -+ÖßGWEwt¯WkEÅ~uìQ/mõ#ÔW`ýyuÇ£DÝAö'×±\r±ÕOD )ZM^³u-|v8]g½hö×ÅLàW\0øÈû6ËX=YÔd½Q7ÏÏ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_h9 Ù÷N
Å]%|¥7ËÖ];ï|ñµ ßXýÍ9Õ|åñ×ÌG¢¨[×Ô\0}UñçßMCI:Ò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ÀpElpSÂJSÝ¢½ö6à_¹(ů©Äéb\\OÆÊ&ì¼\\Ð59\0ûÂ9nñøD¸{¡\$á¸Kv2 d]èv
CÕþÅÕ?tf|WÜ:£Ô¨p&¿àLnÎè³î{;çÚGR9øT.y¹üïI8¹´\rl° ú Tè n3¼öð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&«xl8sah1è|BÉDxBÞ#VV×`Wâa'@¬ X_?\nì¾ _â. ØP¼r2®bUarÀI¸~áñ
Sàú\0×
\" 2ÖþÀ>b;
vPh{[°7a`Ë\0ê˲jo~·ûþvÍÙ|fv4[½\$¶«{ó¯P\rvæBKGbpëÈÅøO5Ý 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à>ñÀ6ONnä!;áñ@twë^FéLà;׺,^aÈ\ra\"ÞÀÚ®'ú:vàJe4Ã×;ñ_d\r4\rÌ:ÛüÀ¬Sà2[cXÿʦPl\$¹Þ£iwåd#B bÎפõ`:Ï~ <\0Ñ2Ù·RÂÆPÈ\r¸J8D¡t@ìEè\0\rÍ6öóäÞ7½äYÏ£ú\"åäÀ\rü¦À3¡.+«z3±;_ÊvLÝäÓwJ¿94ÀIJa,A¦ñ¯;s?ÖN\nR!§ÝOm
sÈ_æà-zÛwÛzÜ7¡ÍÅzî÷Mo¿¥æ\0¢aÅݹ4å8èPfñYå?òieBÎSà1\0ÉjDTeK®UYSå?66R ¦cõ6Ry[c÷°5Ù]BÍÖRù_eA)&ù[åXYRW6VYaeUfYeåwU¹båwEë°Ê;z¤^W«9äקäÝõë\0<Þèeê9SåΤdaª _-îáL×8Ç
ÍQöèTH[!<p\0£Py5|#êP³ ×9và2Â|Ǹáfaoá,j8×\$A@kñ¿a˽bócñÈf4!4¨¶cr,;æöbÆ=Â;\0°øź
cdÃæX¾bìxaRx0Aãh£+wðxN[ÜB·pÚ¿wTÀ8T%Ml2ཡð}¡Ès.kY0\$/èfU=þØsgKáM õ?ÿç`4c.Ôø!¡&åg°ûfà/þf1=¯V AE<#̹¡f\n») ëNpòã`.\"\"»Aç¤ãüq¸X Ù¬:aÉ8¹f¯VsóGÞr:æVÞÆcÔgVlg=`ã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Ñù?³û-à168>A¤aÈ\r¦y0 ÖiJ«} ๩ Ð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.ãæ7Frbä ÈjèA5î
á¡a1úÚhZCh:%¹ÎgU¢ðD9ÖÅÉ×¹Ïé0~vTi;VvSwØ\rÎ?àÇf²£
ÿ¥nÏiYìaº¬3 Î9Õ,\nÃr,/,@.:èY>&
FÑ)ú¶}b£èiOÝiæ:dèAnc=¤L9Oh{¦ 8hY.ÙÀ®¾®
üÇ\r¬Ö£Àé1Q¯U ChôeÿO°+2oÌÎìÞN÷§øzpè¢(þ]Óhå¢Z|¬O¡cÑzDáþ;õT\0j¡\0
8#>ÎÁ=bZ8Fjóìé;íÞºTé
¡w®Í)¦ýøN`æ먤Ã
B{ûz\ró¡cÓè|dTGi/ûú!iÊ0±¼ø'`Z:CHï(8Âê`V¥Úãöª\0Üꧩ£WïßǪÕzgG¾
½²-[ÃÐ iêN\rqºé«no Æ¥fEJý¡apb¹ê}6£
Õ=o¤,tèY+ö®EC\rÖPx4=¼¾Ù@¦.F£[¡zqçÜèX6:FG¨ #°û\$@&ab¤þhE:²å¬ä`¶S11g1©þ2uhY¬_:Bß¡dcï*ÿ\0úÆFYF:Ë£ªnØÌ=Û¨H*Z¼Mhk/ë¡zÙ¹ï´]Áh@ôæ©Øã1\0øZKù¢ëÎÆè^+º,vfós®>¤Oã|èÀÊsÃ\0Ö5öXéîѯF÷n¿Ar]|ÏIi4è
þ ØÂC° h@ع´cߥ¨6smOÃågX¬V2¦6g?~ÖÃYÕÑ°súcl \\R\0¨cA+1°ùÌé\n(ÑúÃÌ^368cz:=z÷(äø ;裨ñsüF¶@`;ì,>yTßï&d½L×ÿ%Ò-ëCHL8\rÇbû°°£úMj]4Ym9üÛüÐZÚBøïP}<ûàX²¯Ì¥á+gÅ^ØMÞ + B_Fd¬XølówÈ~î\râ½è\":ÔêqA1X¾ìæ²Ðø¯3ÖÎEáh±4ßZZÂó¸&
ææ1~!Nfã´öo\nMeÜà¬îëXIÎíG@V*X¯;µY5{V\nè»ÏTéz\rF 3}m¶Ôp1í[>©tèe¶wæë@VÖz#2Äï iôôÎ{ã9pÌ»ghæ+[elU¦ÛAßÙ¶Ó¼i1Ä!¾ommµ*Kàê}¶°!íÆ³í¡®Ý{me·f`mèCÛz=nÞ:}g° TmLu1FÜÚ}=8¸ZáíèOÛmFFMf¤
OOðîáÀèøß/¼éõ¸ÞåþVoqj³²èn!+½òµüZ¨ËI¹.Ì9!nG¹\\3a¹~
O+Îå::îK@\nÚ@¤Hph´\\BÄõdmfvCèÓPÛ\" æ½Û.nW&ên¢øHYþ+\r¶Äz÷i>MfqÛ¤îºùÝQc[H+æÀo¤Ñ*ú1'¤÷#ÄEwD_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þöxl¦sC|ï½¾bo2äXª>Mô\rl&»Ç:2ã~ÛÑcQ²îò²æoÑÞdá-þèUÜRoYnM;n©#ß\0P¾fðÚPo׿(CÚv<ʬø[òoÛ¸û×fÑ¿ÖüÁ;ßáºõ[úY.o®Up¿®pUø. ©B!'\0òã<Tñ:1±À¾ ã¤î<ðnîF³ðI¢Ç´V0ÊÇRO8wøÎ,aFú¼É¥¹[´Î
ñYOù«/\0Ùox÷ÇQð?§°:ÙëÆè`h@:«¿öÑ/Mím¼x:Û°c1¤Öàû¯ív²;è^æØÆ@®õ@£úð½ÂÇ\n{¯¼Âîà;ç´B¼í¸8º gåä\\*gåyC)ÛE^ýOÄh ¡³¦Au>Æèü@àDÌYæ¼íâ`o»<>ÀpÄ·q,Y1Q¨Á߸/qg\0+\0âæåDÿç?¶þ î©Úßîk:ù\$©û¬í×¥6~I¥
=@íÑ!¾ùvÚzOñ²â+ÍõÆ9Çi³¼aïðêû
gòðôÿ?0Gnq²]{Ò¸,FáÃøO¡âÞ <_>f+¢,ñÌ »Ôñ±&ôðí·¼yêÇ©Oü:¬U¯LÆ\nÃúI:2³¿-;_Ä¢È|%éå´¿!Îõf\$¦Xr\"KniîñÀÐ\$8#g¤t-r@LÓåè@S£<rN\nD/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ï}ôa8yaŶ®\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\0i±ªÓ²Þ»\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,$j,$Hb,$Ob,$Yb,$k,$Bc,$Fc,$ba,$Yc,$y,$ca,$od,$je,$Ne,$dg,$Kc,$T,$Lg,$Rg,$Yg,$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_bool("session.cookie_secure");@ini_set("session.use_trans_sid",false);if(!defined("SID")){session_cache_limiter("");session_name("adminer_sid");$Ee=array(0,preg_replace('~\?.*~','',$_SERVER["REQUEST_URI"]),"",$ba);if(version_compare(PHP_VERSION,'5.2.0')>=0)$Ee[]=true;call_user_func_array('session_set_cookie_params',$Ee);session_start();}remove_slashes(array(&$_GET,&$_POST,&$_COOKIE),$sc);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
get_lang(){return'en';}function
lang($Kg,$ae=null){if(is_array($Kg)){$Qe=($ae==1?0:1);$Kg=$Kg[$Qe];}$Kg=str_replace("%d","%s",$Kg);$ae=format_number($ae);return
sprintf($Kg,$ae);}if(extension_loaded('pdo')){class
Min_PDO
extends
PDO{var$_result,$server_info,$affected_rows,$errno,$error;function
__construct(){global$b;$Qe=array_search("SQL",$b->operators);if($Qe!==false)unset($b->operators[$Qe]);}function
dsn($Lb,$V,$G,$pe=array()){try{parent::__construct($Lb,$V,$G,$pe);}catch(Exception$dc){auth_error(h($dc->getMessage()));}$this->setAttribute(13,array('Min_PDOStatement'));$this->server_info=@$this->getAttribute(4);}function
query($I,$Sg=false){$J=parent::query($I);$this->error="";if(!$J){list(,$this->errno,$this->error)=$this->errorInfo();if(!$this->error)$this->error='Unknown error.';return
false;}$this->store_result($J);return$J;}function
multi_query($I){return$this->_result=$this->query($I);}function
store_result($J=null){if(!$J){$J=$this->_result;if(!$J)return
false;}if($J->columnCount()){$J->num_rows=$J->rowCount();return$J;}$this->affected_rows=$J->rowCount();return
true;}function
next_result(){if(!$this->_result)return
false;$this->_result->_offset=0;return@$this->_result->nextRowset();}function
result($I,$l=0){$J=$this->query($I);if(!$J)return
false;$L=$J->fetch();return$L[$l];}}class
Min_PDOStatement
extends
PDOStatement{var$_offset=0,$num_rows;function
fetch_assoc(){return$this->fetch(2);}function
fetch_row(){return$this->fetch(3);}function
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;}}}$Hb=array();class
Min_SQL{var$_conn;function
__construct($e){$this->_conn=$e;}function
select($Q,$N,$Z,$s,$re=array(),$_=1,$F=0,$Xe=false){global$b,$y;$fd=(count($s)<count($N));$I=$b->selectQueryBuild($N,$Z,$s,$re,$_,$F);if(!$I)$I="SELECT".limit(($_GET["page"]!="last"&&$_!=""&&$s&&$fd&&$y=="sql"?"SQL_CALC_FOUND_ROWS ":"").implode(", ",$N)."\nFROM ".table($Q),($Z?"\nWHERE ".implode(" AND ",$Z):"").($s&&$fd?"\nGROUP BY ".implode(", ",$s):"").($re?"\nORDER BY ".implode(", ",$re):""),($_!=""?+$_:null),($F?$_*$F:0),"\n");$Yf=microtime(true);$K=$this->_conn->query($I);if($Xe)echo$b->selectQuery($I,$Yf,!$K);return$K;}function
delete($Q,$ff,$_=0){$I="FROM ".table($Q);return
queries("DELETE".($_?limit1($Q,$I,$ff):" $I$ff"));}function
update($Q,$P,$ff,$_=0,$If="\n"){$hh=array();foreach($P
as$z=>$X)$hh[]="$z = $X";$I=table($Q)." SET$If".implode(",$If",$hh);return
queries("UPDATE".($_?limit1($Q,$I,$ff,$If):" $I$ff"));}function
insert($Q,$P){return
queries("INSERT INTO ".table($Q).($P?" (".implode(", ",array_keys($P)).")\nVALUES (".implode(", ",$P).")":" DEFAULT VALUES"));}function
insertUpdate($Q,$M,$We){return
false;}function
begin(){return
queries("BEGIN");}function
commit(){return
queries("COMMIT");}function
rollback(){return
queries("ROLLBACK");}function
slowQuery($I,$zg){}function
convertSearch($Sc,$X,$l){return$Sc;}function
value($X,$l){return(method_exists($this->_conn,'value')?$this->_conn->value($X,$l):(is_resource($X)?stream_get_contents($X):$X));}function
quoteBinary($_f){return
q($_f);}function
warnings(){return'';}function
tableHelp($E){}}$Hb=array("server"=>"MySQL")+$Hb;if(!defined("DRIVER")){$Te=array("MySQLi","MySQL","PDO_MySQL");define("DRIVER","server");if(extension_loaded("mysqli")){class
Min_DB
extends
MySQLi{var$extension="MySQLi";function
__construct(){parent::init();}function
connect($O="",$V="",$G="",$sb=null,$Pe=null,$Rf=null){global$b;mysqli_report(MYSQLI_REPORT_OFF);list($Pc,$Pe)=explode(":",$O,2);$Xf=$b->connectSsl();if($Xf)$this->ssl_set($Xf['key'],$Xf['cert'],$Xf['ca'],'','');$K=@$this->real_connect(($O!=""?$Pc:ini_get("mysqli.default_host")),($O.$V!=""?$V:ini_get("mysqli.default_user")),($O.$V.$G!=""?$G:ini_get("mysqli.default_pw")),$sb,(is_numeric($Pe)?$Pe:ini_get("mysqli.default_port")),(!is_numeric($Pe)?$Pe:$Rf),($Xf?64:0));$this->options(MYSQLI_OPT_LOCAL_INFILE,false);return$K;}function
set_charset($La){if(parent::set_charset($La))return
true;parent::set_charset('utf8');return$this->query("SET NAMES $La");}function
result($I,$l=0){$J=$this->query($I);if(!$J)return
false;$L=$J->fetch_array();return$L[$l];}function
quote($cg){return"'".$this->escape_string($cg)."'";}}}elseif(extension_loaded("mysql")&&!((ini_bool("sql.safe_mode")||ini_bool("mysql.allow_local_infile"))&&extension_loaded("pdo_mysql"))){class
Min_DB{var$extension="MySQL",$server_info,$affected_rows,$errno,$error,$_link,$_result;function
connect($O,$V,$G){if(ini_bool("mysql.allow_local_infile")){$this->error=sprintf('Disable %s or enable %s or %s extensions.',"'mysql.allow_local_infile'","MySQLi","PDO_MySQL");return
false;}$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
set_charset($La){if(function_exists('mysql_set_charset')){if(mysql_set_charset($La,$this->_link))return
true;mysql_set_charset('utf8',$this->_link);}return$this->query("SET NAMES $La");}function
quote($cg){return"'".mysql_real_escape_string($cg,$this->_link)."'";}function
select_db($sb){return
mysql_select_db($sb,$this->_link);}function
query($I,$Sg=false){$J=@($Sg?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
false;}if($J===true){$this->affected_rows=mysql_affected_rows($this->_link);$this->info=mysql_info($this->_link);return
true;}return
new
Min_Result($J);}function
multi_query($I){return$this->_result=$this->query($I);}function
store_result(){return$this->_result;}function
next_result(){return
false;}function
result($I,$l=0){$J=$this->query($I);if(!$J||!$J->num_rows)return
false;return
mysql_result($J->_result,0,$l);}}class
Min_Result{var$num_rows,$_result,$_offset=0;function
__construct($J){$this->_result=$J;$this->num_rows=mysql_num_rows($J);}function
fetch_assoc(){return
mysql_fetch_assoc($this->_result);}function
fetch_row(){return
mysql_fetch_row($this->_result);}function
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
__destruct(){mysql_free_result($this->_result);}}}elseif(extension_loaded("pdo_mysql")){class
Min_DB
extends
Min_PDO{var$extension="PDO_MySQL";function
connect($O,$V,$G){global$b;$pe=array(PDO::MYSQL_ATTR_LOCAL_INFILE=>false);$Xf=$b->connectSsl();if($Xf)$pe+=array(PDO::MYSQL_ATTR_SSL_KEY=>$Xf['key'],PDO::MYSQL_ATTR_SSL_CERT=>$Xf['cert'],PDO::MYSQL_ATTR_SSL_CA=>$Xf['ca'],);$this->dsn("mysql:charset=utf8;host=".str_replace(":",";unix_socket=",preg_replace('~:(\d)~',';port=\1',$O)),$V,$G,$pe);return
true;}function
set_charset($La){$this->query("SET NAMES $La");}function
select_db($sb){return$this->query("USE ".idf_escape($sb));}function
query($I,$Sg=false){$this->setAttribute(1000,!$Sg);return
parent::query($I,$Sg);}}}class
Min_Driver
extends
Min_SQL{function
insert($Q,$P){return($P?parent::insert($Q,$P):queries("INSERT INTO ".table($Q)." ()\nVALUES ()"));}function
insertUpdate($Q,$M,$We){$d=array_keys(reset($M));$Ue="INSERT INTO ".table($Q)." (".implode(", ",$d).") VALUES\n";$hh=array();foreach($d
as$z)$hh[$z]="$z = VALUES($z)";$gg="\nON DUPLICATE KEY UPDATE ".implode(", ",$hh);$hh=array();$vd=0;foreach($M
as$P){$Y="(".implode(", ",$P).")";if($hh&&(strlen($Ue)+$vd+strlen($Y)+strlen($gg)>1e6)){if(!queries($Ue.implode(",\n",$hh).$gg))return
false;$hh=array();$vd=0;}$hh[]=$Y;$vd+=strlen($Y)+2;}return
queries($Ue.implode(",\n",$hh).$gg);}function
slowQuery($I,$zg){if(min_version('5.7.8','10.1.2')){if(preg_match('~MariaDB~',$this->_conn->server_info))return"SET STATEMENT max_statement_time=$zg FOR $I";elseif(preg_match('~^(SELECT\b)(.+)~is',$I,$C))return"$C[1] /*+ MAX_EXECUTION_TIME(".($zg*1000).") */ $C[2]";}}function
convertSearch($Sc,$X,$l){return(preg_match('~char|text|enum|set~',$l["type"])&&!preg_match("~^utf8~",$l["collation"])&&preg_match('~[\x80-\xFF]~',$X['val'])?"CONVERT($Sc USING ".charset($this->_conn).")":$Sc);}function
warnings(){$J=$this->_conn->query("SHOW WARNINGS");if($J&&$J->num_rows){ob_start();select($J);return
ob_get_clean();}}function
tableHelp($E){$Ad=preg_match('~MariaDB~',$this->_conn->server_info);if(information_schema(DB))return
strtolower(($Ad?"information-schema-$E-table/":str_replace("_","-",$E)."-table.html"));if(DB=="mysql")return($Ad?"mysql$E-table/":"system-database.html");}}function
idf_escape($Sc){return"`".str_replace("`","``",$Sc)."`";}function
table($Sc){return
idf_escape($Sc);}function
connect(){global$b,$Rg,$dg;$e=new
Min_DB;$lb=$b->credentials();if($e->connect($lb[0],$lb[1],$lb[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)){$dg['Strings'][]="json";$Rg["json"]=4294967295;}return$e;}$K=$e->error;if(function_exists('iconv')&&!is_utf8($K)&&strlen($_f=iconv("windows-1250","utf-8",$K))>strlen($K))$K=$_f;return$K;}function
get_databases($uc){$K=get_session("dbs");if($K===null){$I=(min_version(5)?"SELECT SCHEMA_NAME FROM information_schema.SCHEMATA ORDER BY SCHEMA_NAME":"SHOW DATABASES");$K=($uc?slow_query($I):get_vals($I));restart_session();set_session("dbs",$K);stop_session();}return$K;}function
limit($I,$Z,$_,$ce=0,$If=" "){return" $I$Z".($_!==null?$If."LIMIT $_".($ce?" OFFSET $ce":""):"");}function
limit1($Q,$I,$Z,$If="\n"){return
limit($I,$Z,1,0,$If);}function
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
engines(){$K=array();foreach(get_rows("SHOW ENGINES")as$L){if(preg_match("~YES|DEFAULT~",$L["Support"]))$K[]=$L["Engine"];}return$K;}function
logged_user(){global$e;return$e->result("SELECT USER()");}function
tables_list(){return
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
count_tables($h){$K=array();foreach($h
as$i)$K[$i]=count(get_vals("SHOW TABLES IN ".idf_escape($i)));return$K;}function
table_status($E="",$nc=false){$K=array();foreach(get_rows($nc&&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
is_view($R){return$R["Engine"]===null;}function
fk_support($R){return
preg_match('~InnoDB|IBMDB2I~i',$R["Engine"])||(preg_match('~NDB~i',$R["Engine"])&&min_version(5.6));}function
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
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
foreign_keys($Q){global$e,$je;static$Me='(?:`(?:[^`]|``)+`)|(?:"(?:[^"]|"")+")';$K=array();$jb=$e->result("SHOW CREATE TABLE ".table($Q),1);if($jb){preg_match_all("~CONSTRAINT ($Me) FOREIGN KEY ?\\(((?:$Me,? ?)+)\\) REFERENCES ($Me)(?:\\.($Me))? \\(((?:$Me,? ?)+)\\)(?: ON DELETE ($je))?(?: ON UPDATE ($je))?~",$jb,$Cd,PREG_SET_ORDER);foreach($Cd
as$C){preg_match_all("~$Me~",$C[2],$Sf);preg_match_all("~$Me~",$C[5],$sg);$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',$Sf[0]),"target"=>array_map('idf_unescape',$sg[0]),"on_delete"=>($C[6]?$C[6]:"RESTRICT"),"on_update"=>($C[7]?$C[7]:"RESTRICT"),);}}return$K;}function
view($E){global$e;return
array("select"=>preg_replace('~^(?:[^`]|`[^`]*`)*\s+AS\s+~isU','',$e->result("SHOW CREATE VIEW ".table($E),1)));}function
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
as$z=>$X)asort($K[$z]);return$K;}function
information_schema($i){return(min_version(5)&&$i=="information_schema")||(min_version(5.5)&&$i=="performance_schema");}function
error(){global$e;return
h(preg_replace('~^You have an error.*syntax to use~U',"Syntax error",$e->error));}function
create_database($i,$Wa){return
queries("CREATE DATABASE ".idf_escape($i).($Wa?" COLLATE ".q($Wa):""));}function
drop_databases($h){$K=apply_queries("DROP DATABASE",$h,'idf_escape');restart_session();set_session("dbs",null);return$K;}function
rename_database($E,$Wa){$K=false;if(create_database($E,$Wa)){$qf=array();foreach(tables_list()as$Q=>$U)$qf[]=table($Q)." TO ".idf_escape($E).".".table($Q);$K=(!$qf||queries("RENAME TABLE ".implode(", ",$qf)));if($K)queries("DROP DATABASE ".idf_escape(DB));restart_session();set_session("dbs",null);}return$K;}function
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
alter_table($Q,$E,$m,$wc,$bb,$Wb,$Wa,$ya,$Ie){$sa=array();foreach($m
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);$Zf=($bb!==null?" COMMENT=".q($bb):"").($Wb?" ENGINE=".q($Wb):"").($Wa?" COLLATE ".q($Wa):"").($ya!=""?" AUTO_INCREMENT=$ya":"");if($Q=="")return
queries("CREATE TABLE ".table($E)." (\n".implode(",\n",$sa)."\n)$Zf$Ie");if($Q!=$E)$sa[]="RENAME TO ".table($E);if($Zf)$sa[]=ltrim($Zf);return($sa||$Ie?queries("ALTER TABLE ".table($Q)."\n".implode(",\n",$sa).$Ie):true);}function
alter_indexes($Q,$sa){foreach($sa
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
queries("ALTER TABLE ".table($Q).implode(",",$sa));}function
truncate_tables($S){return
apply_queries("TRUNCATE TABLE",$S);}function
drop_views($mh){return
queries("DROP VIEW ".implode(", ",array_map('table',$mh)));}function
drop_tables($S){return
queries("DROP TABLE ".implode(", ",array_map('table',$S)));}function
move_tables($S,$mh,$sg){$qf=array();foreach(array_merge($S,$mh)as$Q)$qf[]=table($Q)." TO ".idf_escape($sg).".".table($Q);return
queries("RENAME TABLE ".implode(", ",$qf));}function
copy_tables($S,$mh,$sg){queries("SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'");foreach($S
as$Q){$E=($sg==DB?table("copy_$Q"):idf_escape($sg).".".table($Q));if(!queries("CREATE TABLE $E LIKE ".table($Q))||!queries("INSERT INTO $E SELECT * FROM ".table($Q)))return
false;foreach(get_rows("SHOW TRIGGERS LIKE ".q(addcslashes($Q,"%_\\")))as$L){$Mg=$L["Trigger"];if(!queries("CREATE TRIGGER ".($sg==DB?idf_escape("copy_$Mg"):idf_escape($sg).".".idf_escape($Mg))." $L[Timing] $L[Event] ON $E FOR EACH ROW\n$L[Statement];"))return
false;}}foreach($mh
as$Q){$E=($sg==DB?table("copy_$Q"):idf_escape($sg).".".table($Q));$lh=view($Q);if(!queries("CREATE VIEW $E AS $lh[select]"))return
false;}return
true;}function
trigger($E){if($E=="")return
array();$M=get_rows("SHOW TRIGGERS WHERE `Trigger` = ".q($E));return
reset($M);}function
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
trigger_options(){return
array("Timing"=>array("BEFORE","AFTER"),"Event"=>array("INSERT","UPDATE","DELETE"),"Type"=>array("FOR EACH ROW"),);}function
routine($E,$U){global$e,$Yb,$Yc,$Rg;$qa=array("bool","boolean","integer","double precision","real","dec","numeric","fixed","national char","national varchar");$Tf="(?:\\s|/\\*[\s\S]*?\\*/|(?:#|-- )[^\n]*\n?|--\r?\n)";$Qg="((".implode("|",array_merge(array_keys($Rg),$qa)).")\\b(?:\\s*\\(((?:[^'\")]|$Yb)++)\\))?\\s*(zerofill\\s*)?(unsigned(?:\\s+zerofill)?)?)(?:\\s*(?:CHARSET|CHARACTER\\s+SET)\\s*['\"]?([^'\"\\s,]+)['\"]?)?";$Me="$Tf*(".($U=="FUNCTION"?"":$Yc).")?\\s*(?:`((?:[^`]|``)*)`\\s*|\\b(\\S+)\\s+)$Qg";$g=$e->result("SHOW CREATE $U ".idf_escape($E),2);preg_match("~\\(((?:$Me\\s*,?)*)\\)\\s*".($U=="FUNCTION"?"RETURNS\\s+$Qg\\s+":"")."(.*)~is",$g,$C);$m=array();preg_match_all("~$Me\\s*,?~is",$C[1],$Cd,PREG_SET_ORDER);foreach($Cd
as$De){$E=str_replace("``","`",$De[2]).$De[3];$m[]=array("field"=>$E,"type"=>strtolower($De[5]),"length"=>preg_replace_callback("~$Yb~s",'normalize_enum',$De[6]),"unsigned"=>strtolower(preg_replace('~\s+~',' ',trim("$De[8] $De[7]"))),"null"=>1,"full_type"=>$De[4],"inout"=>strtoupper($De[1]),"collation"=>strtolower($De[9]),);}if($U!="FUNCTION")return
array("fields"=>$m,"definition"=>$C[11]);return
array("fields"=>$m,"returns"=>array("type"=>$C[12],"length"=>$C[13],"unsigned"=>$C[15],"collation"=>$C[16]),"definition"=>$C[17],"language"=>"SQL",);}function
routines(){return
get_rows("SELECT ROUTINE_NAME AS SPECIFIC_NAME, ROUTINE_NAME, ROUTINE_TYPE, DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = ".q(DB));}function
routine_languages(){return
array();}function
routine_id($E,$L){return
idf_escape($E);}function
last_id(){global$e;return$e->result("SELECT LAST_INSERT_ID()");}function
explain($e,$I){return$e->query("EXPLAIN ".(min_version(5.1)?"PARTITIONS ":"").$I);}function
found_rows($R,$Z){return($Z||$R["Engine"]!="InnoDB"?null:$R["Rows"]);}function
types(){return
array();}function
schemas(){return
array();}function
get_schema(){return"";}function
set_schema($Bf){return
true;}function
create_sql($Q,$ya,$eg){global$e;$K=$e->result("SHOW CREATE TABLE ".table($Q),1);if(!$ya)$K=preg_replace('~ AUTO_INCREMENT=\d+~','',$K);return$K;}function
truncate_sql($Q){return"TRUNCATE ".table($Q);}function
use_sql($sb){return"USE ".idf_escape($sb);}function
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
show_variables(){return
get_key_vals("SHOW VARIABLES");}function
process_list(){return
get_rows("SHOW FULL PROCESSLIST");}function
show_status(){return
get_key_vals("SHOW STATUS");}function
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
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
support($oc){return!preg_match("~scheme|sequence|type|view_trigger|materializedview".(min_version(8)?"":"|descidx".(min_version(5.1)?"":"|event|partitioning".(min_version(5)?"":"|routine|trigger|view")))."~",$oc);}function
kill_process($X){return
queries("KILL ".number($X));}function
connection_id(){return"SELECT CONNECTION_ID()";}function
max_connections(){global$e;return$e->result("SELECT @@max_connections");}$y="sql";$Rg=array();$dg=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){$Rg+=$X;$dg[$z]=array_keys($X);}$Yg=array("unsigned","zerofill","unsigned zerofill");$ne=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");$Ob=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.7.1";class
Adminer{var$operators;function
name(){return"<a href='https://www.adminer.org/'".target_blank()." id='h1'>Adminer</a>";}function
credentials(){return
array(SERVER,$_GET["username"],get_password());}function
connectSsl(){}function
permanentLogin($g=false){return
password_file($g);}function
bruteForceKey(){return$_SERVER["REMOTE_ADDR"];}function
serverName($O){return
h($O);}function
database(){return
DB;}function
databases($uc=true){return
get_databases($uc);}function
schemas(){return
schemas();}function
queryTimeout(){return
2;}function
headers(){}function
csp(){return
csp();}function
head(){return
true;}function
css(){$K=array();$rc="adminer.css";if(file_exists($rc))$K[]=$rc;return$K;}function
loginForm(){global$Hb;echo"<table cellspacing='0' class='layout'>\n",$this->loginFormField('driver','<tr><th>'.'System'.'<td>',html_select("auth[driver]",$Hb,DRIVER,"loginDriver(this);")."\n"),$this->loginFormField('server','<tr><th>'.'Server'.'<td>','<input name="auth[server]" value="'.h(SERVER).'" title="hostname[:port]" placeholder="localhost" autocapitalize="off">'."\n"),$this->loginFormField('username','<tr><th>'.'Username'.'<td>','<input name="auth[username]" id="username" value="'.h($_GET["username"]).'" autocomplete="username" autocapitalize="off">'.script("focus(qs('#username')); qs('#username').form['auth[driver]'].onchange();")),$this->loginFormField('password','<tr><th>'.'Password'.'<td>','<input type="password" name="auth[password]" autocomplete="current-password">'."\n"),$this->loginFormField('db','<tr><th>'.'Database'.'<td>','<input name="auth[db]" value="'.h($_GET["db"]).'" autocapitalize="off">'."\n"),"</table>\n","<p><input type='submit' value='".'Login'."'>\n",checkbox("auth[permanent]",1,$_COOKIE["adminer_permanent"],'Permanent login')."\n";}function
loginFormField($E,$Mc,$Y){return$Mc.$Y;}function
login($zd,$G){if($G=="")return
sprintf('Adminer does not support accessing a database without a password, <a href="https://www.adminer.org/en/password/"%s>more information</a>.',target_blank());return
true;}function
tableName($kg){return
h($kg["Name"]);}function
fieldName($l,$re=0){return'<span title="'.h($l["full_type"]).'">'.h($l["field"]).'</span>';}function
selectLinks($kg,$P=""){global$y,$j;echo'<p class="links">';$yd=array("select"=>'Select data');if(support("table")||support("indexes"))$yd["table"]='Show structure';if(support("table")){if(is_view($kg))$yd["view"]='Alter view';else$yd["create"]='Alter table';}if($P!==null)$yd["edit"]='New item';$E=$kg["Name"];foreach($yd
as$z=>$X)echo" <a href='".h(ME)."$z=".urlencode($E).($z=="edit"?$P:"")."'".bold(isset($_GET[$z])).">$X</a>";echo
doc_link(array($y=>$j->tableHelp($E)),"?"),"\n";}function
foreignKeys($Q){return
foreign_keys($Q);}function
backwardKeys($Q,$jg){return
array();}function
backwardKeysPrint($Aa,$L){}function
selectQuery($I,$Yf,$mc=false){global$y,$j;$K="</p>\n";if(!$mc&&($ph=$j->warnings())){$u="warnings";$K=", <a href='#$u'>".'Warnings'."</a>".script("qsl('a').onclick = partial(toggle, '$u');","")."$K<div id='$u' class='hidden'>\n$ph</div>\n";}return"<p><code class='jush-$y'>".h(str_replace("\n"," ",$I))."</code> <span class='time'>(".format_time($Yf).")</span>".(support("sql")?" <a href='".h(ME)."sql=".urlencode($I)."'>".'Edit'."</a>":"").$K;}function
sqlCommandQuery($I){return
shorten_utf8(trim($I),1000);}function
rowDescription($Q){return"";}function
rowDescriptions($M,$xc){return$M;}function
selectLink($X,$l){}function
selectVal($X,$A,$l,$ze){$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($ze))."</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
editVal($X,$l){return$X;}function
tableStructurePrint($m){echo"<div class='scrollable'>\n","<table cellspacing='0' class='nowrap'>\n","<thead><tr><th>".'Column'."<td>".'Type'.(support("comment")?"<td>".'Comment':"")."</thead>\n";foreach($m
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>".h($l["comment"]):""),"\n";}echo"</table>\n","</div>\n";}function
tableIndexesPrint($w){echo"<table cellspacing='0'>\n";foreach($w
as$E=>$v){ksort($v["columns"]);$Xe=array();foreach($v["columns"]as$z=>$X)$Xe[]="<i>".h($X)."</i>".($v["lengths"][$z]?"(".$v["lengths"][$z].")":"").($v["descs"][$z]?" DESC":"");echo"<tr title='".h($E)."'><th>$v[type]<td>".implode(", ",$Xe)."\n";}echo"</table>\n";}function
selectColumnsPrint($N,$d){global$Bc,$Fc;print_fieldset("select",'Select',$N);$t=0;$N[""]=array();foreach($N
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
selectSearchPrint($Z,$d,$w){print_fieldset("search",'Search',$Z);foreach($w
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
selectOrderPrint($re,$d,$w){print_fieldset("sort",'Sort',$re);$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
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
selectLengthPrint($xg){if($xg!==null){echo"<fieldset><legend>".'Text length'."</legend><div>","<input type='number' name='text_length' class='size' value='".h($xg)."'>","</div></fieldset>\n";}}function
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
as$v){$pb=reset($v["columns"]);if($v["type"]!="FULLTEXT"&&$pb)$d[$pb]=1;}$d[""]=1;foreach($d
as$z=>$X)json_row($z);echo";\n","selectFieldChange.call(qs('#form')['select']);\n","</script>\n","</div></fieldset>\n";}function
selectCommandPrint(){return!information_schema(DB);}function
selectImportPrint(){return!information_schema(DB);}function
selectEmailPrint($Tb,$d){}function
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
array($N,$s);}function
selectSearchProcess($m,$w){global$e,$j;$K=array();foreach($w
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)){$Ue="";$cb=" $X[op]";if(preg_match('~IN$~',$X["op"])){$Vc=process_length($X["val"]);$cb.=" ".($Vc!=""?$Vc:"(NULL)");}elseif($X["op"]=="SQL")$cb=" $X[val]";elseif($X["op"]=="LIKE %%")$cb=" LIKE ".$this->processInput($m[$X["col"]],"%$X[val]%");elseif($X["op"]=="ILIKE %%")$cb=" ILIKE ".$this->processInput($m[$X["col"]],"%$X[val]%");elseif($X["op"]=="FIND_IN_SET"){$Ue="$X[op](".q($X["val"]).", ";$cb=")";}elseif(!preg_match('~NULL$~',$X["op"]))$cb.=" ".$this->processInput($m[$X["col"]],$X["val"]);if($X["col"]!="")$K[]=$Ue.$j->convertSearch(idf_escape($X["col"]),$X,$m[$X["col"]]).$cb;else{$Ya=array();foreach($m
as$E=>$l){if((preg_match('~^[-\d.'.(preg_match('~IN$~',$X["op"])?',':'').']+$~',$X["val"])||!preg_match('~'.number_type().'|bit~',$l["type"]))&&(!preg_match("~[\x80-\xFF]~",$X["val"])||preg_match('~char|text|enum|set~',$l["type"])))$Ya[]=$Ue.$j->convertSearch(idf_escape($E),$X,$l).$cb;}$K[]=($Ya?"(".implode(" OR ",$Ya).")":"1 = 0");}}}return$K;}function
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
selectLimitProcess(){return(isset($_GET["limit"])?$_GET["limit"]:"50");}function
selectLengthProcess(){return(isset($_GET["text_length"])?$_GET["text_length"]:"100");}function
selectEmailProcess($Z,$xc){return
false;}function
selectQueryBuild($N,$Z,$s,$re,$_,$F){return"";}function
messageQuery($I,$yg,$mc=false){global$y,$j;restart_session();$Nc=&get_session("queries");if(!$Nc[$_GET["db"]])$Nc[$_GET["db"]]=array();if(strlen($I)>1e6)$I=preg_replace('~[\x80-\xFF]+$~','',substr($I,0,1e6))."\nâ¦";$Nc[$_GET["db"]][]=array($I,time(),$yg);$Wf="sql-".count($Nc[$_GET["db"]]);$K="<a href='#$Wf' class='toggle'>".'SQL command'."</a>\n";if(!$mc&&($ph=$j->warnings())){$u="warnings-".count($Nc[$_GET["db"]]);$K="<a href='#$u' class='toggle'>".'Warnings'."</a>, $K<div id='$u' class='hidden'>\n$ph</div>\n";}return" <span class='time'>".@date("H:i:s")."</span>"." $K<div id='$Wf' class='hidden'><pre><code class='jush-$y'>".shorten_utf8($I,1000)."</code></pre>".($yg?" <span class='time'>($yg)</span>":'').(support("sql")?'<p><a href="'.h(str_replace("db=".urlencode(DB),"db=".urlencode($_GET["db"]),ME).'sql=&history='.(count($Nc[$_GET["db"]])-1)).'">'.'Edit'.'</a>':'').'</div>';}function
editFunctions($l){global$Ob;$K=($l["null"]?"NULL/":"");foreach($Ob
as$z=>$Bc){if(!$z||(!isset($_GET["call"])&&(isset($_GET["select"])||where($_GET)))){foreach($Bc
as$Me=>$X){if(!$Me||preg_match("~$Me~",$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
explode("/",$K);}function
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
editHint($Q,$l,$Y){return"";}function
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
unconvert_field($l,$K);}function
dumpOutput(){$K=array('text'=>'open','file'=>'save');if(function_exists('gzencode'))$K['gz']='gzip';return$K;}function
dumpFormat(){return
array('sql'=>'SQL','csv'=>'CSV,','csv;'=>'CSV;','tsv'=>'TSV');}function
dumpDatabase($i){}function
dumpTable($Q,$eg,$hd=0){if($_POST["format"]!="sql"){echo"\xef\xbb\xbf";if($eg)dump_csv(array_keys(fields($Q)));}else{if($hd==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"],$eg);set_utf8mb4($g);if($eg&&$g){if($eg=="DROP+CREATE"||$hd==1)echo"DROP ".($hd==2?"VIEW":"TABLE")." IF EXISTS ".table($Q).";\n";if($hd==1)$g=remove_definer($g);echo"$g;\n\n";}}}function
dumpData($Q,$eg,$I){global$e,$y;$Ed=($y=="sqlite"?0:1048576);if($eg){if($_POST["format"]=="sql"){if($eg=="TRUNCATE+INSERT")echo
truncate_sql($Q).";\n";$m=fields($Q);}$J=$e->query($I,1);if($J){$ad="";$Ia="";$jd=array();$gg="";$pc=($Q!=''?'fetch_assoc':'fetch_row');while($L=$J->$pc()){if(!$jd){$hh=array();foreach($L
as$X){$l=$J->fetch_field();$jd[]=$l->name;$z=idf_escape($l->name);$hh[]="$z = VALUES($z)";}$gg=($eg=="INSERT+UPDATE"?"\nON DUPLICATE KEY UPDATE ".implode(", ",$hh):"").";\n";}if($_POST["format"]!="sql"){if($eg=="table"){dump_csv($jd);$eg="INSERT";}dump_csv($L);}else{if(!$ad)$ad="INSERT INTO ".table($Q)." (".implode(", ",array_map('idf_escape',$jd)).") VALUES";foreach($L
as$z=>$X){$l=$m[$z];$L[$z]=($X!==null?unconvert_field($l,preg_match(number_type(),$l["type"])&&$X!=''&&!preg_match('~\[~',$l["full_type"])?$X:q(($X===false?0:$X))):"NULL");}$_f=($Ed?"\n":" ")."(".implode(",\t",$L).")";if(!$Ia)$Ia=$ad.$_f;elseif(strlen($Ia)+4+strlen($_f)+strlen($gg)<$Ed)$Ia.=",$_f";else{echo$Ia.$gg;$Ia=$ad.$_f;}}}if($Ia)echo$Ia.$gg;}elseif($_POST["format"]=="sql")echo"-- ".str_replace("\n"," ",$e->error)."\n";}}function
dumpFilename($Rc){return
friendly_url($Rc!=""?$Rc:(SERVER!=""?SERVER:"localhost"));}function
dumpHeaders($Rc,$Qd=false){$Ae=$_POST["output"];$jc=(preg_match('~sql~',$_POST["format"])?"sql":($Qd?"tar":"csv"));header("Content-Type: ".($Ae=="gz"?"application/x-gzip":($jc=="tar"?"application/x-tar":($jc=="sql"||$Ae!="file"?"text/plain":"text/csv")."; charset=utf-8")));if($Ae=="gz")ob_start('ob_gzencode',1e6);return$jc;}function
importServerPath(){return"adminer.sql";}function
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
true;}function
navigation($Pd){global$ga,$y,$Hb,$e;echo'<h1>
',$this->name(),' <span class="version">',$ga,'</span>
<a href="https://www.adminer.org/#download"',target_blank(),' id="version">',(version_compare($ga,$_COOKIE["adminer_version"])<0?h($_COOKIE["adminer_version"]):""),'</a>
</h1>
';if($Pd=="auth"){$tc=true;foreach((array)$_SESSION["pwds"]as$jh=>$Kf){foreach($Kf
as$O=>$fh){foreach($fh
as$V=>$G){if($G!==null){if($tc){echo"<ul id='logins'>".script("mixin(qs('#logins'), {onmouseover: menuOver, onmouseout: menuOut});");$tc=false;}$vb=$_SESSION["db"][$jh][$O][$V];foreach(($vb?array_keys($vb):array(""))as$i)echo"<li><a href='".h(auth_url($jh,$O,$V,$i))."'>($Hb[$jh]) ".h($V.($O!=""?"@".$this->serverName($O):"").($i!=""?" - $i":""))."</a>\n";}}}}}else{if($_GET["ns"]!==""&&!$Pd&&DB!=""){$e->select_db(DB);$S=table_status('',true);}echo
script_src(preg_replace("~\\?.*~","",ME)."?file=jush.js&version=4.7.1");if(support("sql")){echo'<script',nonce(),'>
';if($S){$yd=array();foreach($S
as$Q=>$U)$yd[]=preg_quote($Q,'/');echo"var jushLinks = { $y: [ '".js_escape(ME).(support("table")?"table=":"select=")."\$&', /\\b(".implode("|",$yd).")\\b/g ] };\n";foreach(array("bac","bra","sqlite_quo","mssql_bra")as$X)echo"jushLinks.$X = jushLinks.$y;\n";}$Jf=$e->server_info;echo'bodyLoad(\'',(is_object($e)?preg_replace('~^(\d\.?\d).*~s','\1',$Jf):""),'\'',(preg_match('~MariaDB~',$Jf)?", true":""),');
</script>
';}$this->databasesPrint($Pd);if(DB==""||!$Pd){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"]!==""&&!$Pd&&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
databasesPrint($Pd){global$b,$e;$h=$this->databases();if($h&&!in_array(DB,$h))array_unshift($h,DB);echo'<form action="">
<p id="dbs">
';hidden_fields_get();$tb=script("mixin(qsl('select'), {onmousedown: dbMouseDown, onchange: dbChange});");echo"<span title='".'database'."'>".'DB'."</span>: ".($h?"<select name='db'>".optionlist(array(""=>"")+$h,DB)."</select>$tb":"<input name='db' value='".h(DB)."' autocapitalize='off'>\n"),"<input type='submit' value='".'Use'."'".($h?" class='hidden'":"").">\n";if($Pd!="db"&&DB!=""&&$e->select_db(DB)){}foreach(array("import","sql","schema","dump","privileges")as$X){if(isset($_GET[$X])){echo"<input type='hidden' name='$X' value=''>";break;}}echo"</p></form>\n";}function
tablesPrint($S){echo"<ul id='tables'>".script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");foreach($S
as$Q=>$Zf){$E=$this->tableName($Zf);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($Zf)?"view":"structure"))." title='".'Show structure'."'>$E</a>":"<span>$E</span>")."\n";}}echo"</ul>\n";}}$b=(function_exists('adminer_object')?adminer_object():new
Adminer);if($b->operators===null)$b->operators=$ne;function
page_header($Ag,$k="",$Ha=array(),$Bg=""){global$ca,$ga,$b,$Hb,$y;page_headers();if(is_ajax()&&$k){page_messages($k);exit;}$Cg=$Ag.($Bg!=""?": $Bg":"");$Dg=strip_tags($Cg.(SERVER!=""&&SERVER!="localhost"?h(" - ".SERVER):"")." - ".$b->name());echo'<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex">
<title>',$Dg,'</title>
<link rel="stylesheet" type="text/css" href="',h(preg_replace("~\\?.*~","",ME)."?file=default.css&version=4.7.1"),'">
',script_src(preg_replace("~\\?.*~","",ME)."?file=functions.js&version=4.7.1");if($b->head()){echo'<link rel="shortcut icon" type="image/x-icon" href="',h(preg_replace("~\\?.*~","",ME)."?file=favicon.ico&version=4.7.1"),'">
<link rel="apple-touch-icon" href="',h(preg_replace("~\\?.*~","",ME)."?file=favicon.ico&version=4.7.1"),'">
';foreach($b->css()as$nb){echo'<link rel="stylesheet" type="text/css" href="',h($nb),'">
';}}echo'
<body class="ltr nojs">
';$rc=get_temp_dir()."/adminer.version";if(!$_COOKIE["adminer_version"]&&function_exists('openssl_verify')&&file_exists($rc)&&filemtime($rc)+86400>time()){$kh=unserialize(file_get_contents($rc));$df="-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwqWOVuF5uw7/+Z70djoK
RlHIZFZPO0uYRezq90+7Amk+FDNd7KkL5eDve+vHRJBLAszF/7XKXe11xwliIsFs
DFWQlsABVZB3oisKCBEuI71J4kPH8dKGEWR9jDHFw3cWmoH3PmqImX6FISWbG3B8
h7FIx3jEaw5ckVPVTeo5JRm/1DZzJxjyDenXvBQ/6o9DgZKeNDgxwKzH+sw9/YCO
jHnq1cFpOIISzARlrHMa/43YfeNRAm/tsBXjSxembBPo7aQZLAWHmaj5+K19H10B
nCpz9Y++cipkVEiKRGih4ZEvjoFysEOdRLj6WiD/uUNky4xGeA6LaJqh5XpkFkcQ
fQIDAQAB
-----END PUBLIC KEY-----
";if(openssl_verify($kh["version"],base64_decode($kh["signature"]),$df)==1)$_COOKIE["adminer_version"]=$kh["version"];}echo'<script',nonce(),'>
mixin(document.body, {onkeydown: bodyKeydown, onclick: bodyClick',(isset($_COOKIE["adminer_version"])?"":", onload: partial(verifyVersion, '$ga', '".js_escape(ME)."', '".get_token()."')");?>});
document.body.className = document.body.className.replace(/ nojs/, ' js');
var offlineMessage = '<?php echo
js_escape('You are offline.'),'\';
var thousandsSeparator = \'',js_escape(','),'\';
</script>
<div id="help" class="jush-',$y,' jsonly hidden"></div>
',script("mixin(qs('#help'), {onmouseover: function () { helpOpen = 1; }, onmouseout: helpMouseout});"),'
<div id="content">
';if($Ha!==null){$A=substr(preg_replace('~\b(username|db|ns)=[^&]*&~','',ME),0,-1);echo'<p id="breadcrumb"><a href="'.h($A?$A:".").'">'.$Hb[DRIVER].'</a> » ';$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> » ";if($_GET["ns"]!=""||(DB!=""&&is_array($Ha)))echo'<a href="'.h($A."&db=".urlencode(DB).(support("scheme")?"&ns=":"")).'">'.h(DB).'</a> » ';if(is_array($Ha)){if($_GET["ns"]!="")echo'<a href="'.h(substr(ME,0,-1)).'">'.h($_GET["ns"]).'</a> » ';foreach($Ha
as$z=>$X){$_b=(is_array($X)?$X[1]:h($X));if($_b!="")echo"<a href='".h(ME."$z=").urlencode(is_array($X)?$X[0]:$X)."'>$_b</a> » ";}}echo"$Ag\n";}}echo"<h2>$Cg</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
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$mb){$Lc=array();foreach($mb
as$z=>$X)$Lc[]="$z $X";header("Content-Security-Policy: ".implode("; ",$Lc));}$b->headers();}function
csp(){return
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
get_nonce(){static$Yd;if(!$Yd)$Yd=base64_encode(rand_string());return$Yd;}function
page_messages($k){$ah=preg_replace('~^[^?]*~','',$_SERVER["REQUEST_URI"]);$Nd=$_SESSION["messages"][$ah];if($Nd){echo"<div class='message'>".implode("</div>\n<div class='message'>",$Nd)."</div>".script("messagesPrint();");unset($_SESSION["messages"][$ah]);}if($k)echo"<div class='error'>$k</div>\n";}function
page_footer($Pd=""){global$b,$T;echo'</div>
';if($Pd!="auth"){echo'<form action="" method="post">
<p class="logout">
<input type="submit" name="logout" value="Logout" id="logout">
<input type="hidden" name="token" value="',$T,'">
</p>
</form>
';}echo'<div id="menu">
';$b->navigation($Pd);echo'</div>
',script("setupSubmitHighlight(document);");}function
int32($Sd){while($Sd>=2147483648)$Sd-=4294967296;while($Sd<=-2147483649)$Sd+=4294967296;return(int)$Sd;}function
long2str($W,$oh){$_f='';foreach($W
as$X)$_f.=pack('V',$X);if($oh)return
substr($_f,0,end($W));return$_f;}function
str2long($_f,$oh){$W=array_values(unpack('V*',str_pad($_f,4*ceil(strlen($_f)/4),"\0")));if($oh)$W[]=strlen($_f);return$W;}function
xxtea_mx($vh,$uh,$hg,$id){return
int32((($vh>>5&0x7FFFFFF)^$uh<<2)+(($uh>>3&0x1FFFFFFF)^$vh<<4))^int32(($hg^$uh)+($id^$vh));}function
encrypt_string($bg,$z){if($bg=="")return"";$z=array_values(unpack("V*",pack("H*",md5($z))));$W=str2long($bg,true);$Sd=count($W)-1;$vh=$W[$Sd];$uh=$W[0];$H=floor(6+52/($Sd+1));$hg=0;while($H-->0){$hg=int32($hg+0x9E3779B9);$Nb=$hg>>2&3;for($Be=0;$Be<$Sd;$Be++){$uh=$W[$Be+1];$Rd=xxtea_mx($vh,$uh,$hg,$z[$Be&3^$Nb]);$vh=int32($W[$Be]+$Rd);$W[$Be]=$vh;}$uh=$W[0];$Rd=xxtea_mx($vh,$uh,$hg,$z[$Be&3^$Nb]);$vh=int32($W[$Sd]+$Rd);$W[$Sd]=$vh;}return
long2str($W,false);}function
decrypt_string($bg,$z){if($bg=="")return"";if(!$z)return
false;$z=array_values(unpack("V*",pack("H*",md5($z))));$W=str2long($bg,false);$Sd=count($W)-1;$vh=$W[$Sd];$uh=$W[0];$H=floor(6+52/($Sd+1));$hg=int32($H*0x9E3779B9);while($hg){$Nb=$hg>>2&3;for($Be=$Sd;$Be>0;$Be--){$vh=$W[$Be-1];$Rd=xxtea_mx($vh,$uh,$hg,$z[$Be&3^$Nb]);$uh=int32($W[$Be]-$Rd);$W[$Be]=$uh;}$vh=$W[$Sd];$Rd=xxtea_mx($vh,$uh,$hg,$z[$Be&3^$Nb]);$uh=int32($W[0]-$Rd);$W[0]=$uh;$hg=int32($hg-0x9E3779B9);}return
long2str($W,true);}$e='';$Kc=$_SESSION["token"];if(!$Kc)$_SESSION["token"]=rand(1,1e6);$T=get_token();$Ne=array();if($_COOKIE["adminer_permanent"]){foreach(explode(" ",$_COOKIE["adminer_permanent"])as$X){list($z)=explode(":",$X);$Ne[$z]=$X;}}function
add_invalid_login(){global$b;$p=file_open_lock(get_temp_dir()."/adminer.invalid");if(!$p)return;$dd=unserialize(stream_get_contents($p));$yg=time();if($dd){foreach($dd
as$ed=>$X){if($X[0]<$yg)unset($dd[$ed]);}}$cd=&$dd[$b->bruteForceKey()];if(!$cd)$cd=array($yg+30*60,0);$cd[1]++;file_write_unlock($p,serialize($dd));}function
check_invalid_login(){global$b;$dd=unserialize(@file_get_contents(get_temp_dir()."/adminer.invalid"));$cd=$dd[$b->bruteForceKey()];$Xd=($cd[1]>29?$cd[0]-time():0);if($Xd>0)auth_error(lang(array('Too many unsuccessful logins, try again in %d minute.','Too many unsuccessful logins, try again in %d minutes.'),ceil($Xd/60)));}$xa=$_POST["auth"];if($xa){session_regenerate_id();$jh=$xa["driver"];$O=$xa["server"];$V=$xa["username"];$G=(string)$xa["password"];$i=$xa["db"];set_password($jh,$O,$V,$G);$_SESSION["db"][$jh][$O][$V][$i]=true;if($xa["permanent"]){$z=base64_encode($jh)."-".base64_encode($O)."-".base64_encode($V)."-".base64_encode($i);$Ye=$b->permanentLogin(true);$Ne[$z]="$z:".base64_encode($Ye?encrypt_string($G,$Ye):"");cookie("adminer_permanent",implode(" ",$Ne));}if(count($_POST)==1||DRIVER!=$jh||SERVER!=$O||$_GET["username"]!==$V||DB!=$i)redirect(auth_url($jh,$O,$V,$i));}elseif($_POST["logout"]){if($Kc&&!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.'.' '.'Thanks for using Adminer, consider <a href="https://www.adminer.org/en/donation/">donating</a>.');}}elseif($Ne&&!$_SESSION["pwds"]){session_regenerate_id();$Ye=$b->permanentLogin();foreach($Ne
as$z=>$X){list(,$Qa)=explode(":",$X);list($jh,$O,$V,$i)=array_map('base64_decode',explode("-",$z));set_password($jh,$O,$V,decrypt_string(base64_decode($Qa),$Ye));$_SESSION["db"][$jh][$O][$V][$i]=true;}}function
unset_permanent(){global$Ne;foreach($Ne
as$z=>$X){list($jh,$O,$V,$i)=array_map('base64_decode',explode("-",$z));if($jh==DRIVER&&$O==SERVER&&$V==$_GET["username"]&&$i==DB)unset($Ne[$z]);}cookie("adminer_permanent",implode(" ",$Ne));}function
auth_error($k){global$b,$Kc;$Lf=session_name();if(isset($_GET["username"])){header("HTTP/1.1 403 Forbidden");if(($_COOKIE[$Lf]||$_GET[$Lf])&&!$Kc)$k='Session expired, please login again.';else{restart_session();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[$Lf]&&$_GET[$Lf]&&ini_bool("session.use_only_cookies"))$k='Session support must be enabled.';$Ee=session_get_cookie_params();cookie("adminer_key",($_COOKIE["adminer_key"]?$_COOKIE["adminer_key"]:rand_string()),$Ee["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"])&&!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(", ",$Te)),false);page_footer("auth");exit;}stop_session(true);if(isset($_GET["username"])){list($Pc,$Pe)=explode(":",SERVER,2);if(is_numeric($Pe)&&$Pe<1024)auth_error('Connecting to privileged ports is not allowed.');check_invalid_login();$e=connect();$j=new
Min_Driver($e);}$zd=null;if(!is_object($e)||($zd=$b->login($_GET["username"],get_password()))!==true){$k=(is_string($e)?h($e):(is_string($zd)?$zd:'Invalid credentials.'));auth_error($k.(preg_match('~^ | $~',get_password())?'<br>'.'There is a space in the input password which might be the cause.':''));}if($xa&&$_POST["token"])$_POST["token"]=$T;$k='';if($_POST){if(!verify_token()){$Xc="max_input_vars";$Id=ini_get($Xc);if(extension_loaded("suhosin")){foreach(array("suhosin.request.max_vars","suhosin.post.max_vars")as$z){$X=ini_get($z);if($X&&(!$Id||$X<$Id)){$Xc=$z;$Id=$X;}}}$k=(!$_POST["token"]&&$Id?sprintf('Maximum number of allowed fields exceeded. Please increase %s.',"'$Xc'"):'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.';}function
select($J,$f=null,$ue=array(),$_=0){global$y;$yd=array();$w=array();$d=array();$Fa=array();$Rg=array();$K=array();odd('');for($t=0;(!$_||$t<$_)&&($L=$J->fetch_row());$t++){if(!$t){echo"<div class='scrollable'>\n","<table cellspacing='0' class='nowrap'>\n","<thead><tr>";for($x=0;$x<count($L);$x++){$l=$J->fetch_field();$E=$l->name;$te=$l->orgtable;$se=$l->orgname;$K[$l->table]=$te;if($ue&&$y=="sql")$yd[$x]=($E=="table"?"table=":($E=="possible_keys"?"indexes=":null));elseif($te!=""){if(!isset($w[$te])){$w[$te]=array();foreach(indexes($te,$f)as$v){if($v["type"]=="PRIMARY"){$w[$te]=array_flip($v["columns"]);break;}}$d[$te]=$w[$te];}if(isset($d[$te][$se])){unset($d[$te][$se]);$w[$te][$se]=$x;$yd[$x]=$te;}}if($l->charsetnr==63)$Fa[$x]=true;$Rg[$x]=$l->type;echo"<th".($te!=""||$l->name!=$se?" title='".h(($te!=""?"$te.":"").$se)."'":"").">".h($E).($ue?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
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>";else{$X=h($X);if($Rg[$z]==254)$X="<code>$X</code>";}if(isset($yd[$z])&&!$d[$yd[$z]]){if($ue&&$y=="sql"){$Q=$L[array_search("table=",$yd)];$A=$yd[$z].urlencode($ue[$Q]!=""?$ue[$Q]:$Q);}else{$A="edit=".urlencode($yd[$z]);foreach($w[$yd[$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>\n</div>":"<p class='message'>".'No rows.')."\n";return$K;}function
referencable_primary($Gf){$K=array();foreach(table_status('',true)as$lg=>$Q){if($lg!=$Gf&&fk_support($Q)){foreach(fields($lg)as$l){if($l["primary"]){if($K[$lg]){unset($K[$lg]);break;}$K[$lg]=$l;}}}}return$K;}function
adminer_settings(){parse_str($_COOKIE["adminer_settings"],$Nf);return$Nf;}function
adminer_setting($z){$Nf=adminer_settings();return$Nf[$z];}function
set_adminer_settings($Nf){return
cookie("adminer_settings",http_build_query($Nf+adminer_settings()));}function
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
as$X)echo
h($X[0])."\n\n\n";}else
echo
h($Y);echo"</textarea>";}function
edit_type($z,$l,$Xa,$o=array(),$lc=array()){global$dg,$Rg,$Yg,$je;$U=$l["type"];echo'<td><select name="',h($z),'[type]" class="type" aria-labelledby="label-type">';if($U&&!isset($Rg[$U])&&!isset($o[$U])&&!in_array($U,$lc))$lc[]=$U;if($o)$dg['Foreign keys']=$o;echo
optionlist(array_merge($lc,$dg),$U),'</select>
',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'":"");echo' aria-labelledby="label-length">',script("mixin(qsl('input'), {onfocus: editingLengthFocus, oninput: editingLengthChange});",""),'<td class="options">',"<select name='".h($z)."[collation]'".(preg_match('~(char|text|enum|set)$~',$U)?"":" class='hidden'").'><option value="">('.'collation'.')'.optionlist($Xa,$l["collation"]).'</select>',($Yg?"<select name='".h($z)."[unsigned]'".(!$U||preg_match(number_type(),$U)?"":" class='hidden'").'><option>'.optionlist($Yg,$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"),(preg_match('~^CURRENT_TIMESTAMP~i',$l["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("|",$je),$l["on_delete"])."</select> ":" ");}function
process_length($vd){global$Yb;return(preg_match("~^\\s*\\(?\\s*$Yb(?:\\s*,\\s*$Yb)*+\\s*\\)?\\s*\$~",$vd)&&preg_match_all("~$Yb~",$vd,$Cd)?"(".implode(",",$Cd[0]).")":preg_replace('~^[0-9].*~','(\0)',preg_replace('~[^-0-9,+()[\]]~','',$vd)));}function
process_type($l,$Va="COLLATE"){global$Yg;return" $l[type]".process_length($l["length"]).(preg_match(number_type(),$l["type"])&&in_array($l["unsigned"],$Yg)?" $l[unsigned]":"").(preg_match('~char|text|enum|set~',$l["type"])&&$l["collation"]?" $Va ".q($l["collation"]):"");}function
process_field($l,$Pg){return
array(idf_escape(trim($l["field"])),process_type($Pg),($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
default_value($l){$xb=$l["default"];return($xb===null?"":" DEFAULT ".(preg_match('~char|binary|text|enum|set~',$l["type"])||preg_match('~^(?![a-z])~i',$xb)?q($xb):$xb));}function
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
edit_fields($m,$Xa,$U="TABLE",$o=array()){global$Yc;$m=array_values($m);echo'<thead><tr>
';if($U=="PROCEDURE"){echo'<td>';}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
<td>','Options';if($U=="TABLE"){echo'<td id="label-null">NULL
<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
',(support("comment")?"<td id='label-comment'>".'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.7.1")."' alt='+' title='".'Add next'."'>".script("row_count = ".count($m).";"),'</thead>
<tbody>
',script("mixin(qsl('tbody'), {onclick: editingClick, onkeydown: editingKeydown, oninput: editingInput});");foreach($m
as$t=>$l){$t++;$ve=$l[($_POST?"orig":"field")];$Db=(isset($_POST["add"][$t-1])||(isset($l["field"])&&!$_POST["drop_col"][$t]))&&(support("drop_col")||$ve=="");echo'<tr',($Db?"":" style='display: none;'"),'>
',($U=="PROCEDURE"?"<td>".html_select("fields[$t][inout]",explode("|",$Yc),$l["inout"]):""),'<th>';if($Db){echo'<input name="fields[',$t,'][field]" value="',h($l["field"]),'" data-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($ve),'">
';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><input name='fields[$t][comment]' value='".h($l["comment"])."' data-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.7.1")."' alt='+' title='".'Add next'."'> "."<input type='image' class='icon' name='up[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=up.gif&version=4.7.1")."' alt='â' title='".'Move up'."'> "."<input type='image' class='icon' name='down[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=down.gif&version=4.7.1")."' alt='â' title='".'Move down'."'> ":""),($ve==""||support("drop_col")?"<input type='image' class='icon' name='drop_col[$t]' src='".h(preg_replace("~\\?.*~","",ME)."?file=cross.gif&version=4.7.1")."' alt='x' title='".'Remove'."'>":"");}}function
process_fields(&$m){$ce=0;if($_POST["up"]){$pd=0;foreach($m
as$z=>$l){if(key($_POST["up"])==$z){unset($m[$z]);array_splice($m,$pd,0,array($l));break;}if(isset($l["field"]))$pd=$ce;$ce++;}}elseif($_POST["down"]){$zc=false;foreach($m
as$z=>$l){if(isset($l["field"])&&$zc){unset($m[key($_POST["down"])]);array_splice($m,$ce,0,array($zc));break;}if(key($_POST["down"])==$z)$zc=$l;$ce++;}}elseif($_POST["add"]){$m=array_values($m);array_splice($m,key($_POST["add"]),0,array(array()));}elseif(!$_POST["drop_col"])return
false;return
true;}function
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
grant($r,$af,$d,$ie){if(!$af)return
true;if($af==array("ALL PRIVILEGES","GRANT OPTION"))return($r=="GRANT"?queries("$r ALL PRIVILEGES$ie WITH GRANT OPTION"):queries("$r ALL PRIVILEGES$ie")&&queries("$r GRANT OPTION$ie"));return
queries("$r ".preg_replace('~(GRANT OPTION)\([^)]*\)~','\1',implode("$d, ",$af).$d).$ie);}function
drop_create($Ib,$g,$Jb,$vg,$Kb,$B,$Md,$Kd,$Ld,$fe,$Vd){if($_POST["drop"])query_redirect($Ib,$B,$Md);elseif($fe=="")query_redirect($g,$B,$Ld);elseif($fe!=$Vd){$kb=queries($g);queries_redirect($B,$Kd,$kb&&queries($Ib));if($kb)queries($Jb);}else
queries_redirect($B,$Kd,queries($vg)&&queries($Kb)&&queries($Ib)&&queries($g));}function
create_trigger($ie,$L){global$y;$_g=" $L[Timing] $L[Event]".($L["Event"]=="UPDATE OF"?" ".idf_escape($L["Of"]):"");return"CREATE TRIGGER ".idf_escape($L["Trigger"]).($y=="mssql"?$ie.$_g:$_g.$ie).rtrim(" $L[Type]\n$L[Statement]",";").";";}function
create_routine($xf,$L){global$Yc,$y;$P=array();$m=(array)$L["fields"];ksort($m);foreach($m
as$l){if($l["field"]!="")$P[]=(preg_match("~^($Yc)\$~",$l["inout"])?"$l[inout] ":"").idf_escape($l["field"]).process_type($l,"CHARACTER SET");}$yb=rtrim("\n$L[definition]",";");return"CREATE $xf ".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($yb):"$yb;");}function
remove_definer($I){return
preg_replace('~^([A-Z =]+) DEFINER=`'.preg_replace('~@(.*)~','`@`(%|\1)',logged_user()).'`~','\1',$I);}function
format_foreign_key($n){global$je;return" FOREIGN KEY (".implode(", ",array_map('idf_escape',$n["source"])).") REFERENCES ".table($n["table"])." (".implode(", ",array_map('idf_escape',$n["target"])).")".(preg_match("~^($je)\$~",$n["on_delete"])?" ON DELETE $n[on_delete]":"").(preg_match("~^($je)\$~",$n["on_update"])?" ON UPDATE $n[on_update]":"");}function
tar_file($rc,$Eg){$K=pack("a100a8a8a8a12a12",$rc,644,0,0,decoct($Eg->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));$Eg->send();echo
str_repeat("\0",511-($Eg->size+511)%512);}function
ini_bytes($Xc){$X=ini_get($Xc);switch(strtolower(substr($X,-1))){case'g':$X*=1024;case'm':$X*=1024;case'k':$X*=1024;}return$X;}function
doc_link($Le,$wg="<sup>?</sup>"){global$y,$e;$Jf=$e->server_info;$kh=preg_replace('~^(\d\.?\d).*~s','\1',$Jf);$ch=array('sql'=>"https://dev.mysql.com/doc/refman/$kh/en/",'sqlite'=>"https://www.sqlite.org/",'pgsql'=>"https://www.postgresql.org/docs/$kh/static/",'mssql'=>"https://msdn.microsoft.com/library/",'oracle'=>"https://download.oracle.com/docs/cd/B19306_01/server.102/b14200/",);if(preg_match('~MariaDB~',$Jf)){$ch['sql']="https://mariadb.com/kb/en/library/";$Le['sql']=(isset($Le['mariadb'])?$Le['mariadb']:str_replace(".html","/",$Le['sql']));}return($Le[$y]?"<a href='$ch[$y]$Le[$y]'".target_blank().">$wg</a>":"");}function
ob_gzencode($cg){return
gzencode($cg);}function
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
format_number($K);}function
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
connect_error(){global$b,$e,$T,$k,$Hb;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',$Hb[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){$Cf=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>":"")."<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
as$i=>$S){$wf=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='$wf' id='$u'>".h($i)."</a>";$Wa=h(db_collation($i,$Xa));echo"<td>".(support("database")?"<a href='$wf".($Cf?"&ns=":"")."&database=' title='".'Alter database'."'>$Wa</a>":$Wa),"<td align='right'><a href='$wf&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;}$je="RESTRICT|NO ACTION|CASCADE|SET NULL|SET DEFAULT";class
TmpFile{var$handler;var$size;function
__construct(){$this->handler=tmpfile();}function
write($fb){$this->size+=strlen($fb);fwrite($this->handler,$fb);}function
send(){fseek($this->handler,0);fpassthru($this->handler);fclose($this->handler);}}$Yb="'(?:''|[^'\\\\]|\\\\.)*'";$Yc="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></thead>\n";foreach($o
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>".h($n["on_delete"])."\n","<td>".h($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";$Og=triggers($a);if($Og){echo"<table cellspacing='0'>\n";foreach($Og
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]":"")));$mg=array();$ng=array();$ea=($_GET["schema"]?$_GET["schema"]:$_COOKIE["adminer_schema-".str_replace(".","_",DB)]);preg_match_all('~([^:]+):([-0-9.]+)x([-0-9.]+)(_|$)~',$ea,$Cd,PREG_SET_ORDER);foreach($Cd
as$t=>$C){$mg[$C[1]]=array($C[2],$C[3]);$ng[]="\n\t'".js_escape($C[1])."': [ $C[2], $C[3] ]";}$Gg=0;$Ca=-1;$Bf=array();$nf=array();$td=array();foreach(table_status('',true)as$Q=>$R){if(is_view($R))continue;$Qe=0;$Bf[$Q]["fields"]=array();foreach(fields($Q)as$E=>$l){$Qe+=1.25;$l["pos"]=$Qe;$Bf[$Q]["fields"][$E]=$l;}$Bf[$Q]["pos"]=($mg[$Q]?$mg[$Q]:array($Gg,0));foreach($b->foreignKeys($Q)as$X){if(!$X["db"]){$rd=$Ca;if($mg[$Q][1]||$mg[$X["table"]][1])$rd=min(floatval($mg[$Q][1]),floatval($mg[$X["table"]][1]))-1;else$Ca-=.1;while($td[(string)$rd])$rd-=.0001;$Bf[$Q]["references"][$X["table"]][(string)$rd]=array($X["source"],$X["target"]);$nf[$X["table"]][$Q][(string)$rd]=$X["target"];$td[(string)$rd]=true;}}$Gg=max($Gg,$Bf[$Q]["pos"][0]+2.5+$Qe);}echo'<div id="schema" style="height: ',$Gg,'em;">
<script',nonce(),'>
qs(\'#schema\').onselectstart = function () { return false; };
var tablePos = {',implode(",",$ng)."\n",'};
var em = qs(\'#schema\').offsetHeight / ',$Gg,';
document.onmousemove = schemaMousemove;
document.onmouseup = partialArg(schemaMouseup, \'',js_escape(DB),'\');
</script>
';foreach($Bf
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$tg=>$of){foreach($of
as$rd=>$kf){$sd=$rd-$mg[$E][1];$t=0;foreach($kf[0]as$Sf)echo"\n<div class='references' title='".h($tg)."' id='refs$rd-".($t++)."' style='left: $sd"."em; top: ".$Q["fields"][$Sf]["pos"]."em; padding-top: .5em;'><div style='border-top: 1px solid Gray; width: ".(-$sd)."em;'></div></div>";}}foreach((array)$nf[$E]as$tg=>$of){foreach($of
as$rd=>$d){$sd=$rd-$mg[$E][1];$t=0;foreach($d
as$sg)echo"\n<div class='references' title='".h($tg)."' id='refd$rd-".($t++)."' style='left: $sd"."em; top: ".$Q["fields"][$sg]["pos"]."em; height: 1.25em; background: url(".h(preg_replace("~\\?.*~","",ME)."?file=arrow.gif) no-repeat right center;&version=4.7.1")."'><div style='height: .5em; border-bottom: 1px solid Gray; width: ".(-$sd)."em;'></div></div>";}}echo"\n</div>\n";}foreach($Bf
as$E=>$Q){foreach((array)$Q["references"]as$tg=>$of){foreach($of
as$rd=>$kf){$Od=$Gg;$Gd=-10;foreach($kf[0]as$z=>$Sf){$Re=$Q["pos"][0]+$Q["fields"][$Sf]["pos"];$Se=$Bf[$tg]["pos"][0]+$Bf[$tg]["fields"][$kf[1][$z]]["pos"];$Od=min($Od,$Re,$Se);$Gd=max($Gd,$Re,$Se);}echo"<div class='references' id='refl$rd' style='left: $rd"."em; top: $Od"."em; padding: .5em 0;'><div style='border-right: 1px solid Gray; margin-top: 1px; height: ".($Gd-$Od)."em;'></div></div>\n";}}}echo'</div>
<p class="links"><a href="',h(ME."schema=".urlencode($ea)),'" id="schema-link">Permanent link</a>
';}elseif(isset($_GET["dump"])){$a=$_GET["dump"];if($_POST&&!$k){$ib="";foreach(array("output","format","db_style","routines","events","table_style","auto_increment","triggers","data_style")as$z)$ib.="&$z=".urlencode($_POST[$z]);cookie("adminer_export",substr($ib,1));$S=array_flip((array)$_POST["tables"])+array_flip((array)$_POST["data"]);$jc=dump_headers((count($S)==1?key($S):DB),(DB==""||count($S)>1));$gd=preg_match('~sql~',$_POST["format"]);if($gd){echo"-- Adminer $ga ".$Hb[DRIVER]." dump\n\n";if($y=="sql"){echo"SET NAMES utf8;
SET time_zone = '+00:00';
".($_POST["data_style"]?"SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
":"")."
";$e->query("SET time_zone = '+00:00';");}}$eg=$_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
as$i){$b->dumpDatabase($i);if($e->select_db($i)){if($gd&&preg_match('~CREATE~',$eg)&&($g=$e->result("SHOW CREATE DATABASE ".idf_escape($i),1))){set_utf8mb4($g);if($eg=="DROP+CREATE")echo"DROP DATABASE IF EXISTS ".idf_escape($i).";\n";echo"$g;\n";}if($gd){if($eg)echo
use_sql($i).";\n\n";$_e="";if($_POST["routines"]){foreach(array("FUNCTION","PROCEDURE")as$xf){foreach(get_rows("SHOW $xf STATUS WHERE Db = ".q($i),null,"-- ")as$L){$g=remove_definer($e->result("SHOW CREATE $xf ".idf_escape($L["Name"]),2));set_utf8mb4($g);$_e.=($eg!='DROP+CREATE'?"DROP $xf 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);$_e.=($eg!='DROP+CREATE'?"DROP EVENT IF EXISTS ".idf_escape($L["Name"]).";;\n":"")."$g;;\n\n";}}if($_e)echo"DELIMITER ;;\n\n$_e"."DELIMITER ;\n\n";}if($_POST["table_style"]||$_POST["data_style"]){$mh=array();foreach(table_status('',true)as$E=>$R){$Q=(DB==""||in_array($E,(array)$_POST["tables"]));$qb=(DB==""||in_array($E,(array)$_POST["data"]));if($Q||$qb){if($jc=="tar"){$Eg=new
TmpFile;ob_start(array($Eg,'write'),1e5);}$b->dumpTable($E,($Q?$_POST["table_style"]:""),(is_view($R)?2:0));if(is_view($R))$mh[]=$E;elseif($qb){$m=fields($E);$b->dumpData($E,$_POST["data_style"],"SELECT *".convert_fields($m,$m)." FROM ".table($E));}if($gd&&$_POST["triggers"]&&$Q&&($Og=trigger_sql($E)))echo"\nDELIMITER ;;\n$Og\nDELIMITER ;\n";if($jc=="tar"){ob_end_flush();tar_file((DB!=""?"":"$i/")."$E.csv",$Eg);}elseif($gd)echo"\n";}}foreach($mh
as$lh)$b->dumpTable($lh,$_POST["table_style"],1);if($jc=="tar")echo
pack("x512");}}}if($gd)echo"-- ".$e->result("SELECT NOW()")."\n";exit;}page_header('Export',$k,($_GET["export"]!=""?array("table"=>$_GET["export"]):array()),h(DB));echo'
<form action="" method="post">
<table cellspacing="0" class="layout">
';$ub=array('','USE','DROP+CREATE','CREATE');$og=array('','DROP+CREATE','CREATE');$rb=array('','TRUNCATE+INSERT','INSERT');if($y=="sql")$rb[]='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',$ub,$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',$og,$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',$rb,$L["data_style"]),'</table>
<p><input type="submit" value="Export">
<input type="hidden" name="token" value="',$T,'">
<table cellspacing="0">
',script("qsl('table').onclick = dumpClick;");$Ve=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";$mh="";$pg=tables_list();foreach($pg
as$E=>$U){$Ue=preg_replace('~_.*~','',$E);$Na=($a==""||$a==(substr($a,-1)=="%"?"$Ue%":$E));$Xe="<tr><td>".checkbox("tables[]",$E,$Na,$E,"","block");if($U!==null&&!preg_match('~table~i',$U))$mh.="$Xe\n";else
echo"$Xe<td align='right'><label class='block'><span id='Rows-".h($E)."'></span>".checkbox("data[]",$E,$Na)."</label>\n";$Ve[$Ue]++;}echo$mh;if($pg)echo
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
as$i){if(!information_schema($i)){$Ue=preg_replace('~_.*~','',$i);echo"<tr><td>".checkbox("databases[]",$i,$a==""||$a=="$Ue%",$i,"","block")."\n";$Ve[$Ue]++;}}}else
echo"<tr><td><textarea name='databases' rows='10' cols='20'></textarea>";}echo'</table>
</form>
';$tc=true;foreach($Ve
as$z=>$X){if($z!=""&&$X>1){echo($tc?"<p>":" ")."<a href='".h(ME)."dump=".urlencode("$z%")."'>".h($z)."</a>";$tc=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></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();$Oc=&get_session("queries");$Nc=&$Oc[DB];if(!$k&&$_POST["clear"]){$Nc=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"]){$Vf=$b->importServerPath();$p=@fopen((file_exists($Vf)?$Vf:"compress.zlib://$Vf.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(!$Nc||reset(end($Nc))!=$H){restart_session();$Nc[]=array($H,time());set_session("queries",$Oc);stop_session();}}$Tf="(?:\\s|/\\*[\s\S]*?\\*/|(?:#|-- )[^\n]*\n?|--\r?\n)";$zb=";";$ce=0;$Vb=true;$f=connect();if(is_object($f)&&DB!="")$f->select_db(DB);$ab=0;$ac=array();$Fe='[\'"'.($y=="sql"?'`#':($y=="sqlite"?'`[':($y=="mssql"?'[':''))).']|/\*|-- |$'.($y=="pgsql"?'|\$[^$]*\$':'');$Hg=microtime(true);parse_str($_COOKIE["adminer_export"],$la);$Mb=$b->dumpFormat();unset($Mb["sql"]);while($I!=""){if(!$ce&&preg_match("~^$Tf*+DELIMITER\\s+(\\S+)~i",$I,$C)){$zb=$C[1];$I=substr($I,strlen($C[0]));}else{preg_match('('.preg_quote($zb)."\\s*|$Fe)",$I,$C,PREG_OFFSET_CAPTURE,$ce);list($zc,$Qe)=$C[0];if(!$zc&&$p&&!feof($p))$I.=fread($p,1e5);else{if(!$zc&&rtrim($I)=="")break;$ce=$Qe+strlen($zc);if($zc&&rtrim($zc)!=$zb){while(preg_match('('.($zc=='/*'?'\*/':($zc=='['?']':(preg_match('~^-- |^#~',$zc)?"\n":preg_quote($zc)."|\\\\."))).'|$)s',$I,$C,PREG_OFFSET_CAPTURE,$ce)){$_f=$C[0][0];if(!$_f&&$p&&!feof($p))$I.=fread($p,1e5);else{$ce=$C[0][1]+strlen($_f);if($_f[0]!="\\")break;}}}else{$Vb=false;$H=substr($I,0,$Qe);$ab++;$Xe="<pre id='sql-$ab'><code class='jush-$y'>".$b->sqlCommandQuery($H)."</code></pre>\n";if($y=="sqlite"&&preg_match("~^$Tf*+ATTACH\\b~i",$H,$C)){echo$Xe,"<p class='error'>".'ATTACH queries are not supported.'."\n";$ac[]=" <a href='#sql-$ab'>$ab</a>";if($_POST["error_stops"])break;}else{if(!$_POST["only_errors"]){echo$Xe;ob_flush();flush();}$Yf=microtime(true);if($e->multi_query($H)&&is_object($f)&&preg_match("~^$Tf*+USE\\b~i",$H))$f->query($H);do{$J=$e->store_result();if($e->error){echo($_POST["only_errors"]?$Xe:""),"<p class='error'>".'Error in query'.($e->errno?" ($e->errno)":"").": ".error()."\n";$ac[]=" <a href='#sql-$ab'>$ab</a>";if($_POST["error_stops"])break
2;}else{$yg=" <span class='time'>(".format_time($Yf).")</span>".(strlen($H)<1000?" <a href='".h(ME)."sql=".urlencode(trim($H))."'>".'Edit'."</a>":"");$na=$e->affected_rows;$ph=($_POST["only_errors"]?"":$j->warnings());$qh="warnings-$ab";if($ph)$yg.=", <a href='#$qh'>".'Warnings'."</a>".script("qsl('a').onclick = partial(toggle, '$qh');","");$hc=null;$ic="explain-$ab";if(is_object($J)){$_=$_POST["limit"];$ue=select($J,$f,array(),$_);if(!$_POST["only_errors"]){echo"<form action='' method='post'>\n";$Zd=$J->num_rows;echo"<p>".($Zd?($_&&$Zd>$_?sprintf('%d / ',$_):"").lang(array('%d row','%d rows'),$Zd):""),$yg;if($f&&preg_match("~^($Tf|\\()*+SELECT\\b~i",$H)&&($hc=explain($f,$H)))echo", <a href='#$ic'>Explain</a>".script("qsl('a').onclick = partial(toggle, '$ic');","");$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",$Mb,$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("~^$Tf*+(CREATE|DROP|ALTER)$Tf++(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)."$yg\n";}echo($ph?"<div id='$qh' class='hidden'>\n$ph</div>\n":"");if($hc){echo"<div id='$ic' class='hidden'>\n";select($hc,$f,$ue);echo"</div>\n";}}$Yf=microtime(true);}while($e->next_result());}$I=substr($I,$ce);$ce=0;}}}}if($Vb)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($ac))," <span class='time'>(".format_time($Hg).")</span>\n";}elseif($ac&&$ab>1)echo"<p class='error'>".'Error in query'.": ".implode("",$ac)."\n";}else
echo"<p class='error'>".upload_error($I)."\n";}echo'
<form action="" method="post" enctype="multipart/form-data" id="form">
';$fc="<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=$Nc;elseif($_GET["history"]!="")$H=$Nc[$_GET["history"]][0];echo"<p>";textarea("query",$H,20);echo
script(($_POST?"":"qs('textarea').focus();\n")."qs('#form').onsubmit = partial(sqlSubmit, qs('#form'), '".remove_from_uri("sql|limit|error_stops|only_errors")."');"),"<p>$fc\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>";$Gc=(extension_loaded("zlib")?"[.gz]":"");echo(ini_bool("file_uploads")?"SQL$Gc (< ".ini_get("upload_max_filesize")."B): <input type='file' name='sql_file[]' multiple>\n$fc":'File uploads are disabled.'),"</div></fieldset>\n";$Uc=$b->importServerPath();if($Uc){echo"<fieldset><legend>".'From server'."</legend><div>",sprintf('Webserver file %s',"<code>".h($Uc)."$Gc</code>"),' <input type="submit" name="webfile" value="'.'Run file'.'">',"</div></fieldset>\n";}echo"<p>";}echo
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"])&&$Nc){print_fieldset("history",'History',$_GET["history"]!="");for($X=end($Nc);$X;$X=prev($Nc)){$z=key($Nc);list($H,$yg,$Qb)=$X;echo'<a href="'.h(ME."sql=&history=$z").'">'.'Edit'."</a>"." <span class='time' title='".@date('Y-m-d',$yg)."'>".@date("H:i:s",$yg)."</span>"." <code class='jush-$y'>".shorten_utf8(ltrim(str_replace("\n"," ",str_replace("\r","",preg_replace('~^(#|-- ).*~m','',$H)))),80,"</code>").($Qb?" <span class='time'>($Qb)</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>
';}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));$Zg=(isset($_GET["select"])?$_POST["edit"]:$Z);foreach($m
as$E=>$l){if(!isset($l["privileges"][$Zg?"update":"insert"])||$b->fieldName($l)=="")unset($m[$E]);}if($_POST&&!$k&&!isset($_GET["select"])){$B=$_POST["referer"];if($_POST["insert"])$B=($Zg?null:$_SERVER["REQUEST_URI"]);elseif(!preg_match('~^.+&select=.+$~',$B))$B=ME."select=".urlencode($a);$w=indexes($a);$Ug=unique_array($_GET["where"],$w);$gf="\nWHERE $Z";if(isset($_POST["delete"]))queries_redirect($B,'Item has been deleted.',$j->delete($a,$gf,!$Ug));else{$P=array();foreach($m
as$E=>$l){$X=process_input($l);if($X!==false&&$X!==null)$P[idf_escape($E)]=$X;}if($Zg){if(!$P)redirect($B);queries_redirect($B,'Item has been updated.',$j->update($a,$P,$gf,!$Ug));if(is_ajax()){page_headers();page_messages($k);exit;}}else{$J=$j->insert($a,$P);$qd=($J?last_id():0);queries_redirect($B,sprintf('Item%s has been inserted.',($qd?" $qd":"")),$J);}}}$L=null;if($_POST["save"])$L=(array)$_POST["fields"];elseif($Z){$N=array();foreach($m
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
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,$Zg);}elseif(isset($_GET["create"])){$a=$_GET["create"];$Ge=array();foreach(array('HASH','LINEAR HASH','KEY','LINEAR KEY','RANGE','LIST')as$z)$Ge[$z]=$z;$mf=referencable_primary($a);$o=array();foreach($mf
as$lg=>$l)$o[str_replace("`","``",$lg)."`".str_replace("`","``",$l["field"])]=$lg;$xe=array();$R=array();if($a!=""){$xe=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)set_adminer_settings(array("comments"=>$_POST["comments"],"defaults"=>$_POST["defaults"]));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();$dh=false;$wc=array();$we=reset($xe);$pa=" FIRST";foreach($L["fields"]as$z=>$l){$n=$o[$l["type"]];$Pg=($n!==null?$mf[$n]:$l);if($l["field"]!=""){if(!$l["has_default"])$l["default"]=null;if($z==$L["auto_increment_col"])$l["auto_increment"]=true;$cf=process_field($l,$Pg);$ra[]=array($l["orig"],$cf,$pa);if($cf!=process_field($we,$we)){$m[]=array($l["orig"],$cf,$pa);if($l["orig"]!=""||$pa)$dh=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($Pg["field"]),'on_delete'=>$l["on_delete"],));$pa=" AFTER ".idf_escape($l["field"]);}elseif($l["orig"]!=""){$dh=true;$m[]=array($l["orig"]);}if($l["orig"]!=""){$we=next($xe);if(!$we)$pa="";}}$Ie="";if($Ge[$L["partition_by"]]){$Je=array();if($L["partition_by"]=='RANGE'||$L["partition_by"]=='LIST'){foreach(array_filter($L["partition_names"])as$z=>$X){$Y=$L["partition_values"][$z];$Je[]="\n PARTITION ".idf_escape($X)." VALUES ".($L["partition_by"]=='RANGE'?"LESS THAN":"IN").($Y!=""?" ($Y)":" MAXVALUE");}}$Ie.="\nPARTITION BY $L[partition_by]($L[partition])".($Je?" (".implode(",",$Je)."\n)":($L["partitions"]?" PARTITIONS ".(+$L["partitions"]):""));}elseif(support("partitioning")&&preg_match("~partitioned~",$R["Create_options"]))$Ie.="\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"&&($dh||$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"]):""),$Ie));}}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($Rg["int"])?"int":(isset($Rg["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($xe
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();$Je=get_key_vals("SELECT PARTITION_NAME, PARTITION_DESCRIPTION $Ac AND PARTITION_NAME != '' ORDER BY PARTITION_ORDINAL_POSITION");$Je[""]="";$L["partition_names"]=array_keys($Je);$L["partition_values"]=array_values($Je);}}}$Xa=collations();$Xb=engines();foreach($Xb
as$Wb){if(!strcasecmp($Wb,$L["Engine"])){$L["Engine"]=$Wb;break;}}echo'
<form action="" method="post" id="form">
<p>
';if(support("columns")||$a==""){echo'Table name: <input name="name" data-maxlength="64" value="',h($L["name"]),'" autocapitalize="off">
';if($a==""&&!$_POST)echo
script("focus(qs('#form')['name']);");echo($Xb?"<select name='Engine'>".optionlist(array(""=>"(".'engine'.")")+$Xb,$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">
';}echo'
';if(support("columns")){echo'<div class="scrollable">
<table cellspacing="0" id="edit-fields" class="nowrap">
';edit_fields($L["fields"],$Xa,"TABLE",$o);echo'</table>
</div>
<p>
Auto Increment: <input type="number" name="Auto_increment" size="6" value="',h($L["Auto_increment"]),'">
',checkbox("defaults",1,($_POST?$_POST["defaults"]:adminer_setting("defaults")),'Default values',"columnShow(this.checked, 5)","jsonly"),(support("comment")?checkbox("comments",1,($_POST?$_POST["comments"]:adminer_setting("comments")),'Comment',"editingCommentsClick(this, true);","jsonly").' <input name="Comment" value="'.h($L["Comment"]).'" data-maxlength="'.(min_version(5.5)?2048:60).'">':''),'<p>
<input type="submit" value="Save">
';}echo'
';if($a!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$a));}if(support("partitioning")){$He=preg_match('~RANGE|LIST~',$L["partition_by"]);print_fieldset("partition",'Partition by',$L["partition_by"]);echo'<p>
',"<select name='partition_by'>".optionlist(array(""=>"")+$Ge,$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"]),'">)
Partitions: <input type="number" name="partitions" class="size',($He||!$L["partition_by"]?" hidden":""),'" value="',h($L["partitions"]),'">
<table cellspacing="0" id="partition-table"',($He?"":" class='hidden'"),'>
<thead><tr><th>Partition name<th>Values</thead>
';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>
</div></fieldset>
';}echo'<input type="hidden" name="token" value="',$T,'">
</form>
',script("qs('#form')['defaults'].onclick();".(support("comment")?" editingCommentsClick(qs('#form')['comments']);":""));}elseif(isset($_GET["indexes"])){$a=$_GET["indexes"];$Wc=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"]))$Wc[]="FULLTEXT";if(preg_match('~MyISAM|M?aria'.(min_version(5.7,'10.2.2')?'|InnoDB':'').'~i',$R["Engine"]))$Wc[]="SPATIAL";$w=indexes($a);$We=array();if($y=="mongo"){$We=$w["_id_"];unset($Wc[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"],$Wc)){$d=array();$wd=array();$Ab=array();$P=array();ksort($v["columns"]);foreach($v["columns"]as$z=>$c){if($c!=""){$vd=$v["lengths"][$z];$_b=$v["descs"][$z];$P[]=idf_escape($c).($vd?"(".(+$vd).")":"").($_b?" DESC":"");$d[]=$c;$wd[]=($vd?$vd:null);$Ab[]=$_b;}}if($d){$gc=$w[$E];if($gc){ksort($gc["columns"]);ksort($gc["lengths"]);ksort($gc["descs"]);if($v["type"]==$gc["type"]&&array_values($gc["columns"])===$d&&(!$gc["lengths"]||array_values($gc["lengths"])===$wd)&&array_values($gc["descs"])===$Ab){unset($w[$E]);continue;}}$sa[]=array($v["type"],$E,$P);}}}foreach($w
as$E=>$gc)$sa[]=array($gc["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
as$z=>$v){$w[$z]["name"]=$z;$w[$z]["columns"][]="";}$w[]=array("columns"=>array(1=>""));$L["indexes"]=$w;}echo'
<form action="" method="post">
<div class="scrollable">
<table cellspacing="0" class="nowrap">
<thead><tr>
<th id="label-type">Index Type
<th><input type="submit" class="wayoff">Column (length)
<th id="label-name">Name
<th><noscript>',"<input type='image' class='icon' name='add[0]' src='".h(preg_replace("~\\?.*~","",ME)."?file=plus.gif&version=4.7.1")."' alt='+' title='".'Add next'."'>",'</noscript>
</thead>
';if($We){echo"<tr><td>PRIMARY<td>";foreach($We["columns"]as$z=>$c){echo
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=>"")+$Wc,$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'."'>":""),(support("descidx")?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.7.1")."' alt='x' title='".'Remove'."'>".script("qsl('input').onclick = partial(editingRemoveRow, 'indexes\$1[type]');");}$x++;}echo'</table>
</div>
<p>
<input type="submit" value="Save">
<input type="hidden" name="token" value="',$T,'">
</form>
';}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));$fg=true;$pd="";foreach($h
as$i){if(count($h)==1||$i!=""){if(!create_database($i,$L["collation"]))$fg=false;$pd=$i;}}restart_session();set_session("dbs",null);queries_redirect(ME."db=".urlencode($pd),'Database has been created.',$fg);}}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'
<form action="" method="post">
<p>
',($_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).'" data-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">
';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.7.1")."' alt='+' title='".'Add next'."'>\n";echo'<input type="hidden" name="token" value="',$T,'">
</form>
';}elseif(isset($_GET["call"])){$da=($_GET["name"]?$_GET["name"]:$_GET["call"]);page_header('Call'.": ".h($da),$k);$xf=routine($_GET["call"],(isset($_GET["callf"])?"FUNCTION":"PROCEDURE"));$Vc=array();$_e=array();foreach($xf["fields"]as$t=>$l){if(substr($l["inout"],-3)=="OUT")$_e[$t]="@".idf_escape($l["field"])." AS ".idf_escape($l["field"]);if(!$l["inout"]||substr($l["inout"],0,2)=="IN")$Vc[]=$t;}if(!$k&&$_POST){$Ja=array();foreach($xf["fields"]as$z=>$l){if(in_array($z,$Vc)){$X=process_input($l);if($X===false)$X="''";if(isset($_e[$z]))$e->query("SET @".idf_escape($l["field"])." = $X");}$Ja[]=(isset($_e[$z])?"@".idf_escape($l["field"]):$X);}$I=(isset($_GET["callf"])?"SELECT":"CALL")." ".table($da)."(".implode(", ",$Ja).")";$Yf=microtime(true);$J=$e->multi_query($I);$na=$e->affected_rows;echo$b->selectQuery($I,$Yf,!$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
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($_e)select($e->query("SELECT ".implode(", ",$_e)));}}echo'
<form action="" method="post">
';if($Vc){echo"<table cellspacing='0' class='layout'>\n";foreach($Vc
as$z){$l=$xf["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>
<input type="submit" value="Call">
<input type="hidden" name="token" value="',$T,'">
</form>
';}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"]);$sg=array();foreach($L["source"]as$z=>$X)$sg[$z]=$L["target"][$z];$L["target"]=$sg;}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);$Ib="\nDROP ".($y=="sql"?"FOREIGN KEY ":"CONSTRAINT ").idf_escape($E);if($_POST["drop"])query_redirect($sa.$Ib,$B,$D);else{query_redirect($sa.($E!=""?"$Ib,":"")."\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("");}$Sf=array_keys(fields($a));$sg=($a===$L["table"]?$Sf:array_keys(fields($L["table"])));$lf=array_keys(array_filter(table_status('',true),'fk_support'));echo'
<form action="" method="post">
<p>
';if($L["db"]==""&&$L["ns"]==""){echo'Target table:
',html_select("table",$lf,$L["table"],"this.form['change-js'].value = '1'; this.form.submit();"),'<input type="hidden" name="change-js" value="">
<noscript><p><input type="submit" name="change" value="Change"></noscript>
<table cellspacing="0">
<thead><tr><th id="label-source">Source<th id="label-target">Target</thead>
';$x=0;foreach($L["source"]as$z=>$X){echo"<tr>","<td>".html_select("source[".(+$z)."]",array(-1=>"")+$Sf,$X,($x==count($L["source"])-1?"foreignAddRow.call(this);":1),"label-source"),"<td>".html_select("target[".(+$z)."]",$sg,$L["target"][$z],1,"label-target");$x++;}echo'</table>
<p>
ON DELETE: ',html_select("on_delete",array(-1=>"")+explode("|",$je),$L["on_delete"]),' ON UPDATE: ',html_select("on_update",array(-1=>"")+explode("|",$je),$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>
<input type="submit" value="Save">
<noscript><p><input type="submit" name="add" value="Add column"></noscript>
';}if($E!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$E));}echo'<input type="hidden" name="token" value="',$T,'">
</form>
';}elseif(isset($_GET["view"])){$a=$_GET["view"];$L=$_POST;$ye="VIEW";if($y=="pgsql"&&$a!=""){$Zf=table_status($a);$ye=strtoupper($Zf["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"&&$ye=="VIEW")query_redirect(($y=="mssql"?"ALTER":"CREATE OR REPLACE")." VIEW ".table($E).$ua,$B,$D);else{$ug=$E."_adminer_".uniqid();drop_create("DROP $ye ".table($a),"CREATE $U ".table($E).$ua,"DROP $U ".table($E),"CREATE $U ".table($ug).$ua,"DROP $U ".table($ug),($_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"]=($ye!="VIEW");if(!$k)$k=error();}page_header(($a!=""?'Alter view':'Create view'),$k,array("table"=>$a),h($a));echo'
<form action="" method="post">
<p>Name: <input name="name" value="',h($L["name"]),'" data-maxlength="64" autocapitalize="off">
',(support("materializedview")?" ".checkbox("materialized",1,$L["materialized"],'Materialized view'):""),'<p>';textarea("select",$L["select"]);echo'<p>
<input type="submit" value="Save">
';if($a!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$a));}echo'<input type="hidden" name="token" value="',$T,'">
</form>
';}elseif(isset($_GET["event"])){$aa=$_GET["event"];$bd=array("YEAR","QUARTER","MONTH","DAY","HOUR","MINUTE","WEEK","SECOND","YEAR_MONTH","DAY_HOUR","DAY_MINUTE","DAY_SECOND","HOUR_MINUTE","HOUR_SECOND","MINUTE_SECOND");$ag=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"],$bd)&&isset($ag[$L["STATUS"]])){$Af="\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).$Af.($aa!=$L["EVENT_NAME"]?"\nRENAME TO ".idf_escape($L["EVENT_NAME"]):""):"CREATE EVENT ".idf_escape($L["EVENT_NAME"]).$Af)."\n".$ag[$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'
<form action="" method="post">
<table cellspacing="0" class="layout">
<tr><th>Name<td><input name="EVENT_NAME" value="',h($L["EVENT_NAME"]),'" data-maxlength="64" autocapitalize="off">
<tr><th title="datetime">Start<td><input name="STARTS" value="',h("$L[EXECUTE_AT]$L[STARTS]"),'">
<tr><th title="datetime">End<td><input name="ENDS" value="',h($L["ENDS"]),'">
<tr><th>Every<td><input type="number" name="INTERVAL_VALUE" value="',h($L["INTERVAL_VALUE"]),'" class="size"> ',html_select("INTERVAL_FIELD",$bd,$L["INTERVAL_FIELD"]),'<tr><th>Status<td>',html_select("STATUS",$ag,$L["STATUS"]),'<tr><th>Comment<td><input name="EVENT_COMMENT" value="',h($L["EVENT_COMMENT"]),'" data-maxlength="64">
<tr><th><td>',checkbox("ON_COMPLETION","PRESERVE",$L["ON_COMPLETION"]=="PRESERVE",'On completion preserve'),'</table>
<p>';textarea("EVENT_DEFINITION",$L["EVENT_DEFINITION"]);echo'<p>
<input type="submit" value="Save">
';if($aa!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$aa));}echo'<input type="hidden" name="token" value="',$T,'">
</form>
';}elseif(isset($_GET["procedure"])){$da=($_GET["name"]?$_GET["name"]:$_GET["procedure"]);$xf=(isset($_GET["function"])?"FUNCTION":"PROCEDURE");$L=$_POST;$L["fields"]=(array)$L["fields"];if($_POST&&!process_fields($L["fields"])&&!$k){$ve=routine($_GET["procedure"],$xf);$ug="$L[name]_adminer_".uniqid();drop_create("DROP $xf ".routine_id($da,$ve),create_routine($xf,$L),"DROP $xf ".routine_id($L["name"],$L),create_routine($xf,array("name"=>$ug)+$L),"DROP $xf ".routine_id($ug,$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"],$xf);$L["name"]=$da;}$Xa=get_vals("SHOW CHARACTER SET");sort($Xa);$yf=routine_languages();echo'
<form action="" method="post" id="form">
<p>Name: <input name="name" value="',h($L["name"]),'" data-maxlength="64" autocapitalize="off">
',($yf?'Language'.": ".html_select("language",$yf,$L["language"])."\n":""),'<input type="submit" value="Save">
<div class="scrollable">
<table cellspacing="0" class="nowrap">
';edit_fields($L["fields"],$Xa,$xf);if(isset($_GET["function"])){echo"<tr><td>".'Return type';edit_type("returns",$L["returns"],$Xa,array(),($y=="pgsql"?array("void","trigger"):array()));}echo'</table>
</div>
<p>';textarea("definition",$L["definition"]);echo'<p>
<input type="submit" value="Save">
';if($da!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$da));}echo'<input type="hidden" name="token" value="',$T,'">
</form>
';}elseif(isset($_GET["trigger"])){$a=$_GET["trigger"];$E=$_GET["name"];$Ng=trigger_options();$L=(array)trigger($E)+array("Trigger"=>$a."_bi");if($_POST){if(!$k&&in_array($_POST["Timing"],$Ng["Timing"])&&in_array($_POST["Event"],$Ng["Event"])&&in_array($_POST["Type"],$Ng["Type"])){$ie=" ON ".table($a);$Ib="DROP TRIGGER ".idf_escape($E).($y=="pgsql"?$ie:"");$B=ME."table=".urlencode($a);if($_POST["drop"])query_redirect($Ib,$B,'Trigger has been dropped.');else{if($E!="")queries($Ib);queries_redirect($B,($E!=""?'Trigger has been altered.':'Trigger has been created.'),queries(create_trigger($ie,$_POST)));if($E!="")queries(create_trigger($ie,$L+array("Type"=>reset($Ng["Type"]))));}}$L=$_POST;}page_header(($E!=""?'Alter trigger'.": ".h($E):'Create trigger'),$k,array("table"=>$a));echo'
<form action="" method="post" id="form">
<table cellspacing="0" class="layout">
<tr><th>Time<td>',html_select("Timing",$Ng["Timing"],$L["Timing"],"triggerChange(/^".preg_quote($a,"/")."_[ba][iud]$/, '".js_escape($a)."', this.form);"),'<tr><th>Event<td>',html_select("Event",$Ng["Event"],$L["Event"],"this.form['Timing'].onchange();"),(in_array("UPDATE OF",$Ng["Event"])?" <input name='Of' value='".h($L["Of"])."' class='hidden'>":""),'<tr><th>Type<td>',html_select("Type",$Ng["Type"],$L["Type"]),'</table>
<p>Name: <input name="Trigger" value="',h($L["Trigger"]),'" data-maxlength="64" autocapitalize="off">
',script("qs('#form')['Timing'].onchange();"),'<p>';textarea("Statement",$L["Statement"]);echo'<p>
<input type="submit" value="Save">
';if($E!=""){echo'<input type="submit" name="drop" value="Drop">',confirm(sprintf('Drop %s?',$E));}echo'<input type="hidden" name="token" value="',$T,'">
</form>
';}elseif(isset($_GET["user"])){$fa=$_GET["user"];$af=array(""=>array("All privileges"=>""));foreach(get_rows("SHOW PRIVILEGES")as$L){foreach(explode(",",($L["Privilege"]=="Grant option"?"":$L["Context"]))as$gb)$af[$gb][$L["Privilege"]]=$L["Comment"];}$af["Server Admin"]+=$af["File access on server"];$af["Databases"]["Create routine"]=$af["Procedures"]["Create routine"];unset($af["Procedures"]["Create routine"]);$af["Columns"]=array();foreach(array("Select","Insert","Update","References")as$X)$af["Columns"][$X]=$af["Tables"][$X];unset($af["Server Admin"]["Usage"]);foreach($af["Tables"]as$z=>$X)unset($af["Databases"][$z]);$Ud=array();if($_POST){foreach($_POST["objects"]as$z=>$X)$Ud[$X]=(array)$Ud[$X]+(array)$_POST["grants"][$z];}$Cc=array();$ge="";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],$Cd,PREG_SET_ORDER)){foreach($Cd
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))$ge=$C[1];}}if($_POST&&!$k){$he=(isset($_GET["host"])?q($fa)."@".q($_GET["host"]):"''");if($_POST["drop"])query_redirect("DROP USER $he",ME."privileges=",'User has been dropped.');else{$Wd=q($_POST["user"])."@".q($_POST["host"]);$Ke=$_POST["pass"];if($Ke!=''&&!$_POST["hashed"]){$Ke=$e->result("SELECT PASSWORD(".q($Ke).")");$k=!$Ke;}$kb=false;if(!$k){if($he!=$Wd){$kb=queries((min_version(5)?"CREATE USER":"GRANT USAGE ON *.* TO")." $Wd IDENTIFIED BY PASSWORD ".q($Ke));$k=!$kb;}elseif($Ke!=$ge)queries("SET PASSWORD FOR $Wd = ".q($Ke));}if(!$k){$uf=array();foreach($Ud
as$be=>$r){if(isset($_GET["grant"]))$r=array_filter($r);$r=array_keys($r);if(isset($_GET["grant"]))$uf=array_diff(array_keys(array_filter($Ud[$be],'strlen')),$r);elseif($he==$Wd){$ee=array_keys((array)$Cc[$be]);$uf=array_diff($ee,$r);$r=array_diff($r,$ee);unset($Cc[$be]);}if(preg_match('~^(.+)\s*(\(.*\))?$~U',$be,$C)&&(!grant("REVOKE",$uf,$C[2]," ON $C[1] FROM $Wd")||!grant("GRANT",$r,$C[2]," ON $C[1] TO $Wd"))){$k=true;break;}}}if(!$k&&isset($_GET["host"])){if($he!=$Wd)queries("DROP USER $he");elseif(!isset($_GET["grant"])){foreach($Cc
as$be=>$uf){if(preg_match('~^(.+)(\(.*\))?$~U',$be,$C))grant("REVOKE",array_keys($uf),$C[2]," ON $C[1] FROM $Wd");}}}queries_redirect(ME."privileges=",(isset($_GET["host"])?'User has been altered.':'User has been created.'),!$k);if($kb)$e->query("DROP USER $Wd");}}page_header((isset($_GET["host"])?'Username'.": ".h("$fa@$_GET[host]"):'Create user'),$k,array("privileges"=>array('','Privileges')));if($_POST){$L=$_POST;$Cc=$Ud;}else{$L=$_GET+array("host"=>$e->result("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', -1)"));$L["pass"]=$ge;if($ge!="")$L["hashed"]=true;$Cc[(DB==""||$Cc?"":idf_escape(addcslashes(DB,"%_\\"))).".*"]=array();}echo'<form action="" method="post">
<table cellspacing="0" class="layout">
<tr><th>Server<td><input name="host" data-maxlength="60" value="',h($L["host"]),'" autocapitalize="off">
<tr><th>Username<td><input name="user" data-maxlength="80" value="',h($L["user"]),'" autocapitalize="off">
<tr><th>Password<td><input name="pass" id="pass" value="',h($L["pass"]),'" autocomplete="new-password">
';if(!$L["hashed"])echo
script("typePassword(qs('#pass'));");echo
checkbox("hashed",1,$L["hashed"],'Hashed',"typePassword(this.form['pass'], this.checked);"),'</table>
';echo"<table cellspacing='0'>\n","<thead><tr><th colspan='2'>".'Privileges'.doc_link(array('sql'=>"grant.html#priv_level"));$t=0;foreach($Cc
as$be=>$r){echo'<th>'.($be!="*.*"?"<input name='objects[$t]' value='".h($be)."' 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$gb=>$_b){foreach((array)$af[$gb]as$Ze=>$bb){echo"<tr".odd()."><td".($_b?">$_b<td":" colspan='2'").' lang="en" title="'.h($bb).'">'.h($Ze);$t=0;foreach($Cc
as$be=>$r){$E="'grants[$t][".h(strtoupper($Ze))."]'";$Y=$r[strtoupper($Ze)];if($gb=="Server Admin"&&$be!=(isset($Cc["*.*"])?"*.*":".*"))echo"<td>";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":"").($Ze=="All privileges"?" id='grants-$t-all'>":">".($Ze=="Grant option"?"":script("qsl('input').onclick = function () { if (this.checked) formUncheck('grants-$t-all'); };"))),"</label>";}$t++;}}}echo"</table>\n",'<p>
<input type="submit" value="Save">
';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,'">
</form>
';}elseif(isset($_GET["processlist"])){if(support("kill")&&$_POST&&!$k){$ld=0;foreach((array)$_POST["kill"]as$X){if(kill_process($X))$ld++;}queries_redirect(ME."processlist=",lang(array('%d process has been killed.','%d processes have been killed.'),$ld),$ld||!$_POST["kill"]);}page_header('Process list',$k);echo'
<form action="" method="post">
<div class="scrollable">
<table cellspacing="0" class="nowrap checkable">
',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>":"");foreach($L
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
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>':h($X));echo"\n";}echo'</table>
</div>
<p>
';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,'">
</form>
',script("tableCheck();");}elseif(isset($_GET["select"])){$a=$_GET["select"];$R=table_status1($a);$w=indexes($a);$m=fields($a);$o=column_foreign_keys($a);$de=$R["Oid"];parse_str($_COOKIE["adminer_import"],$ma);$vf=array();$d=array();$xg=null;foreach($m
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))$xg=$b->selectLengthProcess();}$vf+=$l["privileges"];}list($N,$s)=$b->selectColumnsProcess($d,$w);$fd=count($s)<count($N);$Z=$b->selectSearchProcess($m,$w);$re=$b->selectOrderProcess($m,$w);$_=$b->selectLimitProcess();if($_GET["val"]&&is_ajax()){header("Content-Type: text/plain; charset=utf-8");foreach($_GET["val"]as$Vg=>$L){$ua=convert_field($m[key($L)]);$N=array($ua?$ua:idf_escape(key($L)));$Z[]=where_check($Vg,$m);$K=$j->select($a,$N,$Z,$N);if($K)echo
reset($K->fetch_row());}exit;}$We=$Xg=null;foreach($w
as$v){if($v["type"]=="PRIMARY"){$We=array_flip($v["columns"]);$Xg=($N?$We:array());foreach($Xg
as$z=>$X){if(in_array(idf_escape($z),$N))unset($Xg[$z]);}break;}}if($de&&!$We){$We=$Xg=array($de=>0);$w[]=array("type"=>"PRIMARY","columns"=>array($de));}if($_POST&&!$k){$sh=$Z;if(!$_POST["all"]&&is_array($_POST["check"])){$Oa=array();foreach($_POST["check"]as$Ma)$Oa[]=where_check($Ma,$m);$sh[]="((".implode(") OR (",$Oa)."))";}$sh=($sh?"\nWHERE ".implode(" AND ",$sh):"");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&&$fd?"\nGROUP BY ".implode(", ",$s):"").($re?"\nORDER BY ".implode(", ",$re):"");if(!is_array($_POST["check"])||$We)$I="SELECT $Ac$sh$Ec";else{$Tg=array();foreach($_POST["check"]as$X)$Tg[]="(SELECT".limit($Ac,"\nWHERE ".($Z?implode(" AND ",$Z)." AND ":"").where_check($X,$m).$Ec,1).")";$I=implode(" UNION ALL ",$Tg);}$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
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"]||($We&&is_array($_POST["check"]))||$fd){$J=($_POST["delete"]?$j->delete($a,$sh):($_POST["clone"]?queries("INSERT $I$sh"):$j->update($a,$P,$sh)));$na=$e->affected_rows;}else{foreach((array)$_POST["check"]as$X){$rh="\nWHERE ".($Z?implode(" AND ",$Z)." AND ":"").where_check($X,$m);$J=($_POST["delete"]?$j->delete($a,$rh,1):($_POST["clone"]?queries("INSERT".limit1($a,$I,$rh)):$j->update($a,$P,$rh,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){$qd=last_id();if($qd)$D=sprintf('Item%s has been inserted.'," $qd");}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$Vg=>$L){$P=array();foreach($L
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($Vg,$m),!$fd&&!$We," ");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($qc=get_file("csv_file",true)))$k=upload_error($qc);elseif(!preg_match('~~u',$qc))$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]+)+~',$qc,$Cd);$na=count($Cd[0]);$j->begin();$If=($_POST["separator"]=="csv"?",":($_POST["separator"]=="tsv"?"\t":";"));$M=array();foreach($Cd[0]as$z=>$X){preg_match_all("~((?>\"[^\"]*\")+|[^$If]*)$If~",$X.$If,$Dd);if(!$z&&!array_diff($Dd[1],$Ya)){$Ya=$Dd[1];$na--;}else{$P=array();foreach($Dd[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,$We));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();}}}$lg=$b->tableName($R);if(is_ajax()){page_headers();ob_start();}else
page_header('Select'.": $lg",$k);$P=null;if(isset($vf["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($re,$d,$w);$b->selectLimitPrint($_);$b->selectLengthPrint($xg);$b->selectActionPrint($w);echo"</form>\n";$F=$_GET["page"];if($F=="last"){$_c=$e->result(count_rows($a,$Z,$fd,$s));$F=floor(max(0,$_c-1)/$_);}$Df=$N;$Dc=$s;if(!$Df){$Df[]="*";$hb=convert_fields($d,$m,$N);if($hb)$Df[]=substr($hb,2);}foreach($N
as$z=>$X){$l=$m[idf_unescape($X)];if($l&&($ua=convert_field($l)))$Df[$z]="$ua AS $X";}if(!$fd&&$Xg){foreach($Xg
as$z=>$X){$Df[]=idf_escape($z);if($Dc)$Dc[]=idf_escape($z);}}$J=$j->select($a,$Df,$Z,$Dc,$re,$_,$F,true);if(!$J)echo"<p class='error'>".error()."\n";else{if($y=="mssql"&&$F)$J->seek($_*$F);$Ub=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&&$fd&&$y=="sql")$_c=$e->result(" SELECT FOUND_ROWS()");if(!$M)echo"<p class='message'>".'No rows.'."\n";else{$Ba=$b->backwardKeys($a,$lg);echo"<div class='scrollable'>","<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>");$Td=array();$Bc=array();reset($N);$if=1;foreach($M[0]as$z=>$X){if(!isset($Xg[$z])){$X=$_GET["columns"][key($N)];$l=$m[$N?($X?$X["col"]:current($N)):$z];$E=($l?$b->fieldName($l,$if):($X["fun"]?"*":$z));if($E!=""){$if++;$Td[$z]=$E;$c=idf_escape($z);$Qc=remove_from_uri('(order|desc)[^=]*|page').'&order%5B0%5D='.urlencode($z);$_b="&desc%5B0%5D=1";echo"<th>".script("mixin(qsl('th'), {onmouseover: partial(columnMouse), onmouseout: partial(columnMouse, ' hidden')});",""),'<a href="'.h($Qc.($re[0]==$c||$re[0]==$z||(!$re&&$fd&&$s[0]==$c)?$_b:'')).'">';echo
apply_sql_function($X["fun"],$E)."</a>";echo"<span class='column hidden'>","<a href='".h($Qc.$_b)."' 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);}}$wd=array();if($_GET["modify"]){foreach($M
as$L){foreach($L
as$z=>$X)$wd[$z]=max($wd[$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$Sd=>$L){$Ug=unique_array($M[$Sd],$w);if(!$Ug){$Ug=array();foreach($M[$Sd]as$z=>$X){if(!preg_match('~^(COUNT\((\*|(DISTINCT )?`(?:[^`]|``)+`)\)|(AVG|GROUP_CONCAT|MAX|MIN|SUM)\(`(?:[^`]|``)+`\))$~',$z))$Ug[$z]=$X;}}$Vg="";foreach($Ug
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);}$Vg.="&".($X!==null?urlencode("where[".bracket_escape($z)."]")."=".urlencode($X):"null%5B%5D=".urlencode($z));}echo"<tr".odd().">".(!$s&&$N?"":"<td>".checkbox("check[]",substr($Vg,1),in_array(substr($Vg,1),(array)$_POST["check"])).($fd||information_schema(DB)?"":" <a href='".h(ME."edit=".urlencode($a).$Vg)."' class='edit'>".'edit'."</a>"));foreach($L
as$z=>$X){if(isset($Td[$z])){$l=$m[$z];$X=$j->value($X,$l);if($X!=""&&(!isset($Ub[$z])||$Ub[$z]!=""))$Ub[$z]=(is_mail($X)?$Td[$z]:"");$A="";if(preg_match('~blob|bytea|raw|file~',$l["type"])&&$X!="")$A=ME.'download='.urlencode($a).'&field='.urlencode($z).$Vg;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=>$Sf)$A.=where_link($t,$n["target"][$t],$M[$Sd][$Sf]);$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"],$Ug))$A.=where_link($t++,$W["col"],$W["val"],$W["op"]);}foreach($Ug
as$id=>$W)$A.=where_link($t++,$id,$W);}$X=select_value($X,$A,$l,$xg);$u=h("val[$Vg][".bracket_escape($z)."]");$Y=$_POST["val"][$Vg][bracket_escape($z)];$Pb=!is_array($L[$z])&&is_utf8($X)&&$M[$Sd][$z]==$L[$z]&&!$Bc[$z];$wg=preg_match('~text|lob~',$l["type"]);if(($_GET["modify"]&&$Pb)||$Y!==null){$Hc=h($Y!==null?$Y:$L[$z]);echo"<td>".($wg?"<textarea name='$u' cols='30' rows='".(substr_count($L[$z],"\n")+1)."'>$Hc</textarea>":"<input name='$u' value='$Hc' size='$wd[$z]'>");}else{$_d=strpos($X,"<i>â¦</i>");echo"<td id='$u' data-text='".($_d?2:($wg?1:0))."'".($Pb?"":" data-warning='".h('Use edit link to modify this value.')."'").">$X</td>";}}}if($Ba)echo"<td>";$b->backwardKeysPrint($Ba,$M[$Sd]);echo"</tr>\n";}if(is_ajax())exit;echo"</table>\n","</div>\n";}if(!is_ajax()){if($M||$F){$ec=true;if($_GET["page"]!="last"){if($_==""||(count($M)<$_&&($M||!$F)))$_c=($F?$F*$_:0)+count($M);elseif($y!="sql"||!$fd){$_c=($fd?false:found_rows($R,$Z));if($_c<max(1e4,2*($F+1)*$_))$_c=reset(slow_query(count_rows($a,$Z,$fd,$s)));else$ec=false;}}$Ce=($_!=""&&($_c===false||$_c>$_||$F));if($Ce){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($Ce){$Fd=($_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($Fd,$F+5);$t++)echo
pagination($t,$F);if($Fd>0){echo($F+5<$Fd?" â¦":""),($ec&&$_c!==false?pagination($Fd,$F):" <a href='".h(remove_from_uri("page")."&page=last")."' title='~$Fd'>".'last'."</a>");}}else{echo"<legend>".'Page'."</legend>",pagination(0,$F).($F>1?" â¦":""),($F?pagination($F,$F):""),($Fd>$F?pagination($F+1,$F).($Fd>$F+1?" â¦":""):"");}echo"</fieldset>\n";}echo"<fieldset>","<legend>".'Whole result'."</legend>";$Eb=($ec?"":"~ ").$_c;echo
checkbox("all",1,0,($_c!==false?($ec?"":"~ ").lang(array('%d row','%d rows'),$_c):""),"var checked = formChecked(this, /check/); selectCount('selected', this.checked ? '$Eb' : checked); selectCount('selected2', this.checked || !checked ? '$Eb' : checked);")."\n","</fieldset>\n";if($b->selectCommandPrint()){echo'<fieldset',($_GET["modify"]?'':' class="jsonly"'),'><legend>Modify</legend><div>
<input type="submit" value="Save"',($_GET["modify"]?'':' title="'.'Ctrl+click on a value to modify it.'.'"'),'>
</div></fieldset>
<fieldset><legend>Selected <span id="selected"></span></legend><div>
<input type="submit" name="edit" value="Edit">
<input type="submit" name="clone" value="Clone">
<input type="submit" name="delete" value="Delete">',confirm(),'</div></fieldset>
';}$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>");$Ae=$b->dumpOutput();echo($Ae?html_select("output",$Ae,$ma["output"])." ":""),html_select("format",$yc,$ma["format"])," <input type='submit' name='export' value='".'Export'."'>\n","</div></fieldset>\n";}$b->selectEmailPrint(array_filter($Ub,'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"])){$Zf=isset($_GET["status"]);page_header($Zf?'Status':'Variables');$ih=($Zf?show_status():show_variables());if(!$ih)echo"<p class='message'>".'No rows.'."\n";else{echo"<table cellspacing='0'>\n";foreach($ih
as$z=>$X){echo"<tr>","<th><code class='jush-".$y.($Zf?"status":"set")."'>".h($z)."</code>","<td>".h($X);}echo"</table>\n";}}elseif(isset($_GET["script"])){header("Content-Type: text/javascript; charset=utf-8");if($_GET["script"]=="db"){$ig=array("Data_length"=>0,"Index_length"=>0,"Data_free"=>0);foreach(table_status()as$E=>$R){json_row("Comment-$E",h($R["Comment"]));if(!is_view($R)){foreach(array("Engine","Collation")as$z)json_row("$z-$E",h($R[$z]));foreach($ig+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"]==($Uf=="pgsql"?"table":"InnoDB")?"~ $X":$X));if(isset($ig[$z]))$ig[$z]+=($R["Engine"]!="InnoDB"||$z!="Data_free"?$R[$z]:0);}elseif(array_key_exists($z,$R))json_row("$z-$E");}}}foreach($ig
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{$qg=array_merge((array)$_POST["tables"],(array)$_POST["views"]);if($qg&&!$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";$pg=tables_list();if(!$pg)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();}}$Fb=doc_link(array('sql'=>'show-table-status.html'));echo"<div class='scrollable'>\n","<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'.$Fb,'<td>'.'Index Length'.$Fb,'<td>'.'Data Free'.$Fb,'<td>'.'Auto Increment'.doc_link(array('sql'=>'example-auto-increment.html','mariadb'=>'auto_increment/')),'<td>'.'Rows'.$Fb,(support("comment")?'<td>'.'Comment'.$Fb:''),"</thead>\n";$S=0;foreach($pg
as$E=>$U){$lh=($U!==null&&!preg_match('~table~i',$U));$u=h("Table-".$E);echo'<tr'.odd().'><td>'.checkbox(($lh?"views[]":"tables[]"),$E,in_array($E,$qg,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($lh){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)."'>");}$S++;}echo(support("comment")?"<td id='Comment-".h($E)."'>":"");}echo"<tr><td><th>".sprintf('%d in total',count($pg)),"<td>".h($y=="sql"?$e->result("SELECT @@storage_engine"):""),"<td>".h(db_collation(DB,collations()));foreach(array("Data_length","Index_length","Data_free")as$z)echo"<td align='right' id='sum-$z'>";echo"</table>\n","</div>\n";if(!information_schema(DB)){echo"<div class='footer'><div>\n";$gh="<input type='submit' value='".'Vacuum'."'> ".on_help("'VACUUM'");$oe="<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"?$gh:($y=="pgsql"?$gh.$oe:($y=="sql"?"<input type='submit' value='".'Analyze'."'> ".on_help("'ANALYZE TABLE'").$oe."<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
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";$zf=routines();if($zf){echo"<table cellspacing='0'>\n",'<thead><tr><th>'.'Name'.'<td>'.'Type'.'<td>'.'Return type'."<td></thead>\n";odd('');foreach($zf
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
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";$cc=$e->result("SELECT @@event_scheduler");if($cc&&$cc!="ON")echo"<p class='error'><code class='jush-sqlset'>event_scheduler</code>: ".h($cc)."\n";}echo'<p class="links"><a href="'.h(ME).'event=">'.'Create event'."</a>\n";}if($pg)echo
script("ajaxSetHtml('".js_escape(ME)."script=db');");}}}page_footer();