[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:

Can't get appendfile to work (1997) Cybercash Problem with order (2001) NetSplat and WebCat2 (1997) PSC recommends what date format yr 2000??? (1997) Width & Height (1998) Hard Questions ? (1997) WC2.0 Memory Requirements (1997) If Empty ? (1997) WebCat2b13 Command Reference Doc error (1997) Comments in db? (1997) WC2.0 Memory Requirements (1997) GuestBook example (1997) StoreBuilder Shopping Cart (2000) ShowNext for method=POST (1997) webcat2b12 CGI -- Date comparisons (1997) Off-Topic: List of common port numbers? (2002) Question on the sandbox (2003) Additional Subtotals (1999) Tool of Use to Unix WebCat Admins (2000) Emailer (WebCat2) (1997)