Gossamer Forum
Home : Products : DBMan : Installation :

I want to get rid of Log Off option

Quote Reply
I want to get rid of Log Off option
I got my script set up so users go directly into the 'guest' section and only have rights to view. What I would like to do is to be able to remove the 'log off' option from the menu - since I don't want guests to ever see the login screen. Admins will know the correct URL to be able to login and add/edit. I can see in the default.cfg where the footer is created but am not sure about the correct way to eliminate the 'log off' option. Is there a way I can eliminate it just for guests?

Thanks
jim
Quote Reply
Re: I want to get rid of Log Off option In reply to
In html.pl, under sub html_footer { , put a # in front of the line
print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> |!;

so that it looks like
# print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> |!;

Later, you can remove the # to activate it if you wish.
Quote Reply
Re: I want to get rid of Log Off option In reply to
If you want just the admins to see it but nobody else then use this line in the html_footer section.

print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> |! if ($per_admin);
Quote Reply
Re: I want to get rid of Log Off option In reply to
Thanks! Dan got what I was looking for!

jim