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: admin_data.php
<?php //phpinfo(); //exit; $member_id = Session::get('member_id',SESSION_BACKEND); switch ($_GET['func']): case "update": $member_id = $_GET['id']; $strSQL = "select * from member where id = '$member_id'"; $arr_data = $db->Execute($strSQL); if($db->Affected_Rows()<1){ FuncSite::msg_box_error('æĨįĄčŗæīŧ'); Func::go_to(-1); exit; } $strSQL = "select * from desktop_list where member_id = '".$arr_data[0]['id']."' order by update_time desc limit 1"; $arr_login = $db->Execute($strSQL); $old_pwd = $arr_data[0]['m_pwd']; if($_POST['flag'] == 'true'){ foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } $update_date = time(); if ($m_id == $m_pwd) { FuncSite::msg_box_error('叺čå¯įĸŧä¸åžį¸åīŧ'); Func::go_to(-1); exit; } if ($m_pwd != '') { // if (!preg_match("/^(?=^.{6,12}$)((?=.*[0-9])(?=.*[a-z|A-Z]))^.*$/", $m_pwd)) { // FuncSite::msg_box_error('å¯įĸŧéˇåēĻé įē6~12åå īŧä¸å åĢčŗå°ä¸åæ¸ååčąæīŧ'); // Func::go_to(-1); // exit; // } $m_pwd = Password::hash($m_pwd); $data = array( 'm_name'=>$m_name, 'm_id'=>$m_id, 'm_pwd'=>$m_pwd, 'status'=>$status, 'update_date'=>date('Y-m-d H:i:s'), ); }else{ $data = array( 'm_name'=>$m_name, 'm_id'=>$m_id, 'status'=>$status, 'update_date'=>date('Y-m-d H:i:s'), ); } $a = $db->update('member',$data,"id = '$member_id'"); if(!$a){ FuncSite::msg_box('æ´æ°æåīŧ'); }else{ FuncSite::msg_box_error('æ´æ°å¤ąæīŧ'); } Func::go_to($func_page . '.php'); exit; } $data = array(); array_push($data, array( 'title' => 'åį¨č¨åŽ', 'type' => 'radio', 'name' => 'status', 'value' => $arr_data[0]['status'], 'options'=>$arr_ison ) ); array_push($data, array( 'title' => 'įŽĄįåĄåį¨ą', 'type' => 'text', 'name' => 'm_name', "required" => true, 'value' =>$arr_data[0]['m_name'] ) ); array_push($data, array( 'title' => '叺č', 'type' => 'text', 'name' => 'm_id', "required" => true, 'value' =>$arr_data[0]['m_id'] ) ); array_push($data, array( 'title' => 'å¯įĸŧ', 'type' => 'password', 'name' => 'm_pwd', ) ); $arr_form1 = array( "func" => 'update', "form_title" => 'åēæŦč¨åŽ', "form_name" => 'form1', "elements" => $data ); $arr_date = array( "create_date" => $arr_data[0]['create_date'], "update_date" => $arr_data[0]['update_date'], "last_login_date" => $arr_login[0]['update_time'], "last_login_ip" => $arr_login[0]['client_ip'] ); break; case "delete": $member_id = $_GET['id']; $strSQL = "select * from member where id = '$member_id'"; $db->Execute($strSQL); if($db->Affected_Rows()<1){ FuncSite::msg_box_error('æĨįĄčŗæīŧ'); Func::go_to(-1); exit; } $db->delete('member',"id='$member_id'"); if(!$a){ FuncSite::msg_box('åĒ餿åīŧ'); }else{ FuncSite::msg_box_error('åĒé¤å¤ąæīŧ'); } Func::go_to($func_page . '.php'); exit; break; case "insert": if($_POST['flag'] == 'true'){ foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } $data = array( 'm_name'=>$m_name, 'm_id'=>$m_id, 'm_pwd'=>Password::hash($m_pwd), 'status'=>$status, 'create_date'=>date('Y-m-d H:i:s'), 'update_date'=>date('Y-m-d H:i:s'), ); $a = $db->insert('member',$data); //exit; if($a){ FuncSite::msg_box('æ°åĸæåīŧ'); }else{ FuncSite::msg_box_error('æ°åĸå¤ąæīŧ'); } Func::go_to($func_page . '.php'); exit; } $data = array(); array_push($data, array( 'title' => 'åį¨č¨åŽ', 'type' => 'radio', 'name' => 'status', 'value' => '1', 'options'=>$arr_ison ) ); array_push($data, array( 'title' => 'įŽĄįåĄåį¨ą', 'type' => 'text', 'name' => 'm_name', "required" => true, 'value' =>'' ) ); array_push($data, array( 'title' => '叺č', 'type' => 'text', 'name' => 'm_id', "required" => true, 'value' =>'' ) ); array_push($data, array( 'title' => 'å¯įĸŧ', 'type' => 'password', 'name' => 'm_pwd', "required" => true, 'value' =>'' ) ); $arr_form1 = array( "func" => 'insert', "form_name" => 'form1', "form_title" => 'åēæŦč¨åŽ', "elements" => $data ); break; default: $arr_data = array(); $andSQL = ''; $strSQL = "select * from member where 1 $andSQL order by id desc"; // echo $strSQL; // exit; $rs = $db->Execute($strSQL); $rows = $db->Affected_Rows(); $curr_page = $_GET['curr_page']; $last_page = ceil($rows / __DATA_PER_PAGE); if ($curr_page > $last_page) $curr_page = $last_page; if ($curr_page < 1) $curr_page = 1; if ($last_page == 0) $curr_page = 0; $arr_data = $db->PageExecute($strSQL, __DATA_PER_PAGE, $curr_page); endswitch; ?>
Upload File
Create Folder