#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin . /usr/lib/libmodcgi.sh [ -e /mod/etc/reg/file.reg ] || touch /mod/etc/reg/file.reg id="$(echo "$QUERY_STRING" | sed -e 's/^.*id=//' -e 's/&.*$//' -e 's/\.//g')" cgi_begin "$id" "file_$id" sec_level=1 [ -r "/tmp/flash/security" ] && let sec_level="$(cat /tmp/flash/security)" OIFS="$IFS" IFS='|' set -- $(cat /mod/etc/reg/file.reg | grep "^$id|") IFS="$OIFS" # Defaults TEXT_ROWS=18 # Load config [ -r "$4" ] && . $4 # Set width let _width=$_cgi_width-230 echo "

$CAPTION

" [ -n "$DESCRIPTION" ] && echo "

$DESCRIPTION

" if [ -z "$CONFIG_FILE" -o "$sec_level" -gt "$3" ]; then echo '
$(lang de:"Konfiguration in der aktuellen Sicherheitsstufe nicht verfügbar!" en:"Settings are not available at current security level!")
' case "$CONFIG_TYPE" in text) echo -n '

' ;; list) ;; *) echo "

$(lang de:"Fehler" en:"Error"): $(lang de:"Unbekannter Typ" en:"unknown type") '$CONFIG_TYPE'

" ;; esac else case "$CONFIG_TYPE" in text) echo "
" echo -n '' echo '
' echo '
' ;; list) ;; *) echo "

$(lang de:"Fehler" en:"Error"): $(lang de:"Unbekannter Typ" en:"unknown type") '$CONFIG_TYPE'

" ;; esac fi cgi_end