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: menu.php
<?php $admin_account_id = Session::get('member_id',SESSION_BACKEND); //æææŽé $strSQL = "SELECT menu_detail_id FROM acl_mapping WHERE admin_account_id='$admin_account_id'"; $acl_mapping=$db->Execute($strSQL); //įŽŽäļåąĪ // $strSQL = 'select * from menu_detail where disyn=1 and '; $strSQL = 'SELECT * FROM menu_detail where 1 '; $k=0; //å å ĨæææŽéé įŪ if($acl_mapping[0]['menu_detail_id']!=''): foreach ($acl_mapping as $vv) { if($k==0){ $strSQL .='AND ('; } if($k>0){ $strSQL .=' OR '; } $strSQL .=' id='.$vv['menu_detail_id']; $k++; } if($k>0){ $strSQL .=') AND up_id=0 '; } $strSQL .= ' OR id=1 ORDER BY sort DESC,id'; else: $strSQL .= ' AND id=1 ORDER BY sort DESC,id'; endif; $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']); $arr_menu[$i]['icon'] = ($vvv['icon']); // $acl_mapping->MoveFirst(); $k=0; //įŽŽäšåąĪ $strSQL = 'select * from menu_detail where 1 and '; // $strSQL = 'select * from menu_detail where disyn=1 and '; //å å ĨæææŽéé įŪ foreach ($acl_mapping as $vv) { if($k==0){$strSQL .='(';} if($k>0){$strSQL .=' or ';} $strSQL .=' id='.$vv['menu_detail_id']; $k++; } if($k>0){$strSQL .=') and ';} $strSQL .= ' up_id ='.$vvv['id'].' order by sort desc,id'; $rs1 = $db->Execute($strSQL); $j=0; foreach ($rs1 as $kk) { $arr_menu[$i]['sub_menu'][$j]['menu_name'] = htmlspecialchars($kk['menu_name']); $arr_menu[$i]['sub_menu'][$j]['id'] = $kk['id']; $arr_menu[$i]['sub_menu'][$j]['func_page'] = htmlspecialchars($kk['func_page']); $arr_menu[$i]['sub_menu'][$j]['is_blank'] = ($kk['is_blank']); $arr_menu[$i]['sub_menu_id'][]=$kk['id']; $j++; } $i++; } //äļéæŽéįĻ // $strSQL = 'select * from menu_detail where up_id="0" order by sort desc,id'; // $rs = $db->Execute($strSQL); // unset($arr_menu); // $arr_menu = $rs; $nowurl = $_SERVER['PHP_SELF']; $strary=explode("/",$nowurl); $nownum = count($strary) - 1; $nowurl = $strary[$nownum]; $strSQL = "select * from `menu_detail` where func_page = '".$nowurl."'"; $arr_menudata = $db->Execute($strSQL); $now_menu_id = $arr_menudata[0]['up_id']; ?> <ul id="c-aside" class="nav nav-pills nav-stacked" data-pgc="c-aside"> <?php Func::MakeMenu($arr_menu, $now_menu_id); ?> </ul>
Upload File
Create Folder