Gossamer Forum
Home : Products : Links 2.0 : Customization :

problem in password.cgi

Quote Reply
problem in password.cgi
i went to this url: http://www.buscabr.com/modify.html

i followed all the instructions

when i go to admin.cgi
it giving me this message:
Error Message : fatal error: syntax error at c:/links/cgi-bin/admin/links.def line 37, near "Password"

Script Location : c:\links\cgi-bin\admin\admin.cgi
Perl Version : 5.00503

and i went to that file i found in line 37 the following:
Password => [20, 'alpha', 10, 10, 1, '', ''],


so what,s wrong?
please advice
Quote Reply
Re: problem in password.cgi In reply to
Well, I am assuming that this Password field is the last field in the %db_def hash section in your links.def file...You need to delete the comma at the end of the line...so, it should look like the following:

Code:
Password => [20, 'alpha', 10, 10, 1, '', '']

BTW: You also need to upgrade your existing database...read the FAQ about adding fields to your existing database that is located in the Resource Center.

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


[This message has been edited by AnthroRules (edited April 15, 2000).]
Quote Reply
Re: problem in password.cgi In reply to
OK thanx a lot the error removed
but the problem when i go to admin.cgi did not ask me about passowrd??

what will be the problem?!!
Quote Reply
Re: problem in password.cgi In reply to
The Password Mod is for LINKS USERS not for the ADMINISTRATOR! Did you think that the Modify Password Mod would protect the admin.cgi script? LOL! Smile

That is not the point of the Mod...it only adds an extra level of security for LINK OWNERS to access the MODIFY.CGI script.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: problem in password.cgi In reply to
Dear:AnthroRules
Smile Smile
now i understand :*
ok wat i made i go to the add url and i add url but the field for the password not appered and giving me this message:
There were the following errors trying to add your resource:


Password (Can not be left blank)

so what to do?

2nd: tell me or refer me for any topic how can i protect my admin directory?

i think i disturb you :*
hope not
bye
Quote Reply
Re: problem in password.cgi In reply to
Well, you need to add the Password field as an input field in your add template files. Make sure that it is case sensitive - like if you have password in your links.def, then you have to use <%password%> in your add template files.

Also, remember that you need to add the new field, Password, to your existing links.db file. For instructions on how to do this...read the FAQ in the Resource Center.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: problem in password.cgi In reply to
· How to change the template to overcome this problem? Because I confused which template to change the cgi or the HTML?

Quote Reply
Re: problem in password.cgi In reply to
I have answered your other Topic.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.