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

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default function backlink help

    here's the code:
    PHP Code: 
    $subBacklink 'href="http://warezrelease.org/"';

            function 
    subBacklink($arr) {
                global 
    $subBacklink;
                if(!
    $arr['status'])
                    return 
    $arr;
                    
    $surl $arr['site']['surl'];
                    
    $get = @file_get_contents('http://'.$surl.'/');
                    if(
    preg_match('#href=\"http://(www\.)?'.$subBacklink.'#i',$get))
                        return 
    $arr;
                        else
                        
    $arr['status'] = false;
                        return 
    $arr;
            } 
    any1 can tell me whats wrong, its forgetting:
    PHP Code: 
            if (subBacklink ($arr) == 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);
                
    mysql_query("DELETE FROM wcddl_blacklist WHERE url=''");
            } 
    Chris2k Reviewed by Chris2k on . function backlink help here's the code: $subBacklink = 'href="http://warezrelease.org/"'; function subBacklink($arr) { global $subBacklink; if(!$arr) return $arr; $surl = $arr; $get = @file_get_contents('http://'.$surl.'/'); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    LulzCovers.com LulzTroll.com
    PHP Code: 
    $subBacklink 'href="http://warezrelease.org/"'
    should be:
    PHP Code: 
    $subBacklink 'href="warezrelease.org"'
    as the preg_match adds the http , www
    Contact me for Traffic, SEO, WCDDL, Wordpress, IPB related Services or queries.
    Template Designing, PSD to HTML, Wordpress


  4.     
    #3
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    nope, not work.

  5.     
    #4
    Banned
    Website's:
    ImDBDL.com
    you should be selecting a database first b4 sending a query to mysql

  6.     
    #5
    Member
    Website's:
    LulzCovers.com LulzTroll.com
    Edited:
    try this
    PHP Code: 
    $subBacklink 'href="warezrelease.org"';

            function 
    subBacklink($arr) {
                global 
    $subBacklink;
                if(!
    $arr['status'])
                    return 
    $arr;
                    
    $surl $arr['site']['surl'];
                    
    $get = @file_get_contents('http://'.$surl.'/');
                    if(
    preg_match('#href=\"http://(www\.)?'.$subBacklink.'#i',$get))
                        
    //Move the code which accepts the submission here...
                        
    else
                        
    //put the code that blacklists the site here
                        
    return $arr;
            } 
    or try this:

    PHP Code: 
    $subBacklink 'href="warezrelease.org"';

            function 
    subBacklink($arr) {
                global 
    $subBacklink;
                if(!
    $arr['status'])
                    return 
    $arr;
                    
    $surl $arr['site']['surl'];
                    
    $get = @file_get_contents('http://'.$surl.'/');
                    if(
    preg_match('#href=\"http://(www\.)?'.$subBacklink.'#i',$get))
                        
    $BackCheck true;
                        else
                        
    $BackCheck false;
                    return 
    $arr;
            } 
    check in the submit.php

    PHP Code: 

    if ($BackCheck == true)
    //code that accepts the downloads

    else
    //code that blacklists the site 
    Contact me for Traffic, SEO, WCDDL, Wordpress, IPB related Services or queries.
    Template Designing, PSD to HTML, Wordpress


  7.     
    #6
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    The first glitch that i noticed is in the regex

    PHP Code: 
    $subBacklink 'href="http://warezrelease.org/"'
    preg_match('#href=\"http://(www\.)?'.$subBacklink.'#i',$get);
    // above preg_match so equals:
    preg_match('#href=\"http://(www\.)?href="http://warezrelease.org/"#i',$get); 
    Fix:
    PHP Code: 
    $subBacklink 'warezrelease\.org'
    Your regex is already searching for href, http, www so no need to include that.

  8.     
    #7
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    Fixed that bro, still doesn't blacklist.

  9.     
    #8
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    try

    PHP Code: 
    preg_match('#href=\"http://warezrelease.org/\"#',$get

  10.     
    #9
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    same prob, not doing the bklacklist. @saninokia

  11.     
    #10
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    try to contact me in msn.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. time ago function
    By Chris2k in forum Web Development Area
    Replies: 2
    Last Post: 21st Jan 2012, 05:58 AM
  2. First Image Function
    By Matrix4u in forum Wordpress
    Replies: 3
    Last Post: 6th Aug 2011, 05:08 PM
  3. 15000 Backlink - Backlink Booster 1.0
    By Cradle2deGrave in forum Webmaster Resources
    Replies: 11
    Last Post: 7th Jul 2011, 04:29 PM
  4. [Help] Fix PHP function
    By m1rr0z in forum Web Development Area
    Replies: 0
    Last Post: 15th Apr 2011, 09:40 AM
  5. PHP Function (Link_Maker)
    By litewarez in forum Webmaster Resources
    Replies: 0
    Last Post: 2nd Dec 2008, 01:28 AM

Tags for this Thread

BE SOCIAL