tiny-slitaz view step3.php @ rev 19

100 uers max
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 12:16:10 2017 +0100 (2017-02-12)
parents 577e6e91216d
children
line source
1 <?php
3 if (isset($_POST['kernel']) &&
4 (isset($_POST['modules'])) &&
5 !isset($_POST['packages'])) {
6 if (isset($_POST['selected'])) {
7 upload("mypackages");
8 $last = count($_POST['selected'])-1;
9 if ($_POST['selected'][$last] == "uploaded") {
10 unset($_POST['selected'][$last]);
11 }
12 $_POST['packages'] = $_POST['modules'].' '.implode(" ",$_POST['selected']);
13 unset($_POST['selected']);
14 }
15 }
17 if (isset($_POST['kernel']) &&
18 (isset($_POST['modules'])) &&
19 !isset($_POST['packages'])) {
21 mkdir($_POST["tmp_dir"]."/fs");
22 if ($_POST['kernel'] != "custom") {
23 shell_exec("sudo ./helper --pre-install ".$_POST['kernel'].
24 " ".$_POST['tmp_dir']);
25 }
26 ?>
28 <div class="box">
29 <h3>[Step 3/5] Additional RAM filesystem</h3>
31 <form enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" name="packages">
33 <?php
34 echo shell_exec("./helper --list-pkgs ".$_POST["tmp_dir"]);
35 post_hidden();
36 ?>
38 <div align="center">
39 <input name="continue" value="Continue" type="submit" />
40 </div>
42 </form>
43 </div>
45 <?php
46 }
47 ?>