$SevenZHeader,"Information" => $FileInformation)); }else if($_GET["method"] == "e"){ $rand = $_GET["rand"]; mkdir('tmp/'.$rand,0777); system('./7za e -bsp1 -bso0 "'.$_GET["file"].'" "'.$_GET["dir"].'" -o"tmp/'.$rand.'/" > tmp/'.$rand.'messages',$output); echo json_encode(array("Extract finished. e")); }else if($_GET["method"] == "x"){ $rand = $_GET["rand"]; mkdir('tmp/'.$rand,0777); system('./7za x -bsp1 -bso0 "'.$_GET["file"].'" "'.$_GET["dir"].'" -o"tmp/'.$rand.'/" > tmp/'.$rand.'messages',$output); echo json_encode(array("Extract finished. x")); }