[WebDNA] Protect help... Beginner Question

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101588
interpreted = N
texte = > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3311751111_2826462 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Hi, I have a page that displays member data (based on their ID) that requires password protection, based on their usernames, all stored in member.db, which contains the fields: ID USER PASS etc... I added [include file=3Dadmin/protect.inc] to the top of the page to be protected... protect.inc contains: > [text]m_member_id=3D[/text] > [text]prefix=3D[/text] > [showif [countchars][file][/countchars]>11] > [text]prefix=3D[getchars from=3Dend&start=3D12][file][/getchars][/text] > [/showif] > [search=20 > db=3D[prefix]member.db&eqUSERdatarq=3D[url][username][/url]&USERblnk=3DT&eqPASS= datar > q=3D[url][password][/url]] > [showif [numfound]=3D0] > [authenticate Unauthorized Member] > [/showif] > [founditems] > [text]m_member_id=3D[id][/text] > [/founditems] > [/search] >=20 > [showif [action]=3Dlogin] > [authenticate Log In] > [/showif] >=20 ##### Results: I get no password prompt... It returns random members data, so it=B9s finding the proper member.db. The use of [prefix] breaks some layout filepaths in the protected page... Why does this fail? Any suggestions are appreciated... Thanks, -Chris --B_3311751111_2826462 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Protect help... Beginner Question Hi, I have a page that displays member data (based on their ID) that requires p= assword protection, based on their usernames, all stored in member.db, which= contains the fields: ID USER   PASS etc...

I added [include file=3Dadmin/protect.inc] to the top of the page to be prote= cted...

protect.inc contains:

[text]m_member_id=3D[/text]
[text]prefix=3D[/text]  
[showif [countchars][file][/countchars]>11]
    [text]prefix=3D[getchars from=3Dend&start=3D12][file]= [/getchars][/text]
[/showif]
[search db=3D[prefix]member.db&eqUSERdatarq=3D[url][username][/url]&USE= Rblnk=3DT&eqPASSdatarq=3D[url][password][/url]]
    [showif [numfound]=3D0]
        [authenticate Unauthorized = Member]
    [/showif]
    [founditems]
        [text]m_member_id=3D[id][/tex= t]
    [/founditems]
[/search]

[showif [action]=3Dlogin]
    [authenticate Log In]
[/showif]

#####

Results:
I get no password prompt...
It returns random members data, so it’s finding the proper member.db.=
The use of [prefix] breaks some layout filepaths in the protected page...
Why does this fail?

Any suggestions are appreciated...

Thanks,
 -Chris
--B_3311751111_2826462-- Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Protect help... Beginner Question ("cw@e-wave.net" 2008)
> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3311751111_2826462 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Hi, I have a page that displays member data (based on their ID) that requires password protection, based on their usernames, all stored in member.db, which contains the fields: ID USER PASS etc... I added [include file=3Dadmin/protect.inc] to the top of the page to be protected... protect.inc contains: > [text]m_member_id=3D[/text] > [text]prefix=3D[/text] > [showif [countchars][file][/countchars]>11] > [text]prefix=3D[getchars from=3Dend&start=3D12][file][/getchars][/text] > [/showif] > [search=20 > db=3D[prefix]member.db&eqUSERdatarq=3D[url][username][/url]&USERblnk=3DT&eqPASS= datar > q=3D[url][password][/url]] > [showif [numfound]=3D0] > [authenticate Unauthorized Member] > [/showif] > [founditems] > [text]m_member_id=3D[id][/text] > [/founditems] > [/search] >=20 > [showif [action]=3Dlogin] > [authenticate Log In] > [/showif] >=20 ##### Results: I get no password prompt... It returns random members data, so it=B9s finding the proper member.db. The use of [prefix] breaks some layout filepaths in the protected page... Why does this fail? Any suggestions are appreciated... Thanks, -Chris --B_3311751111_2826462 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Protect help... Beginner Question Hi, I have a page that displays member data (based on their ID) that requires p= assword protection, based on their usernames, all stored in member.db, which= contains the fields: ID USER   PASS etc...

I added [include file=3Dadmin/protect.inc] to the top of the page to be prote= cted...

protect.inc contains:

[text]m_member_id=3D[/text]
[text]prefix=3D[/text]  
[showif [countchars][file][/countchars]>11]
    [text]prefix=3D[getchars from=3Dend&start=3D12][file]= [/getchars][/text]
[/showif]
[search db=3D[prefix]member.db&eqUSERdatarq=3D[url][username][/url]&USE= Rblnk=3DT&eqPASSdatarq=3D[url][password][/url]]
    [showif [numfound]=3D0]
        [authenticate Unauthorized = Member]
    [/showif]
    [founditems]
        [text]m_member_id=3D[id][/tex= t]
    [/founditems]
[/search]

[showif [action]=3Dlogin]
    [authenticate Log In]
[/showif]

#####

Results:
I get no password prompt...
It returns random members data, so it’s finding the proper member.db.=
The use of [prefix] breaks some layout filepaths in the protected page...
Why does this fail?

Any suggestions are appreciated...

Thanks,
 -Chris
--B_3311751111_2826462-- "cw@e-wave.net"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

question: search return in order (1997) portal (2002) Setting up shop (1997) [WebDNA] Installing WebDNA on Windows 7 64 Bit, Home Premium (2010) Forbidden CGI Error (1997) SiteCheck & WebCat ? (1997) Re:no template caching (1997) href name= link from dynamic URL possible? (1998) File Upload (1997) WebCatalog Upgrade Pricing? (1997) Email notification to one of multiple vendors ? (1997) Weird problems with [SHOWIF]s (1997) RequiredFields template (1997) FORMS: Returning a specific page (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) & in Lookups (1997) Calendar (1997) Bug Report, maybe (1997) frames & carts (1997)