Dear friends
i have a chat line and it's written in cgi and it contain this command (getip) it's used to get the real ip for the flooders and the trouble makers but, i want it to get the computer ip for the flooder ... to stop him from entering the chat this is the command code:
if($com[1] eq ""{
$err = "*** Sorry, no nick provided to get its real ip!";
}elsif(!(open(sss,"online/$com[1].txt")){
close(sss);
$err = "*** Sorry, nick <b>$com[1]</b> not found";
}else{
open(ddd,"online/$com[1].txt"
flock(ddd,2);
$leinfo = <ddd>;
close(ddd);
@reinfo = split(/\|/,$leinfo);
if ($reinfo[8] >= 30) {
$reinfo[3] = "#Blocked#";
open(privater,">>private/$com[1].txt"
flock(privater,2);
print privater "<!-- $time --><font color=\"ff0000\">*** Op $IN{'name'} ($IN{'rank'}) has checked your IP.</font>\n";
close(privater);
}
if ($reinfo[8] == 29) {
open(privater,">>private/$com[1].txt"
flock(privater,2);
print privater "<!-- $time --><font color=\"ff0000\">*** Op $IN{'name'} ($IN{'rank'}) has checked your IP.</font>\n";
close(privater);
}
if ($reinfo[8] == 28) {
open(privater,">>private/$com[1].txt"
flock(privater,2);
print privater "<!-- $time --><font color=\"ff0000\">*** Op $IN{'name'} ($IN{'rank'}) has checked your IP.</font>\n";
close(privater);
}
$err = "*** <b>$com[1]</b>'s real ip is ($reinfo[3]).";
}
and thanks
i have a chat line and it's written in cgi and it contain this command (getip) it's used to get the real ip for the flooders and the trouble makers but, i want it to get the computer ip for the flooder ... to stop him from entering the chat this is the command code:
if($com[1] eq ""{
$err = "*** Sorry, no nick provided to get its real ip!";
}elsif(!(open(sss,"online/$com[1].txt")){
close(sss);
$err = "*** Sorry, nick <b>$com[1]</b> not found";
}else{
open(ddd,"online/$com[1].txt"
flock(ddd,2);
$leinfo = <ddd>;
close(ddd);
@reinfo = split(/\|/,$leinfo);
if ($reinfo[8] >= 30) {
$reinfo[3] = "#Blocked#";
open(privater,">>private/$com[1].txt"
flock(privater,2);
print privater "<!-- $time --><font color=\"ff0000\">*** Op $IN{'name'} ($IN{'rank'}) has checked your IP.</font>\n";
close(privater);
}
if ($reinfo[8] == 29) {
open(privater,">>private/$com[1].txt"
flock(privater,2);
print privater "<!-- $time --><font color=\"ff0000\">*** Op $IN{'name'} ($IN{'rank'}) has checked your IP.</font>\n";
close(privater);
}
if ($reinfo[8] == 28) {
open(privater,">>private/$com[1].txt"
flock(privater,2);
print privater "<!-- $time --><font color=\"ff0000\">*** Op $IN{'name'} ($IN{'rank'}) has checked your IP.</font>\n";
close(privater);
}
$err = "*** <b>$com[1]</b>'s real ip is ($reinfo[3]).";
}
and thanks