Gossamer Forum
Home : Products : DBMan : Installation :

Admin Loop

Quote Reply
Admin Loop
Still having problems... but this one is weird.

I set my permissions to:

$auth_no_authentication = 0;
$auth_logging = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 0;
@auth_signup_permissions = (1,0,0,0,0);
$auth_view_own = 0;

What I'm tring to do is get a url that will take the Admin or Owner to the login screen to make changes to the record.

Then I need a url for the user just to view the records without having to log in.

But with the settings above, if you go to the
search url:

http://www.joneshunter.com/script/db/db.cgi?db=default&uid=default

It goes through some kind of loop.

First it lets you select the search fields then when you hit view records, it goes to the login screen. why? Then if you enter a login name and password it goes to the search again, and it does that over and over.

I don't understand. I just want to set the permissions so that the user can view the records without having to input a user name and password.

Also I want to create a link to the main menu, so that it will ask for a login so the Admin can make changes to the records.

Sorry that I don't understand how the permissions work. I hope that someone can help.

Thank you--

<cj>


[This message has been edited by cj3 (edited January 10, 1999).]
Quote Reply
Re: Admin Loop In reply to
Would it be possible for you to make your .cfg file available to see? I'm really confused.

Just upload the file into a directory that's viewable to the public and change the file name to "defaultcfg.txt" or something like that. Then let us know where it is so we can get a look at it. It might also be a good idea to have your html.pl file, too.



------------------
JPD
Quote Reply
Re: Admin Loop In reply to
Here you go:

The cfg file is at:

http://www.joneshunter.com/pl/default.cfg.txt

-- The html.pl is at:
http://www.joneshunter.com/pl/html.pl.txt

Thanks you guys =)

<cj>
Quote Reply
Re: Admin Loop In reply to
Okay. I understand why you're having problems with the "loop" when you do a search. You have:

<input type=hidden name="db" value="default">
<input type=hidden name="uid" value="">

in the html_view_search subroutine. It needs to be

<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">

Same thing in html_view_failure.

Take out the "form" tags and hidden fields in your html_home subroutine. Not necessary there, since there's no form on that page.

When you go to log on as admin, go to the URL
http://www.joneshunter.com/script/db/db.cgi

I just was there and logged in as admin.

For users to access the database home page, you are right. The URL is
http://www.joneshunter.com/script/db/db.cgi?db=default&uid=default

I think we may have it now! Smile



------------------
JPD