############################################################################
# Traduzido para portugs por Diego Sampaio(diego\@wmonline.com.br)            				 #
# Qualquer dvidas: www.wmonline.com.br							               #
############################################################################

                   
 1. Configure o adduser.cgi e o login.cgi

2. SEnvie os arquivos para seu servidor , em modo ASCII.

3. Chmod os cgi's para 755 or rwx-rw-rw

   Chmod o people.lst para 666 or rw-rw-rw  

4. Coloque as tags em sua pgina 

                           ### *** *** ###

No login.cgi h 3 variaveis que precisam ser alterada.


# Nome do arquivo que voce seseja proteger. (TXT)
$txt_file = "secure.txt";

# Pagina inicial
$login_page = "index.html";

# Entre o PATH para o arquivo de senha
$passfile = '/usr/home/rlaj/cgi-bin/test/people.lst';

$this_cgi = 'login.cgi';

                           ### *** *** ###

No adduser.cgi h 1 variavel que precisar ser alterada.


# Path para o banco de dados - arquivo people.lst
$passfile = 'wsdocs/scripts/password/people.lst';


                           ### *** *** ###

Copie o cdigo abaixo e coloque no seu site. Altere o http://www.path/login.cgi para a URL de onde o arquivo login.cgi est instalado.

---------------------------------------------------------------------------

<Form method=POST action="http://www.path/login.cgi">
Name:<br>
<INPUT TYPE="text" NAME="username" SIZE=20 MAXLENGTH=20><P>
Password:<br>
<INPUT TYPE="password" NAME="password" SIZE=20 MAXLENGTH=20><P>
</Form>

---------------------------------------------------------------------------


                           ### *** *** ###

Para cadastro, use o link http://www.path/adduser.cgi. Altere o http://www.path/login.cgi para a URL de onde o arquivo adduser.cgi est instalado.



############################################################################
#Feel free to copy, change, reference, sample, or borrow, the contents.    #  
#The script is provided as is, there is no warranty expressed or implied.  #
#If you would, email me and let me know you are using the script, so I can #
#show you on my list of links.                                             #
#If you would like to support public domain freeware, contributions are    #
#accepted.							           #
#Last but certainly not least, if you find a better way of doing something,#
#I would really like to know. Thanks and have fun.                         #
############################################################################

