Activity Stream
48,167 MEMBERS
6833 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1.     
    #11
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    i know, i removed it as i need t0 add a diff reasoon for them

  2.   Sponsored Links

  3.     
    #12
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    I don't know if it would work but try

    PHP Code: 
    $surl $_POST['surl'];
    $surl str_ireplace("www.","",$surl['host']); //get host

            
    function checkdom($surl) {
                
    // Soft2050
    $reason NULL;
                
    $freeTLDs preg_match('@^(?:http:\/\/)?([^/]+)\.(co\.cc|tk)@i'$surl);
                
    $blogspots preg_match('@^(?:http:\/\/)?([^/]+)\.(blogspot\.com)@i'$surl);

    if(!empty(
    $freeTLD$reason "Please don't use a free TLD";
    else if (!empty(
    $blogspots)) $reason "Please don't use blogspot";

    return 
    $reason
            
    }

            if (
    checkdom($surl) == TRUE) {
    echo 
    $reason;
                            
    mysql_query("INSERT INTO wcddl_blacklist (url,reason,dat,email) VALUES ('".mysql_real_escape_string($surl)."','".mysql_real_escape_string($reason2)."','".mysql_real_escape_string($date)."','".mysql_real_escape_string($email)."')");
            } 

  4.     
    #13
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    Hi,

    THX Blaze...

    yh iv included this in my backlink chcck mod, hmm i dunno why but is just checking for backlink eveytime

    i noticed about the function checkdom, is the $reason variiables rite?

  5.     
    #14
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    I'd suggest that first call the checkdom() function and then subbacklink() function

  6.     
    #15
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    I thought tht blAze m8...

    however can soft2050 clarify all teh code is k.

  7.     
    #16
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    The code was quite messed. You can only use the value from a function once unless you store it in a variable. Also you need to global the variable before using them from outside the functions.

    I have cleared the code and it should work now:

    PHP Code: 
    <?php
    if(!defined("WCDDL_GUTS")) exit;
         
    // Config
    $modEnabled true;

    $subBacklink str_replace('http://www.''http://''http://www.warezrelease.org'); // Inlude http://www in the final url.

    $reason1 "Add our linkback, then <a href='/contact.php'>email us here</a>.";
    $reason2 "We dont allow free TLDs on our DDL, go buy yourself a real domain then you can submit downloads.";
    $reason3 "BlogSpot not allowed. Get a real host & domain, thanks.";

    $date date("d-m-Y");
    $email $_POST['email'];

    $surl $_POST['surl'];
    $surl parse_url(trim($surl));
    $surlstr_replace("www.","",$surl['host']);

    if (
    $modEnabled) {

        function 
    subBacklink($link$subBacklink) {
            global 
    $subBacklink;
            
    $ch curl_init($link);  
            
    curl_setopt($chCURLOPT_RETURNTRANSFER1);  
            
    curl_setopt($chCURLOPT_HEADERfalse);
            
    curl_setopt($chCURLOPT_USERAGENT'spider');  
            
    $page curl_exec($ch);  
            
    curl_close($ch);
         
                if (
    preg_match('#<a[^>]+href="http://(www\.)?warezrelease\.org/?"[^>]*>#i',$page))
            return 
    true;
            else
            return 
    false;
        }
               
        function 
    blacklistemail($email,$surl) {
            global 
    $core;

            
    $to  $email// note the comma
            
    $from $core->adminemail;

            
    $subject 'Your website is blacklisted at WarezRelease';
            
    $message 'Your website is blacklisted at '.$core->siteurl.'.<br />
                 <br />
                 Domain: '
    .$surl.'<br />
                 Email: '
    .$email.'<br />
                 <br />
                 Possible reasons are:<br />
                 <br />
                 1. Your domain/site does not contain a valid linkback or atleast our bot can not find one.<br />
                 2. You may have submitted before without a backlink but since then have added one.<br />
                 3. Our bot can not even access your domain/site due to a mod you have installed, crappy host, free domain/host, downtime etc.
                 <br />
                 <br />
                 In most cases you can rectify and solve the issue, then you can get un-blacklisted by either emailing us at:
                 chris-2k@live.co.uk or by visiting: '
    .$core->siteurl.'blacklist.php and un-blacklisting yourself...
                 <br /><br />
                 Regards, <a href="'
    .$core->siteurl.'">'.$core->siteurl.'</a> Team.';
                       
            
    //      To send HTML mail, the Content-type header must be set
            
    $headers  'MIME-Version: 1.0' "\r\n";
            
    $headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";
            
    $headers .= 'From: '.$from.'' "\r\n";
            
    mail($to$subject$message$headers);
        }

        
    $domcheck true;
        
    $blacklistdomreason '';
        
        if (
    preg_match('@^(?:http:\/\/)?([^/]+)\.(co\.cc|tk)@i'$surl)) $blacklistdomreason $reason2;
        elseif (
    preg_match('@^(?:http:\/\/)?([^/]+)\.(blogspot\.com)@i'$surl)) $blacklistdomreason $reason3;
        
        if (
    $domcheck and $blacklistdomreason != '') {
            
    mysql_query("INSERT INTO wcddl_blacklist (url,reason,dat,email) VALUES ('".mysql_real_escape_string($surl)."','".mysql_real_escape_string($blacklistdomreason)."','".mysql_real_escape_string($date)."','".mysql_real_escape_string($email)."')");
        }

        if(
    subBacklink ($surl$subBacklink) == false) {
            
    mysql_query("INSERT INTO wcddl_blacklist (url,reason,dat,email) VALUES ('".mysql_real_escape_string($surl)."','".mysql_real_escape_string($reason1)."','".mysql_real_escape_string($date)."','".mysql_real_escape_string($email)."')");
            
    blacklistemail($email,$surl);
                }
        }

        
    $core->attachDataHook("submitChecksPass","subBacklink");
    ?>
    Also, i would suggest you to use a PHP IDE which could help you in writing codes

  8.     
    #17
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    will test now m8

  9.     
    #18
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    it works.

  10.     
    #19
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    hi m8

    me again, ur tired of helping me now?

    can i add another preg? via else if blaahblaa..........

  11.     
    #20
    Retired NinJa
    Website's:
    loledhard.com
    YE U CAN



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check this out
    By King K*** in forum Introductions
    Replies: 3
    Last Post: 7th Dec 2011, 01:02 PM
  2. Check It Out
    By DeathNote in forum Site Reviews
    Replies: 0
    Last Post: 5th Nov 2010, 04:31 AM
  3. Lol so..check this out?
    By DXS in forum General Discussion
    Replies: 21
    Last Post: 2nd Jun 2010, 05:32 PM
  4. Check out my new DDL
    By CZhakis in forum Site Reviews
    Replies: 4
    Last Post: 24th Aug 2009, 11:10 AM
  5. Automatically check for a blacklink for WCDDL
    By litewarez in forum Completed Transactions
    Replies: 2
    Last Post: 26th Nov 2008, 09:56 PM

Tags for this Thread

BE SOCIAL