source: llx-bootmanager/trunk/fuentes/install.llx-bootmanager/usr/share/llxbootmanager/www-boot/getmenujson.php @ 415

Last change on this file since 415 was 415, checked in by hectorgh, 3 years ago

adding project files

File size: 819 bytes
Line 
1<?php
2 
3header ( "Content-type: text/plain" );
4
5$default_boot=""; // To set default boot when reading
6// Include all files in pxemenu.d menu
7
8$MenuList=array();
9
10foreach (glob("pxemenu.d/*.php") as $filename)
11{
12        $MenuEntryListObject=null;
13        // $ filename should define $MenuEntryListObject
14        include $filename;             
15        if($MenuEntryListObject!=null){
16                foreach($MenuEntryListObject as $entry){
17                        array_push($MenuList, $entry);
18                }       
19        }       
20}
21
22echo json_encode($MenuList);
23
24
25
26
27
28/* 
29label ubuntu
30kernel pxe/ubuntu/vmlinuz-3.2.0-23-generic
31append ro initrd=/pxe/ubuntu/initrd.img-3.2.0-23-generic init=/sbin/init-ltsp quiet splash plymouth:force-splash vt.handoff=7 root=/dev/nbd0 nbdroot=10.2.1.254:/opt/ltsp/ubuntu
32
33
34LABEL iso
35 MENU iso
36 MENU LABEL Boot mini iso
37 KERNEL memdisk
38 APPEND iso ro initrd=isos/mini.iso
39*/
40
41?>
42
43
Note: See TracBrowser for help on using the repository browser.