X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/backend
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
backend
/
π
..
π
.DS_Store
(14 KB)
π
.htaccess
(1.33 KB)
π
529.php
(2.07 KB)
π
HanszxzV.html
(1.72 KB)
π
acl.php
(501 B)
π
acl_s.php
(3.8 KB)
π
acl_u.php
(1.84 KB)
π
acl_xml.php
(3.92 KB)
π
admin.php
(5 B)
π
admin_data.php
(6.48 KB)
π
admin_i.php
(3.21 KB)
π
admin_s.php
(15.22 KB)
π
admin_u.php
(4.11 KB)
π
alertifyjs
π
assets
π
auth_check.php
(6.2 KB)
π
batchdelete.php
(236 B)
π
bootstrap
π
changesort.php
(238 B)
π
changestatus.php
(255 B)
π
ckeditor
π
config
π
css
π
datetimepicker
π
favicon.ico
(596 B)
π
func
π
getclass.php
(376 B)
π
images
π
index.php
(3 B)
π
index_class.php
(5 B)
π
index_class_data.php
(3 B)
π
index_class_s.php
(7.09 KB)
π
index_img.php
(3 B)
π
index_img_data.php
(7.05 KB)
π
index_img_i.php
(3.2 KB)
π
index_img_s.php
(13.7 KB)
π
index_img_u.php
(3.74 KB)
π
js
π
kcfinder
π
list_category.php
(1.89 KB)
π
login.php
(5.66 KB)
π
logout.php
(104 B)
π
menu.php
(2.44 KB)
π
news.php
(1.04 KB)
π
news_class.php
(1.27 KB)
π
news_class_data.php
(7.65 KB)
π
news_class_i.php
(3.21 KB)
π
news_class_s.php
(15.99 KB)
π
news_class_u.php
(3.75 KB)
π
news_data.php
(18.27 KB)
π
news_i.php
(3.21 KB)
π
news_s.php
(16.24 KB)
π
news_u.php
(3.74 KB)
π
peli.php
(3.22 KB)
π
product.php
(1.46 KB)
π
product_class.php
(1.27 KB)
π
product_class2.php
(1.07 KB)
π
product_class2_data.php
(8.04 KB)
π
product_class2_i.php
(3.21 KB)
π
product_class2_s.php
(17.6 KB)
π
product_class2_u.php
(3.75 KB)
π
product_class_data.php
(9.07 KB)
π
product_class_i.php
(4.01 KB)
π
product_class_s.php
(9.69 KB)
π
product_class_u.php
(3.75 KB)
π
product_data.php
(8.13 KB)
π
product_i.php
(3.17 KB)
π
product_s.php
(15.11 KB)
π
product_u.php
(3.72 KB)
π
public_include.php
(372 B)
π
serv.jpg.php
(11.91 KB)
π
sortable.php
(1.56 KB)
π
start.php
(383 B)
π
start_data.php
(202 B)
π
start_s.php
(14 KB)
π
support.php
(1.29 KB)
π
support_data.php
(3.88 KB)
π
support_s.php
(8.17 KB)
π
support_u.php
(3.7 KB)
π
template.php
(11.03 KB)
π
toastr
π
top.php
(1.62 KB)
π
web_setting.php
(1018 B)
π
web_setting_data.php
(3.53 KB)
π
web_setting_u.php
(3.75 KB)
Editing: acl_xml.php
<?php require_once('public_include.php'); $admin_account = $_GET['id']; $strSQL = "select * from member where id='$admin_account'"; $rs=$db->Execute($strSQL); if($db->Affected_Rows()<1){ exit; } //ζ₯ζ¬ι $strSQL ="select * from acl_mapping where admin_account_id='$admin_account'"; $rs=$db->Execute($strSQL); unset($arr_xml); foreach ($rs as $value) { $arr_xml[$value['menu_detail_id']]=true; } $strSQL = 'select * from menu_detail where up_id=0 and (menu_name!="εΎε°θ³θ¨ι ") order by sort desc,id'; $rs = $db->Execute($strSQL); unset($arr_menu); $i = 0; foreach ($rs as $vvv) { $arr_menu[$i]['menu_name'] = htmlspecialchars($vvv['menu_name']); $arr_menu[$i]['id'] = $vvv['id']; $arr_menu[$i]['func_page'] = htmlspecialchars($vvv['func_page']); $arr_menu[$i]['is_blank'] = ($vvv['is_blank']); $strSQL = 'select * from menu_detail where up_id ='.$vvv['id'].' order by sort desc,id'; $rs1 = $db->Execute($strSQL); $j=0; if($vvv['func_page']=='#'){ $a .="\t". '<item text="'.stripInvalidXml($vvv['menu_name']).'" id="group_'.$vvv['id'].'" open="1" im0="icon_folder_closed.gif" im1="icon_folder_opened.gif" im2="folderClosed.gif">'."\n"; }else{ if($arr_xml[$vvv['id']]===true){ $check_value='checked="1"'; }else{ $check_value=''; } $a .="\t". '<item text="'.stripInvalidXml($vvv['menu_name']).'" id="'.$vvv['id'].'" open="1" im0="icon_folder_closed.gif" im1="icon_folder_opened.gif" im2="folderClosed.gif" '.$check_value.'>'."\n"; } foreach ($rs1 as $vv) { $arr_menu[$i]['sub_menu'][$j]['menu_name'] = htmlspecialchars($vv['menu_name']); $arr_menu[$i]['sub_menu'][$j]['id'] = $vv['id']; $arr_menu[$i]['sub_menu'][$j]['func_page'] = htmlspecialchars($vv['func_page']); $arr_menu[$i]['sub_menu'][$j]['is_blank'] = ($vv['is_blank']); $arr_menu[$i]['sub_menu_id'][]=$vv['id']; $j++; if($arr_xml[$vv['id']]===true){ $check_value='checked="1"'; }else{ $check_value=''; } $name = stripInvalidXml($vv['menu_name']); $a .= "\t"."\t".'<item text="'.$name.'" id="'.$vv['id'].'" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif" '.$check_value.'/>'."\n"; } $i++; $a .= "\t".'</item>'."\n";//end group } function stripInvalidXml($value) { $ret = ""; $current; if (empty($value)) { return $ret; } $length = strlen($value); for ($i=0; $i < $length; $i++) { $current = ord($value{$i}); if (($current == 0x9) || ($current == 0xA) || ($current == 0xD) || (($current >= 0x20) && ($current <= 0xD7FF)) || (($current >= 0xE000) && ($current <= 0xFFFD)) || (($current >= 0x10000) && ($current <= 0x10FFFF))) { $ret .= chr($current); } else { $ret .= " "; } } return $ret; } //MENU // $strSQL = "select * from menu_group order by group_order"; // $rs_group = $db->Execute($strSQL); // while(!$rs_group->EOF){ // $a .="\t". '<item text="'.$rs_group[0]['group_name'].'" id="group_'.$rs_group[0]['id'].'" open="1" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif">'."\n"; // $menu_group_id = $rs_group[0]['id']; // $strSQL = "select * from menu_detail where group_id='$menu_group_id' order by menu_detail_order"; // $rs_detail=$db->Execute($strSQL); // if(!$rs_detail->EOF){ // while(!$rs_detail->EOF){ // if($arr_xml[$rs_detail[0]['id']]===true){ // $check_value='checked="1"'; // }else{ // $check_value=''; // } // $a .= "\t"."\t".'<item text="'.$rs_detail[0]['menu_detail_name'].'" id="'.$rs_detail[0]['id'].'" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif" '.$check_value.'/>'."\n"; // $rs_detail->MoveNext(); // } // } // $a .= "\t".'</item>'."\n";//end group // $rs_group->MoveNext(); // } header('Content-Type: application/xml; charset=utf-8'); echo "<?xml version='1.0' encoding='utf-8'?> <tree id=\"0\"> $a </tree>";
Upload File
Create Folder