You are not logged in.

#1 2008-01-12 3:39 pm

yannick
Member
From: Netherlands
Registered: 2008-01-12
Posts: 15

silly me

me and smurf registraded and were marked as spammer, luckely some very kind mod made us members. However our names still remain in the list on the main page.

If we could be removed that would be awesome big_smile

Offline

#2 2008-01-12 3:40 pm

Russ
Guest

Re: silly me

You're removed now...that was my fault.

#3 2008-01-12 3:40 pm

yannick
Member
From: Netherlands
Registered: 2008-01-12
Posts: 15

Re: silly me

thanks big_smile

=EDIT=
To compenste I would like to contribute a function I found on the interweb. It's a way to get content from an external webpage into a variable, and thus so can be used in combination with the api found here.

The original source was found in the url of the @copyright, http://www.howtogeek.com/howto/programm … -variable/

/**
* Get the content of an URL
*
* @copyright http://www.howtogeek.com/howto/programm … -variable/
* @param string $url
* @return string $content
*/
function get_url_contents($url) {
    $crl = curl_init();
    $timeout = 5;
    curl_setopt($crl, CURLOPT_URL, $url);
    curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
    $ret = curl_exec($crl);
    curl_close($crl);
    return $ret;
}

basicly URL in, content out wink

Last edited by yannick (2008-01-12 3:44 pm)

Offline

#4 2008-01-12 8:17 pm

Smurf_Minions
Member
From: Weerselo
Registered: 2008-01-12
Posts: 4
Website

Re: silly me

well, i think i should contribute something too then smile
with the use of the get_url_contents function you can use this to check if it is an spambot:

//function to chek the registar is an spambot, if it is the result = true else it is false
function checkSpambots($mail,$ip){
    //check the email adress
        $xml_string = getUrlContents('http://www.stopforumspam.com/api?email='.$mail);
    $xml = new SimpleXMLElement($xml_string);
    $spambot = false;
    if($xml->appears == 'yes'){
        $spambot = true;
    }elseif($spambot != true){
            //check the ip adress    
                $xml_string = getUrlContents('http://www.stopforumspam.com/api?ip='.$ip);
        $xml = new SimpleXMLElement($xml_string);
        if($xml->appears == 'yes'){
            $spambot = true;
        }
     //fill in some big domains to be blocked, you can fill in as much as you want.
         }elseif(ereg('mail.ru',$mail) == 1 || ereg('bigmir.net',$mail) == 1){
        $spambot = true;
    }
    return $spambot;
}

Last edited by Smurf_Minions (2008-01-12 8:17 pm)

Offline

#5 2008-11-19 9:48 am

potain
Member
Registered: 2008-11-19
Posts: 2

Re: silly me

Hi Smurf_Minions

I sent a message to root@femke.neostrada.nl but it could be delivered. I enclose the message that I sent and wonder if you can help me out:

Subject: Error message [404] 404 Not Found for guildwarsholland.nl/phphulp/testspambot.php port 80 on Saturday, 15-Nov-2008 04:55:43 CET

Hi

Just letting you know that the site is down as well.

I also have a question regarding the spambot script which the developer of program that I am using tried to convert to a class but is giving me the following error:

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/directory/public_html/directory/classes/functions.php on line 222

Please see the forum entry: http://www.phpdirectorysource.com/board … .php?t=820 where he has asked me to find out if you need any additional requirements for the script.

Thank you for your help.
-----------------

Does it need yannick's function as well?

Thank you

Jean

Offline

#6 2008-11-19 2:31 pm

pedigree
uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
From: New Zealand
Registered: 2008-04-16
Posts: 7,104

Re: silly me

potain wrote:

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/directory/public_html/directory/classes/functions.php on line 222

simplexmlelement is a PHP5 function and you are using php4.  Search the SMF thread for a fix to make it work on php4

Offline

#7 2008-11-20 1:05 pm

potain
Member
Registered: 2008-11-19
Posts: 2

Re: silly me

Thank you pedigree for your prompt reply

According to my webhost's CPanel they are using:

PHP version  5.2.6

Would you happen to know if it needs to be enabled?

Cheers

Offline

#8 2008-11-20 3:13 pm

pedigree
uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
From: New Zealand
Registered: 2008-04-16
Posts: 7,104

Re: silly me

The server might not have xml mod enabled.  phpinfo will tell you

Offline

Board footer

Powered by FluxBB

Close
Close