From 07769149f5d85368b173b3e26058cf6ec214a0a8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Jun 2014 18:36:32 +0200 Subject: Delete some more old files --- templates/download-complete.html | 1 - templates/download-error.html | 1 - templates/download-overwrite.html | 4 --- templates/download-progress.html | 6 ---- templates/txt-ipxeconfig.html | 7 ---- templates/txt-pxeconfig.html | 75 --------------------------------------- 6 files changed, 94 deletions(-) delete mode 100644 templates/download-complete.html delete mode 100644 templates/download-error.html delete mode 100644 templates/download-overwrite.html delete mode 100644 templates/download-progress.html delete mode 100644 templates/txt-ipxeconfig.html delete mode 100644 templates/txt-pxeconfig.html diff --git a/templates/download-complete.html b/templates/download-complete.html deleted file mode 100644 index 619f2551..00000000 --- a/templates/download-complete.html +++ /dev/null @@ -1 +0,0 @@ -
Download von {{file}} abgeschlossen
diff --git a/templates/download-error.html b/templates/download-error.html deleted file mode 100644 index 70826234..00000000 --- a/templates/download-error.html +++ /dev/null @@ -1 +0,0 @@ -
Downloading {{file}} {{#remote}} from {{remote}} {{/remote}} failed! ({{code}})
diff --git a/templates/download-overwrite.html b/templates/download-overwrite.html deleted file mode 100644 index eccad5d0..00000000 --- a/templates/download-overwrite.html +++ /dev/null @@ -1,4 +0,0 @@ -
- {{file}} ist bereits lokal vorhanden. Soll die lokale Version überschrieben werden? - Überschreiben -
diff --git a/templates/download-progress.html b/templates/download-progress.html deleted file mode 100644 index 81b31901..00000000 --- a/templates/download-progress.html +++ /dev/null @@ -1,6 +0,0 @@ -
-
- {{percent}}% Complete -
- -
diff --git a/templates/txt-ipxeconfig.html b/templates/txt-ipxeconfig.html deleted file mode 100644 index df8fb90f..00000000 --- a/templates/txt-ipxeconfig.html +++ /dev/null @@ -1,7 +0,0 @@ -#!ipxe -set use-cached 1 -dhcp net0 -set net0.dhcp/next-server {{{SERVER}}} -set net0.dhcp/filename ipxelinux.0 -imgload pxelinux.0 -boot pxelinux.0 diff --git a/templates/txt-pxeconfig.html b/templates/txt-pxeconfig.html deleted file mode 100644 index 571671b4..00000000 --- a/templates/txt-pxeconfig.html +++ /dev/null @@ -1,75 +0,0 @@ -DEFAULT vesamenu.c32 - -NOESCAPE 1 -PROMPT 0 - -MENU BACKGROUND openslx.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 #40000000 #ff8093a1 std -menu color title 1;37;40 #ffff8b00 #ff8093a1 std -menu color unsel 37;40 #fff0f0f0 #ff8093a1 std -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 - - -TIMEOUT 100 -TOTALTIMEOUT 1200 -MENU TITLE bwLehrpool ALPHA VERSION -MENU CLEAR -ONTIMEOUT {{{DEFAULT}}} - - -LABEL shutdown - MENU HIDE - KERNEL kernel-shutdown - APPEND initrd=initramfs-shutdown quiet - - -LABEL hddboot - MENU LABEL ^Lokales System starten - LOCALBOOT 0 - {{{hddboot}}} - - -LABEL openslx - MENU LABEL ^Virtuelles Labor starten - KERNEL http://{{{SERVER}}}/boot/default/kernel - INITRD http://{{{SERVER}}}/boot/default/initramfs-stage31 - APPEND slxsrv={{{SERVER}}} slxbase=boot/default vga=current quiet splash - IPAPPEND 3 - {{{openslx}}} - -LABEL openslx-debug - MENU LABEL ^Virtuelles Labor starten (nosplash) - KERNEL http://{{{SERVER}}}/boot/default/kernel - INITRD http://{{{SERVER}}}/boot/default/initramfs-stage31 - APPEND slxsrv={{{SERVER}}} slxbase=boot/default - IPAPPEND 3 - -- cgit v1.2.3-55-g7522 From 360a06abe2cd5590997c15ee6466552cb79070f5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Jun 2014 18:36:56 +0200 Subject: Check if HTTP_ACCEPT_ENCODING is set in $_SERVER before accessing it --- inc/render.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/render.inc.php b/inc/render.inc.php index 6853acde..4fe9d002 100644 --- a/inc/render.inc.php +++ b/inc/render.inc.php @@ -32,7 +32,7 @@ class Render public static function output() { Header('Content-Type: text/html; charset=utf-8'); - $zip = (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false); + $zip = isset($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false); if ($zip) ob_start(); echo ' -- cgit v1.2.3-55-g7522