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