summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authormichael pereira2011-07-18 13:14:19 +0200
committermichael pereira2011-07-18 13:14:19 +0200
commit83fee3ad5545e3902519cf7cc0fb44d56e881f22 (patch)
tree54e846f596486b31c8f4669d0619305200e0bc6c /application/views
parentipxe.lkrn (diff)
downloadpbs2-83fee3ad5545e3902519cf7cc0fb44d56e881f22.tar.gz
pbs2-83fee3ad5545e3902519cf7cc0fb44d56e881f22.tar.xz
pbs2-83fee3ad5545e3902519cf7cc0fb44d56e881f22.zip
login fuer ipxe
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/resource/getvesamenu.phtml144
1 files changed, 0 insertions, 144 deletions
diff --git a/application/views/scripts/resource/getvesamenu.phtml b/application/views/scripts/resource/getvesamenu.phtml
deleted file mode 100644
index c920d65..0000000
--- a/application/views/scripts/resource/getvesamenu.phtml
+++ /dev/null
@@ -1,144 +0,0 @@
-<?php
-
-// $username = $_SERVER["PHP_AUTH_USER"];
-// $password = $_SERVER["PHP_AUTH_PW"];
-
- $index = 0;
-
- function title ( $title ) {
- global $username;
- echo "menu title ".$title;
- echo ( $username ? " for ".$username : "" )."\n";
- }
-
- function label ( $label ) {
- global $index;
- $index++;
- echo "label item".$index."\n";
- echo " menu label ";
- echo "^".( ( $index < 10 ) ? $index :
- sprintf ( "%c", $index + ord ( 'A' ) - 10 ) )." ";
- echo $label."\n";
- }
-
- function uriboot ( $label, $uri, $args ) {
- label ( $label );
- echo " kernel ".$uri."\n";
- if ( $args )
- echo " append ".$args."\n";
- }
-
- function localboot () {
- label ( "LOCALBOOT");
- echo "LOCALBOOT -1\n";
- texthelp("Gets you out of here by booting from next device in BIOS boot
- order.");
- }
-
- function texthelp ( $texthelp ){
- echo "TEXT HELP\n";
- echo $texthelp."\n";
- echo "ENDTEXT\n";
- }
-
- function retry () {
- echo "label failed\n";
- echo " menu label Authentication Failed\n";
- echo " menu disable\n";
- uriboot ( "Try again", "ipxe.php", "" );
- }
-
- function authenticated () {
- global $username;
- global $password;
-
- switch ( "$username:$password" ) {
- case "test:test":
- case "guest:guest":
- return 1;
- default:
- return 0;
- }
- }
-
- ?>
-TIMEOUT 100
-PROMPT 0
-DEFAULT vesamenu.c32
-
-MENU BACKGROUND http://pbs2.mp.openslx.org/media/img/pbs2.png
-MENU WIDTH 78
-MENU MARGIN 9
-MENU PASSWORDMARGIN 9
-MENU ROWS 10
-MENU TABMSGROW 16
-MENU CMDLINEROW 16
-MENU ENDROW -1
-MENU PASSWORDROW 16
-MENU TIMEOUTROW 20
-MENU HELPMSGROW 16
-MENU HELPMSGENDROW -1
-MENU HSHIFT 0
-MENU VSHIFT 7
-
-#menu color screen 37;40 #80ffffff #00000000 std
-menu color border 37;40 #00000000 #00000000 std
-menu color title 1 #ee004a99 #00000000 all
-menu color unsel 37;40 #ff4f75aa #00000000 all
-menu color hotkey 1;37;40 #ffff8b00 #ff8093a1 std
-menu color sel 7;37;40 #ff1c2a33 #667799bb all
-#menu color hotsel 1;7;37;40 #ffff8b00 #667799bb all
-#menu color disabled 1;37;40 #ffff8b00 #ff8093a1 std
-#menu color scrollbar 37;40 #40000000 #ee000000 std
-#menu color tabmsg 37;40 #ffff8b00 #ff8093a1 std
-#menu color cmdmark 1;37;40 #ffff8b00 #ff8093a1 std
-#menu color cmdline 37;40 #fff0f0f0 #ff8093a1 std
-#menu color pwdborder 37;40 #40000000 #ff8093a1 std
-#menu color pwdheader 37;40 #ffff8b00 #ff8093a1 std
-#menu color pwdentry 37;40 #ffff8b00 #ff8093a1 std
-#menu color timeout_msg 37;40 #fff0f0f0 #ff8093a1 std
-#menu color timeout 1;37;40 #ffff8b00 #ff8093a1 std
-#menu color help 37;40 #ff1c2a33 #00000000 none
-MENU MSGCOLOR #ff1c2a33 #00000000 none
-
-<?
-
-// title ( "Welcome to OpenSLX PreBoot USB Ext2/3 (Mini Linux/Kexec)" );
-//
-// if ( ! authenticated() ) {
-// retry();
-// } else {
-//
-// if ( $username == "test" ) {
-//
-// localboot();
-// }
-foreach($bmelist as $bmelist){
-
-uriboot ( "Ubuntu 10.04",
- "http://$this->host/resource/getkernel/alpha/0/bootmenuentryID/7/file/kernel", "initrd=http://$this->host/resource/getinitramfs/alpha/0/bootmenuentryID/7/file/initramfs alpha=0 file=http://$this->host/resource/getconfig/alpha/0/bootmenuentryID/7/file/default.tgz");
-
-}
-
-localboot();
-// }
-
-// LABEL SLXSTDBOOT
-// MENU LABEL
-// KERNEL kernel
-// APPEND initrd=init vga=0x317
-// TEXT HELP
-// Use this (default) entry if you have configured your client.
-// You have chance to edit the kernel commandline by hitting the
-// TAB key (e.g. for adding debug=3 to it for bug hunting) ...
-// ENDTEXT
-//LABEL DEBUGBOOT
-// MENU LABEL OpenSLX PreBoot - Debug Mode
-// KERNEL kernel
-// APPEND initrd=init vga=0x317 debug=3
-// TEXT HELP
-// Use this to start the preboot environment with debug shells.
-// ENDTEXT
-
-
- ?> \ No newline at end of file