tiny-slitaz rev 21
May upload memtest & ipxe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 18 11:32:08 2017 +0200 (2017-08-18) |
parents | 694b6eb6f4f9 |
children | 3caae5e3e0f7 |
files | download.php step4.php step5.php |
line diff
1.1 --- a/download.php Sun Feb 19 18:45:16 2017 +0000 1.2 +++ b/download.php Fri Aug 18 11:32:08 2017 +0200 1.3 @@ -18,6 +18,9 @@ 1.4 if (isset($_POST['download'])) { 1.5 switch (substr($_POST['download'],0,6)) { 1.6 case "Kernel" : download("fs/boot/bzImage","kernel"); 1.7 + case "Memtes" : download("fs/boot/memtest"); 1.8 + case "GPXE (" : download("fs/boot/gpxe"); 1.9 + case "IPXE (" : download("fs/boot/ipxe"); 1.10 case "Rootfs" : download("rootfs.gz"); 1.11 case "packag" : download("fs/etc/packages.conf"); 1.12 case "Config" : shell_exec("sudo ./helper --mkcfg ".$_POST['tmp_dir']);
2.1 --- a/step4.php Sun Feb 19 18:45:16 2017 +0000 2.2 +++ b/step4.php Fri Aug 18 11:32:08 2017 +0200 2.3 @@ -44,6 +44,8 @@ 2.4 </p> 2.5 <ol> 2.6 EOT; 2.7 + $checked = "checked=\"checked\" "; 2.8 + if (file_exists($_POST["tmp_dir"]."uploadconf")) $checked = ""; 2.9 foreach (explode(" ", $suggested) as $sug) 2.10 if (!strstr(" ".$_POST['packages']." ", 2.11 " ".$sug." ")) { 2.12 @@ -51,7 +53,7 @@ 2.13 $sugghead = ""; 2.14 $output .= <<<EOT 2.15 <li> 2.16 - <input type="checkbox" name="suggested[]" value="$sug" checked="checked" />$sug 2.17 + <input type="checkbox" name="suggested[]" value="$sug" $checked/>$sug 2.18 </li> 2.19 EOT; 2.20 }
3.1 --- a/step5.php Sun Feb 19 18:45:16 2017 +0000 3.2 +++ b/step5.php Fri Aug 18 11:32:08 2017 +0200 3.3 @@ -49,6 +49,18 @@ 3.4 ?>)" type="submit" /> 3.5 <input name="download" value="Rootfs (<?php echo show_size("rootfs.gz"); 3.6 ?>)" title="For the initrd= parameter" type="submit" /> 3.7 +<?php if (show_size("fs/boot/memtest") != "") { ?> 3.8 + <input name="download" value="Memtest (<?php echo show_size("fs/boot/memtest"); 3.9 + ?>)" type="submit" /> 3.10 +<?php } ?> 3.11 +<?php if (show_size("fs/boot/gpxe") != "") { ?> 3.12 + <input name="download" value="GPXE (<?php echo show_size("fs/boot/gpxe"); 3.13 + ?>)" type="submit" /> 3.14 +<?php } ?> 3.15 +<?php if (show_size("fs/boot/ipxe") != "") { ?> 3.16 + <input name="download" value="IPXE (<?php echo show_size("fs/boot/ipxe"); 3.17 + ?>)" type="submit" /> 3.18 +<?php } ?> 3.19 </td></tr> 3.20 3.21