#!/bin/csh # Copyright 09/02/99 Sun Microsystems, Inc. All Rights Reserved. # "@(#)nf_htmlui.cgi 1.28 99/09/02 Sun Microsystems" source ./profile.csh set query=`/usr/ucb/printenv QUERY_STRING` set script=`/usr/ucb/printenv SCRIPT_NAME` set cgipath=`echo $script | sed -e "s#\(/.*/\).*#\1#"` set post_script="getmachine.cgi" #cat /etc/opt/SUNWstnr/platform.conf > /tmp/conf.$$ #set bname=`grep "buildname=" /tmp/conf.$$ | sed -e 's/buildname=//'` cat /etc/opt/SUNWstnr/desktop.config > /tmp/conf.$$ set bname=`grep "AprodName=" /tmp/conf.$$ | sed -e 's/AprodName=//'` rm -f /tmp/conf.$$ >& /dev/null if ( "$query" == "left_frame" ) then cat < $bname EOM # first need to call getSession to get username from the cookie # Then get the hosts setenv WWW_func getThisSession setenv nf_html yes setenv REQUEST_METHOD POST $NF_CGIDIR/rp_util_java.cgi >& /tmp/user.$$ set errormsg=`grep "ERROR:" /tmp/user.$$` # check to see if there was an error returned if ("X$errormsg" != "X" ) then echo "

$errormsg
" rm -f /tmp/user.$$ >& /dev/null exit endif set uname=`grep "username=" /tmp/user.$$ | sed -e 's/username=//'` set tmph_name=`grep "Hostlist=" /tmp/user.$$ | sed -e 's/Hostlist=//'` rm -f /tmp/user.$$ >& /dev/null if ( "X$uname" == "X" ) then echo "You do not have a valid Username.
" echo "

Your must Edit Preferences on the Desktop.
" exit endif setenv WWW_username $uname cat << EOM
Help


Select a System:

Add / Remove a System:


End session and save session info.

EOM exit endif if ( "$query" == "right_frame" ) then cat < $bname

$NF_APPLICATION




Please select and click View OR Type a system and click Add/Remove from the left frame. EOM exit endif # main frame cat < $bname <body TEXT="#000000" BGCOLOR="#FFFFFF"> <H2>You must be using a frames-capable browser to run $bname File Lite.</H2> </body> EOF exit