? 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/modules-bak/blog/
File Upload :
Current File : /home/admin/public_html/modules-bak/blog/function_user.php

<?

function select_cat_user($db_resource,$table,$name,$key_field,$value_field,$chk){
$html="<select name=$name class=\"backend_inputbox\">";
$result=$db_resource->Query("SELECT * FROM $table order by $value_field DESC");
while($data=mysql_fetch_array($result)){
	$v=$data[$value_field];
	$k=$data[$key_field];
	if($chk==$v && $chk!=''){
$html.="<option value=$v selected>$k</option>";
	}else{
$html.="<option value=\"$v\">$k</option>";
	}
}
$html.="</select>";
return $html;
}
function chang_field_user($db_resource,$table,$field,$field_change,$key){
$result=$db_resource->Query("SELECT $field_change FROM $table where $field='$key'");
$data=mysql_fetch_array($result);
$return=$data[$field_change];
return $return;
}
function CountData_user($db_resource,$table,$condition){
$arr=$db_resource->Query("SELECT COUNT(*) FROM $table $condition");
 $data=mysql_fetch_array($arr);
return $data[0];
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$