⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ursites
/
public_html
/
public
/
website
/
app
/
CPU
/
View File Name :
filemanager.php
<?php namespace App\CPU; class FileManagerLogic { private static function get_file_name($path) { $temp = explode('/',$path); return end($temp); } private static function get_file_ext($name) { $temp = explode('.',$name); return end($temp); } private static function get_path_for_db($full_path) { $temp = explode('/',$full_path, 3); return end($temp); } public static function format_file_and_folders($files, $type) { $data = []; foreach($files as $file) { $name = self::get_file_name($file); $ext = self::get_file_ext($name); $path = ''; if($type == 'file') { $path = $file; } if($type == 'folder') { $path = $file; } if(in_array($ext, ['jpg', 'png', 'jpeg', 'gif', 'bmp', 'tif', 'tiff', 'webp']) || $type=='folder') $data[] = [ 'name'=> $name, 'path'=> $path, 'db_path'=> self::get_path_for_db($file), 'type'=>$type ]; } return $data; } }