#!/bin/sh #------------------------------------------------------------------------------ # /usr/local/htdocs/menu.cgi - integrate user-defined commands into the menu # # Copyright (c) 2003-2010 Marcus Herleb, info(at)herleb(dot).de # Copyright (c) 2011-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2001-02-22 tg # Last Update: $Id$ # # Info: The shell has problems with ' and \' # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #------------------------------------------------------------------------------ rp="/usr/local/htdocs/release" # Parse variables... eval "`proccgi $*`" echo "Content-Type: text/html; charset=iso-8859-1" echo "Cache-control: no-store" # HTTP/1.1 (or no-cache?) echo "Pragma: no-cache" # HTTP/1.0 echo "Expires: `date -Ru`" # Expires now! echo echo '' echo 'EISFAIR-Status-Webserver - Menu' echo '' # special CSS echo '' echo '' echo '

' if [ -z "$FORM_top" ] then # default to 'on' FORM_top='on' fi if [ "$FORM_top" = "off" ] then echo ' Zeige Kopfzeilen' else echo ' Verberge Kopfzeilen' fi echo '

' echo '
' echo " EIS Vers.:" echo ' ' echo "`cat /etc/version`" echo '
 Eis Kern : ' . $rp/eiskernel echo '
' . $rp/osrelease echo '
 SW Vers.: ' . $rp/swversion echo '

' begin=1 # read the menu file and create a menu cat /etc/httpd/menu | while read type link des do case "$type" in t) # table if [ $begin -eq 1 ] then begin=0 else echo '
' fi echo '' echo "" ;; e) # entry echo "" ;; s) # self echo "" ;; esac done echo '

 $des

 $des
 $des

' exit 0