Gossamer Forum
Home : Products : DBMan : Installation :

Re: one pass file...many databases...Argh...

Quote Reply
Re: one pass file...many databases...Argh... In reply to
Hey, I am ashamed I didn't think of resetting the default to allow admin permissions...duuuuhhh...

However, that didn't work.

Heres what happens...the classifieds was already set to allow default so I just changed the permissions to 11111 for that, I logged in using the &uid=default and get into the app. when I click on any link, it gives me some sort of error. Different ones with most clicks.
I have a big footer, whcih I included below, to allow cruising from database to database as long as permissions allow. I wrote it as follows:

sub html_footer {
# --------------------------------------------------------
if ($per_del){
print qq!<P align="center" CLASS="bodymdbold">ADDRESS BOOK<BR>!;
print qq!| <A HREF="/cgi-bin/db.cgi?db=address&uid=$db_uid&add_form=1" CLASS="bodysm">Add</A> !;
print qq!| <A HREF="/cgi-bin/db.cgi?db=address&uid=$db_uid&view_search=1" CLASS="bodysm">View</A> !;
print qq!| <A HREF="/cgi-bin/db.cgi?db=address&uid=$db_uid&delete_search=1" CLASS="bodysm">Delete</A> !;
print qq!| <A HREF="/cgi-bin/db.cgi?db=address&uid=$db_uid&modify_search=1" CLASS="bodysm">Modify</A> !;
print qq!| <A HREF="/cgi-bin/db.cgi?db=address&uid=$db_uid&view_records=1&$db_key=*" CLASS="bodysm">List All</A> |!;
}
print qq!<P align="center" CLASS="bodymdbold">RECIPE BOOK<BR>!;
print qq!| <A HREF="/cgi-bin/db.cgi?db=recipies&uid=$db_uid&add_form=1" CLASS="bodysm">Add</A> ! if ($per_add);
print qq!| <A HREF="/cgi-bin/db.cgi?db=recipies&uid=$db_uid&view_search=1" CLASS="bodysm">View</A> ! if ($per_view);
print qq!| <A HREF="/cgi-bin/db.cgi?db=recipies&uid=$db_uid&delete_search=1" CLASS="bodysm">Delete</A> ! if ($per_del);
print qq!| <A HREF="/cgi-bin/db.cgi?db=recipies&uid=$db_uid&modify_search=1" CLASS="bodysm">Modify</A> ! if ($per_mod);
print qq!| <A HREF="/cgi-bin/db.cgi?db=recipies&uid=$db_uid&view_records=1&$db_key=*" CLASS="bodysm">List All</A> |! if ($per_view);
print qq!<P align="center" CLASS="bodymdbold">FOR SALE<BR>!;
print qq!| <A HREF="/cgi-bin/db.cgi?db=classifieds&uid=$db_uid&add_form=1" CLASS="bodysm">Add</A> ! if ($per_add);
print qq!| <A HREF="/cgi-bin/db.cgi?db=classifieds&uid=$db_uid&view_search=1" CLASS="bodysm">View</A> ! if ($per_view);
print qq!| <A HREF="/cgi-bin/db.cgi?db=classifieds&uid=$db_uid&delete_search=1" CLASS="bodysm">Delete</A> ! if ($per_del);
print qq!| <A HREF="/cgi-bin/db.cgi?db=classifieds&uid=$db_uid&modify_search=1" CLASS="bodysm">Modify</A> ! if ($per_mod);
print qq!| <A HREF="/cgi-bin/db.cgi?db=classifieds&uid=$db_uid&view_records=1&$db_key=*" CLASS="bodysm">List All</A> |! if ($per_view);
print qq!<P align="center" CLASS="bodymdbold">!;
print qq!| <A HREF="$db_script_link_url" CLASS="bodysm">Home</A> !;
print qq!| <A HREF="$db_script_link_url&admin_display=1" CLASS="bodysm">Admin</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&logoff=1" CLASS="bodysm">Log Off</A> |!;
print qq!</p>!;
}

Then, when I click on the "admin" link it gives me a 404 page, but, if I type in the EXACT same address that displays in the status bar manually I can get to it.
I am insanely confused, I coded the multi database links just like I did in other apps and it works...

the databases are currently at http://savagemoms.virtualave.net
Even if I go to the login page and enter admin/admin or author/author I get a 404

What did I do wrong JPD!

Subject Author Views Date
Thread one pass file...many databases...Argh... dB Masters 2968 Jul 27, 2000, 11:37 AM
Thread Re: one pass file...many databases...Argh...
JPDeni 2889 Jul 27, 2000, 2:54 PM
Thread Re: one pass file...many databases...Argh...
dB Masters 2870 Jul 27, 2000, 8:33 PM
Thread Re: one pass file...many databases...Argh...
JPDeni 2879 Jul 27, 2000, 9:29 PM
Thread Re: one pass file...many databases...Argh...
dB Masters 2866 Jul 28, 2000, 4:09 AM
Thread Re: one pass file...many databases...Argh...
dB Masters 2858 Jul 28, 2000, 5:45 AM
Post Re: one pass file...many databases...Argh...
JPDeni 2856 Jul 28, 2000, 6:00 AM