#!/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 echo "
$DESCRIPTION
" if [ -z "$CONFIG_FILE" -o "$sec_level" -gt "$3" ]; then echo '$(lang de:"Fehler" en:"Error"): $(lang de:"Unbekannter Typ" en:"unknown type") '$CONFIG_TYPE'
" ;; esac else case "$CONFIG_TYPE" in text) echo "' ;; list) ;; *) echo "$(lang de:"Fehler" en:"Error"): $(lang de:"Unbekannter Typ" en:"unknown type") '$CONFIG_TYPE'
" ;; esac fi cgi_end