tiny-slitaz view step3.php @ rev 2
Auto-update files.list.lzma (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 21 18:15:37 2012 +0200 (2012-08-21) |
parents | |
children | 577e6e91216d |
line source
1 <?php
3 if (isset($_POST['kernel']) &&
4 ($_POST['kernel'] != "kernel-modular" || 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'] = implode(" ",$_POST['selected']);
13 unset($_POST['selected']);
14 }
15 }
17 if (isset($_POST['kernel']) &&
18 ($_POST['kernel'] != "kernel-modular" || 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 <a name="initramfs"></a>
29 <h2>Additional RAM filesystem</h2>
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 ?>
37 <p>
38 </p>
40 <div align="center">
41 <input name="continue" value="Continue" type="submit" />
42 </div>
44 </form>
46 <?php
47 }
48 ?>