Mam do zaproponowania coś takiego
http://kojot.angel-sport.pl/images/sk1.jpg
http://kojot.angel-sport.pl/images/sk2.jpg
http://kojot.angel-sport.pl/images/sk3.jpg
http://kojot.angel-sport.pl/images/sk4.jpg
http://kojot.angel-sport.pl/images/sk5.jpg
OTO plik do pobrania
http://angel-sport.pl/skrypty.rar
Ida skryptów:
pierwszy skrypt zarzadza caloscia: tam wpisyjemy komunikaty, blokujemy, odblokowywujemy itp....
drugi jest przeznaczony dla klientów:
gdzie moga sobie ogladac swoje mrtg, ragulamin ogloszenia itp....
trzeci skrypt juz dziala na porcie 81:
ma za zadanie wyswietlic komunikat ktory wczesniej zapiszemy i wyslemy z pierwszego skryptu
czwarty skrypt (port82) sluzy do blokowania dla nieplacacych
oczywiscie jest mozliwosc odblokowania sobie samemu po wpisaniu odpowiedniego kodu, ktory mozemy mu wyslac np. sms-em jak by nas nie bylo w danej chwili przed kompem jak zaplaci oczywiscie
piaty skrypt - BLOKADA rodzicielska, ma za zadanie blokowac internet - obslugiwany jest wyloncznie przez userow
--------------------------------------------------------------------------------------
konfiguracja
1. w pliku sudoers dopisujemy
nobody ALL=NOPASSWD:/home/httpd/other/iptables.blok
nobody ALL=NOPASSWD:/home/httpd/other/iptables.unblok
oczywiscie po rozpakowaniu skryptow sciezki musza sie zgadzac (standartowo juz jest tak skonfigurowane zeby nie zmieniac
2. dopisujemy do apacha
<VirtualHost 192.168.12.65:81>
DocumentRoot /home/httpd/other/81_info/
ScriptAlias /cgi-bin/ /home/httpd/other/81_info/cgi-bin/
Alias /error/ /home/httpd/other/81_info/errors/
ErrorDocument 404 /index.php
ErrorLog /home/httpd/other/81_info/log/error.log
CustomLog /home/httpd/other/81_info/log/access.log common
Options ExecCGI
</VirtualHost>
<VirtualHost 192.168.12.65:82>
DocumentRoot /home/httpd/other/82_blok/
ScriptAlias /cgi-bin/ /home/httpd/other/82_blok/cgi-bin/
Alias /error/ /home/httpd/other/82_blok/errors/
ErrorDocument 404 /index.php
ErrorLog /home/httpd/other/82_blok/error.log
CustomLog /home/httpd/other/82_blok/access.log common
Options ExecCGI
</VirtualHost>
<VirtualHost 192.168.12.65:83>
DocumentRoot /home/httpd/other/83_hotspot/
ScriptAlias /cgi-bin/ /home/httpd/other/83_hotspot/cgi-bin/
Alias /error/ /home/httpd/other/83_hotspot/errors/
ErrorDocument 404 /index.php
ErrorLog /home/httpd/other/83_hotspot/error.log
CustomLog /home/httpd/other/83_hotspot/access.log common
Options ExecCGI
</VirtualHost>
<VirtualHost 192.168.12.65:84>
DocumentRoot /home/httpd/other/84_int/
ScriptAlias /cgi-bin/ /home/httpd/other/84_int/cgi-bin/
Alias /error/ /home/httpd/other/84_int/errors/
ErrorDocument 404 /error/err404.html
ErrorLog /home/httpd/other/84_int/log/error.log
CustomLog /home/httpd/other/84_int/log/access.log common
Options ExecCGI
</VirtualHost>
3. instalujemy statystyki z
http://alec.pl/linux/stats.html
i powinno wszystko smigac !!!
do poprawnego dzialania kodow na porcie 82 potrzebny jest MySQL:
CREATE DATABASE `venus` ;
CREATE TABLE `kody` (
`code` VARCHAR( 8 ) NOT NULL ,
`ip` VARCHAR( 15 ) NOT NULL ,
`date` DATE NOT NULL ,
`time` TIME NOT NULL ,
`active` BOOL NOT NULL
) TYPE = MYISAM ;
CZEKAM na recenzje bo troche sie narobilem acha katalog nnd trzeba
zahaslic aby niektorzy obywatele tego forum sie nie dopieprzali
