ehhh… to jest skrypt ktory edytuje pliki .htpasswd i .htaccess na serwerze…
rejestrujac usera dodaje go do listy
chcac “zabezpieczyc” plik/katalog:
Protecting Files
You can protect specific files on your web server, restricting access to registered users only. To this:
Check whether there is a file called .htaccess in the directory.
If there is already a .htaccess file, append the following to it, else create a new file called .htaccess containing the following:
order allow,deny
deny from all
AuthUserFile /full/path/to/ilogin/.htpasswd
AuthGroupFile /dev/null
AuthName "iLogin"
AuthType Basic
require valid-user
Replace "/full/path/to/ilogin" with the full path to the iLogin directory from the root of your web server hard disc. This might be something like "/home/yoursite.com/public_html/ilogin". You need to ask you web hosting provider for this path.
Modify filename.htm to be the file that you want to protect. You can use * to match patterns, e.g. private*.htm will protect private1.htm, private2.htm, private99.htm etc.
Upload this file to your web site using FTP
wiec: jezeli w katalogu jest juz plik .htaccess to edytujesz go i wklejasz
order allow,deny
deny from all
AuthUserFile /full/path/to/ilogin/.htpasswd
AuthGroupFile /dev/null
AuthName "iLogin"
AuthType Basic
require valid-user
/full/path/to/ilogin/.htpasswd
zastepujesz dokladna sciezka do pliku .htpasswd zamiast “filename.htm” wpisujesz nazwe pliku ktory chcesz chronic robisz tak z kazdym plikiem, ew. dajesz * w nazwie zeby ci chronilo wiecej podobnych np *.mp3 ;} katalogi: taksamo jezeli jest .htaccess to
AuthUserFile /full/path/to/ilogin/.htpasswd
AuthGroupFile /dev/null
AuthName "iLogin"
AuthType Basic
require valid-user
order allow,deny
deny from all
proste nonie;d
p.s.
moim zdaniem to szajs;d
chcesz to ci przesle faktycznie skrypt logowania ale w ktorym sam dodajesz ludzi;]
p.s.2
zeby sie “logowac” dajesz linka na glownej do chronionej podstrony…
p.s.3
na przyszlosc czytaj readme skryptu…
Złączono Posta : 23.04.2006 (Nie) 9:23
no faktycznie… duzo mu to dalo;]
z panelu admina mozesz jedynie usuwac badz edytowac userow
p.s.
zmien sobie haslo;d