Gossamer Forum
Home : Products : Others : Fileman :

Calling environment variables in the templates

Quote Reply
Calling environment variables in the templates
Hi,

Situation: I have my users logging into a general administration page using .htaccess among the tools they get there is FileMan Multiuser.

Problem: As it is now they have to relogin to get into FileMan because there is no connection between the two user databases.

What I want: I don't want to play with connecting the userdatabases yet and don't mind if they have to retype the password to get into FileMan. But I'd like to be able to have their username show up in the login form using CGI environment variables - and REMOTE_USER.

What I tried: $ENV{'REMOTE_USER'}, <%REMOTE_USER%> + as of desperation: <?php print "$REMOTE_USER"; ?>

Result: It only shows the code as typed.

Additional info: My fileman.cgi (ln to /cgi-bin/fileman/fileman.cgi) does reside in a directory protected by .htaccess

Question: Is there not some way in the GT template language to pull out environment variables? If not - is that a hard thing to implement?

-kjell
---
Kjell Knudsen
http://www.icbl.org