? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/include/
File Upload :
Current File : /home/admin/public_html/include/module.php

<?

$queryc = "SELECT column_comment ,column_name,table_name  FROM information_schema.columns  where table_name='user' or table_name='product'  ";
$resc =  mysql_query($queryc);
$i=0;
$j=0; 
while($fc = mysql_fetch_array($resc)){		 
$myarray2[$i][$j] = $fc[column_name]; 
$j++;
$myarray2[$i][$j] = $fc[column_comment];
$i++;
$j=0;
}
//print_r($myarray2);


function get_comm($column_name,$array){	
//$query = "SELECT column_comment AS comment FROM information_schema.columns WHERE   table_name = '$table' and column_name='$column_name' ";
//$res =  mysql_query($query);
//while($f = mysql_fetch_array($res)){
//$comm=$f[comment]; 
//}
for ($i=0;$i<count($array);$i++){
	if($array[$i][0]==$column_name){		
				$com = $array[$i][1];
	}
	
}

return $com;
}

function  get_comm_form_pos($pos,$table){
	$sql = "select * from $table ";
	$res = mysql_query($sql);
	while($f = mysql_fetch_field($res)){
		$fx[]= $f->name;		
	}
	return $fx[$pos];
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$