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_class_data.php
<?php //phpinfo(); //exit; $member_id = Session::get('member_id', SESSION_BACKEND); switch ($_GET['func']): case "update": $product_class_id = $_GET['id']; $strSQL = "select * from product_class where id = '$product_class_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']; $img1 = $arr_data[0]['img1']; if ($_POST['flag'] == 'true') { foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } $lang1 = $_POST['lang']; $lang_fin = implode(',', $lang1); 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, 590, 310); } else { Func::ImageResize($_FILES['img']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img, 590, 310); } } if ($_FILES['img1']['tmp_name']) { $ext = strtolower(pathinfo($_FILES['img1']['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 . $img1); $img1 = time() . rand(100, 999) . '.' . $ext; // @copy($_FILES['img1']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img1); if ($ext == 'png' || $ext == 'gif') { Func::ImageResize_Transparent($_FILES['img1']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img1, 650, 380); } else { Func::ImageResize($_FILES['img1']['tmp_name'], __SERVER_IMAGES_FOLDER . DIRECTORY_SEPARATOR . $img1, 650, 380); } } if ($del_img == 'true') { $img = ''; } if ($del_img1 == 'true') { $img1 = ''; } $data = array( 'title_tw' => $title_tw, 'title_en' => $title_en, 'title_jp' => $title_jp, 'summary_tw' => $summary_tw, 'summary_en' => $summary_en, 'summary_jp' => $summary_jp, 'content_tw' => $content_tw, 'content_en' => $content_en, 'content_jp' => $content_jp, 'sort' => $sort, // 'status' => $status, 'update_date' => date('Y-m-d H:i:s'), 'lang' => $lang_fin, 'img' => $img, 'img1' => $img1, ); $a = $db->update('product_class', $data, "id = '$product_class_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' => 'checkbox', // 'name' => 'lang', // 'value' => $arr_data[0]['lang'], // 'help' => 'ไธญๆ้ ่จญ้ๅใ', // 'options' => $arr_lang, // ) // ); array_push($data, array( 'title' => 'ๆๅบ', 'type' => 'text', 'name' => 'sort', 'value' => $arr_data[0]['sort'], ) ); array_push($data, array( 'title' => 'ไธญๆ', 'type' => 'more_title', ) ); array_push($data, array( 'title' => '้กๅฅๅ็จฑ', 'type' => 'text', 'name' => 'title_tw', 'value' => $arr_data[0]['title_tw'], 'length' => 30, 'max_length' => 50, "required" => true, ) ); array_push($data, array( 'title' => '้กๅฅ็ฐกไป', 'type' => 'textarea', 'name' => 'summary_tw', 'value' => $arr_data[0]['summary_tw'], 'rows' => 10, "required" => true, ) ); array_push($data, array( 'title' => '้กๅฅๅ งๅฎน', 'type' => 'html', 'name' => 'content_tw', 'value' => $arr_data[0]['content_tw'], 'height' => 800, 'css' => ['../css/style.css','../css/bootstrap.css'], "required" => true, ) ); array_push($data, array( 'title' => '่ฑๆ', 'type' => 'more_title', ) ); array_push($data, array( 'title' => '้กๅฅๅ็จฑ', 'type' => 'text', 'name' => 'title_en', 'value' => $arr_data[0]['title_en'], 'length' => 30, 'max_length' => 50, ) ); array_push($data, array( 'title' => '้กๅฅ็ฐกไป', 'type' => 'textarea', 'name' => 'summary_en', 'value' => $arr_data[0]['summary_en'], 'rows' => 10, "required" => true, ) ); array_push($data, array( 'title' => '้กๅฅๅ งๅฎน', 'type' => 'html', 'name' => 'content_en', 'value' => $arr_data[0]['content_en'], 'height' => 800, 'css' => ['../css/style.css','../css/bootstrap.css'], "required" => true, ) ); array_push($data, array( 'title' => 'ๆฅๆ', 'type' => 'more_title', ) ); array_push($data, array( 'title' => '้กๅฅๅ็จฑ', 'type' => 'text', 'name' => 'title_jp', 'value' => $arr_data[0]['title_jp'], 'length' => 30, 'max_length' => 50, ) ); array_push($data, array( 'title' => '้กๅฅ็ฐกไป', 'type' => 'textarea', 'name' => 'summary_jp', 'value' => $arr_data[0]['summary_jp'], 'rows' => 10, "required" => true, ) ); array_push($data, array( 'title' => '้กๅฅๅ งๅฎน', 'type' => 'html', 'name' => 'content_jp', 'value' => $arr_data[0]['content_jp'], 'height' => 800, 'css' => ['../css/style.css','../css/bootstrap.css'], "required" => true, ) ); array_push($data, array( 'title' => 'ๅ็', 'type' => 'more_title', ) ); array_push($data, array( 'title' => '้ฆ้ ๅ็(PC)', 'type' => 'image_ajax_fileinput', 'name' => 'img', 'value' => $arr_data[0]['img'], 'help' => 'ๅปบ่ญฐๅฏฌ้ซ: 590 * 310 ๏ผๆ็ญๆฏไพไนๅ็ใ', 'pre_folder' => __WEB_IMAGES_FOLDER, // 'max_size' => 4096, 'delete' => true, ) ); array_push($data, array( 'title' => '้ฆ้ ๅ็(MOBILE)', 'type' => 'image_ajax_fileinput', 'name' => 'img1', 'value' => $arr_data[0]['img1'], 'help' => 'ๅปบ่ญฐๅฏฌ้ซ: 650 * 380 ๏ผๆ็ญๆฏไพไนๅ็ใ', '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_class_id = $_GET['id']; $strSQL = "select * from product_class where id = '$product_class_id'"; $db->Execute($strSQL); if ($db->Affected_Rows() < 1) { FuncSite::msg_box_error('ๆฅ็ก่ณๆ๏ผ'); Func::go_to(-1); exit; } $db->delete('product_class', "id='$product_class_id'"); Func::go_to($func_page . '.php'); exit; break; default: $arr_data = array(); $andSQL = ''; $status = $_GET['status']; $keyword = $_GET['keyword']; if ($status != '' and $status != 3) { $andSQL = "and status=" . $status; } elseif ($keyword != '') { $andSQL .= "and title like '%" . $keyword . "%'"; } $andSQL .= " and up_id=0"; $strSQL = "select * from product_class where 1 $andSQL order by sort asc"; // 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