diff --git a/phpminiadmin.php b/phpminiadmin.php
index 5fb0c75..58ac789 100644
--- a/phpminiadmin.php
+++ b/phpminiadmin.php
@@ -206,7 +206,7 @@ function display_select($sth,$q){
for($i=0;$i<$fields_num;$i++){
if ($is_sht && $i>0) break;
$meta=mysqli_fetch_field($sth);
- $headers.="
".$meta->name."
";
+ $headers.="
".hs($meta->name)."
";
}
if ($is_shd) $headers.="
show create database
show table status
show triggers
";
if ($is_sht) $headers.="
engine
~rows
data size
index size
show create table
explain
indexes
export
drop
truncate
optimize
repair
comment
";
@@ -215,7 +215,7 @@ function display_select($sth,$q){
$swapper=false;
while($row=mysqli_fetch_row($sth)){
$sqldr.="
";
- $v=$row[0];
+ $v=hs($row[0]);
if ($is_sht){
$vq='`'.$v.'`';
$url='?'.$xurl."&db=$dbn&t=".b64e($v);
@@ -422,7 +422,7 @@ function cfg_toggle(){
e.style.display=e.style.display=='none'?'':'none';
}
function qtpl(s){
- $('qraw').value=s.replace(/%T/g,'``');
+ $('qraw').value=s.replace(/%T/g,'``');
}
function smview(){
if($('is_sm').checked){$('res').className+=' sm'}else{$('res').className = $('res').className.replace(/\bsm\b/,' ')}
@@ -452,11 +452,11 @@ function sht(f){
phpMiniAdmin
| ">Databases:
-
-'>show tables
-&shex=1'>export
-&shim=1'>import
+
+
+'>show tables
+&shex=1'>export
+&shim=1'>import
| Settings
@@ -542,7 +542,7 @@ function print_cfg(){
-
+
@@ -674,7 +674,7 @@ function sel($arr,$n,$sel=''){
foreach($arr as $a){
# echo $a[0];
$b=$a[$n];
- $res.="";
+ $res.="";
}
return $res;
}
@@ -958,7 +958,7 @@ function ex_w($s){
if ($ex_issrv){
fwrite($ex_f,$s);
}else{
- echo $s;
+ eo($s);
}
}
}
@@ -999,13 +999,13 @@ function print_import(){
.csv file (Excel style):
first row contain field names
(note: for success, field names should be exactly the same as in DB)
-Character set of the file:
+Character set of the file: