#! /bin/sh

printf "Content-Type: text/plain\r\n\r\n"

user=""
key=""

list="$QUERY_STRING"

while [ "$list" != "" ]
do
	item=${list%%&*}
	list=${list#*&}

	if [ "$item" = "$list" ]; then list=""; fi

	case "$item" in
		usr=*) user="${item#*=}" ;;
	esac
done

if [ "$user" != "" ]
then
	/home/www/cgi-bin/revoke-ssh-keys-suid "$user"
fi
