HElp me Remove ads by "preg_replace" plz

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HElp me Remove ads by "preg_replace" plz

    im using 123musiq.mobi grabber, but unable2 remobing button ads my link here

    PHP Code:
    <?php
    // Created By lov3rboy90@gmail.com // Lov3rBoy90 // Don Of PhP :P
    // SEO In Grabber :)
    include"google.php";
    include 
    "func.php";
    $mdir=$_GET['mdir'];
    $getit=$_GET['get'];
    if(
    $getit){
    ?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title> Rexmob.CoM- Latest Bollywood songs download Tamil songs download Malayalam Songs download Kannada songs download Telugu songs download High Quality Compressed mp3 songs downloads.</title>
    <link rel="stylesheet" type="text/css" href="../style.css" media="handheld,all"/>
    <link rel="shortcut icon" href="../favicon.ico" />
    <title><?php echo $mdir;?> MP3 Songs | Your Site Name</title>
    <meta name="description" content="
    Download <?php echo $mdir;?> mp3 Free Songs
    Section: <?php echo $mdir;?> Songs
    category: Free Mobile <?php echo $mdir;?> mp3 songs
    Filetype: mp3 files" />
    <meta name="keywords" content="free, download, latest,<?php echo $mdir;?> songs,<?php echo $mdir;?> mp3 songs,mp3 songs" />
    </head><body>
    <div class="class">Your Site</div><br>
    <?php
    $coolurl
    ="http://123musiq.mobi/$getit";
    $ch curl_init();
    curl_setopt($chCURLOPT_URL''.$coolurl.'');
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
    curl_setopt($chCURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
    $file curl_exec($ch);
    $file=preg_replace('/<div class="home">(.*?)<\/html>/','',$file);
    $file=preg_replace('/<div class="head">(.*?)<\/div>/is','',$file);
    $file=preg_replace('/<a style="color:red;font-weight:bold" href="\/links.php?(.*?)<\/a>/is','',$file);
    $file=preg_replace('/<a href="\/links.php?(.*?)<\/a>/is','',$file);
    $file=preg_replace('/<a href="http:\/\/c.w.inmobi.com(.*?)<\/a>/','',$file);
    $file=preg_replace('/<title>(.*?)<\/title>/is','',$file);
    $file=str_replace('href="/albums/track/','href="get.php?mdir='.$mdir.'&cool=albums/track/',$file);
    $file=str_replace('href="/songs/track/','href="get.php?mdir='.$mdir.'&cool=songs/track/',$file);
    $file=str_replace('href="/albums/share','href="http://123musiq.mobi/albums/share',$file);
    $file=preg_replace('/<div class="home">(.*?)<\/div>/is','',$file);
    $file=str_replace('href="/songs/share','href="http://123musiq.mobi/songs/share',$file);
    $file=preg_replace('/<script(.*?)<\/script>/is','',$file);
    $file=str_replace('href="/','href="don.php?mdir='.$mdir.'&get=',$file);
    $file=preg_replace('/<href="http:\/\/tubta(.*?)<\/a>/is','',$file);
    $file=preg_replace('/<(.*?)<div class="hello">/is','<div class="cool3">',$file);
    $file=preg_replace('/<\/div>(.*?)<div class="box">/','</div><div class="box">',$file);
    $file=preg_replace('/<img src="\/music.gif(.*?)>/','',$file);
    $file=str_replace('src="/','src="http://123musiq.mobi/',$file);
    $file=preg_replace('/<div class="box"> <a href="http:\/\/(.*?)<\/a>(.*?)<hr \/>/','',$file);
    $file=preg_replace('/<hr \/> <a href="http:\/\/(.*?)<hr \/><\/div><div class="box2">/','<hr /><div class="box2">',$file);
    $file=preg_replace('/<hr \/> <a href="http:\/\/(.*?)<hr \/><\/div><div class="box2">/','<hr /><div class="box2">',$file);
    $file=preg_replace('/<hr \/> <a href="http:\/\/(.*?)<hr \/><\/div><div class="box2">/','<hr /><div class="box2">',$file);
    $file=preg_replace('|<form(.*?)<\/form>|is','',$file);
    $file=preg_replace('/<div class="infoblue">(.*?)<\/div>/','',$file);



    $file=str_replace('/<a href="http:\/\/my.mobfox(.*?)<\/a><br\/>/','',$file);
    $file=preg_replace('/<a href="http:\/\/ads.adiquity(.*?)<\/a><br\/>/','',$file);

    echo 
    $file;


    echo 
    "<div><a href='index.php'>Back to Home</a></div>";
    }else{ echo 
    "Were R u Came From? Go <a href='index.php'>Home</a>";}
    // Created By lov3rboy90@gmail.com // Lov3rBoy90 // Don Of PhP :P
    // SEO In Grabber :)
    ?>
    i want remove adiquity and mobfox ads i try this but not work

    PHP Code:
    $file=str_replace('/<a href="http:\/\/my.mobfox(.*?)<\/a><br\/>/','',$file);
    $file=preg_replace('/<a href="http:\/\/ads.adiquity(.*?)<\/a><br\/>/','',$file); 

    #2
    Whole link must be written in here.

    PHP Code:
    $file str_replace(array('<a href WHOLE LINK TO </a>'
    '<a href WHOLE LINK TO </a>'), ''$file); 
    And its not "SEO In Grabber" it is "CEO In Grabber".
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #3
      Originally posted by arnage View Post
      And its not "SEO In Grabber" it is "CEO In Grabber".
      i think wee need a lol button, wich works like a thanks button
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #4
        Originally posted by GumSlone View Post
        i think wee need a lol button, wich works like a thanks button
        yes... YES... !
        just... mostly we should have LMFAO button instead simple LOL
        and an upgrade to that button should be...
        after user receive more than 10 LOLs,
        he should get randomly kicked for each LOL he receives PMPL <= that might be fun hhhh...
        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

        Comment


          #5
          Yeah yeah yeah yeah, i mean really...
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #6
            Do it ... haha

            Comment


              #7
              Should Expect Outrageousness?

              Added after 2 minutes:

              Originally posted by BDplanet View Post
              Don Of PhP :P
              Danger Oncoming Nerd?
              Last edited by something else; 10.04.12, 19:32.

              Comment


                #8
                LOL, don needs cops!!

                Comment


                  #9
                  Originally posted by something else View Post
                  Should Expect Outrageousness?

                  Added after 2 minutes:


                  Danger Oncoming Nerd?
                  HE HE nice bydaby im not author of this script and im not da DON :lollllllllllllllllllll

                  i just trying to remove ads from his grabber and using my site
                  if u any body can hide that ads , dan reply why u r all not given me solution.......
                  i say i try it but not sucess. plz fix dis..................................122
                  Last edited by BDplanet; 11.04.12, 06:35.

                  Comment


                    #10
                    you have to a string replacement on \n \r\n \r and also trim the string of any white spaces so that preg_replace will work properly
                    then use:
                    PHP Code:
                    $file=preg_replace('/<a href="http:\/\/(.*?)ads.adiquity(.*?)<\/a>/','',$file);// no <br/> on that line :P 

                    Comment


                      #11
                      Originally posted by something else View Post
                      you have to a string replacement on \n \r\n \r and also trim the string of any white spaces so that preg_replace will work properly
                      then use:
                      PHP Code:
                      $file=preg_replace('/<a href="http:\/\/(.*?)ads.adiquity(.*?)<\/a>/','',$file);// no <br/> on that line :P 
                      now 100% working . this is my falt "no <br/> on that line" really thx @something else

                      Comment

                      Working...
                      X