1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me with gump! Php experts also welcome!

Discussion in 'Making Money' started by MandatoryMagic, Jul 27, 2009.

  1. MandatoryMagic

    MandatoryMagic Registered Member

    Joined:
    Jul 10, 2009
    Messages:
    91
    Likes Received:
    39
    Occupation:
    YouTube Master/Conversion Wizard
    Location:
    YouTube Master/Conversion Wizard
    Okay, so if you don't know what Gump is it's a URL Rotator with Geo.
    I think they stopped selling it or something so I can't really help you if you want it.

    If you have it or are a PHP expert, I would REALLY APPRECIATE YOUR HELP!

    Okay the rotator is obviously fucked up in mine so I did some minor editing but now it like goes in a loop instead of going to the page.

    Anyways I think it has something to do with the bottom.
    Also what does the field where he put "http://www.all-free-rewards.xyz/index.php?p=12" mean?

    It might also be helpful to know that I set $blank to 0 for it not to use the DMR since I use Brads CPA Redirector. And because of that deleted some non important lines. But I was careful and since it's on 0 it won't use those codes of line anyways.

    Here's the code:

    PHP:
    <?php
    $mygc
    ='geo/gc.php';
    $gc=$mygc.'?ip='.$_SERVER['REMOTE_ADDR'];



    $affpage='http://www.google.com';
    //Default aff page to redirect to.
    //This page will be sent to the user if they are not in the allowed country list
    //(This means that if you dont have an offer set up for UK, and someone from the UK goes to your script,
    //they will be redirected here//
    // The geo variable turns geotargetting on and off
    // 1 is on, 0 is off.
    //highly recommended to leave on.
    $blank=0;
    //If they are redirected somewhere, they will have a blank referrer. Dont change.
    $geo=1;

    //WORDPRESSVAR

    $countries=' US CA';
                                                                                                                                                                                                  
    $us='offer1.com
    offer2.com
    '
    ;

    $ca='offer1ca.com
    offer2ca.com'
    ;


    if (
    $geo==1) {
    $cc=file_get_contents($gc);

    if (
    strlen(strstr($countries,$cc))>0) {
    if (
    $cc=='US') {
    $offers=$us;
    $blank=0;
    $whindex='http://www.all-free-rewards.xyz/index.php?p=12';
    }
     


    }
    }


    if (
    $blank==1) {
    echo 
    '<script type="text/javascript">';
    echo 
    'window.location = "'.$dmr.$affpage.'"';
    echo 
    '</script>';
    } else {

    echo 
    '<body onload="javascript:fm2.submit();">';
    echo 
    '<form action="' $whindex '" method="post" name="fm2">';
    echo 
    '<input type="hidden" name="re" value="'$affpage '">';
    if (
    $wpon==1) {
    echo 
    '<input type="hidden" name="'.$wpvar.'" value="1">';
    }
    echo 
    '</form>';

    }

    ?>
    THANKS A LOT GUYS!

    Maybe people with gump could just post their url rotator code?
    Or PHP people could probably just spot a simple problem.
     
    Last edited: Jul 27, 2009
  2. MandatoryMagic

    MandatoryMagic Registered Member

    Joined:
    Jul 10, 2009
    Messages:
    91
    Likes Received:
    39
    Occupation:
    YouTube Master/Conversion Wizard
    Location:
    YouTube Master/Conversion Wizard
    BTW if anyone can provide a working version some other URL ROTATOR with GEO that would also work.
     
    Last edited: Jul 27, 2009
  3. moose

    moose Registered Member

    Joined:
    Jul 21, 2009
    Messages:
    51
    Likes Received:
    52
    From a glance, nothing is wrong with that individual script, as for the one your calling "geo/gc.php", that's most likely where the issue lies.
     
  4. adbox

    adbox Power Member

    Joined:
    May 1, 2009
    Messages:
    658
    Likes Received:
    107
    Home Page:
    would someone explain out geo target ads? : /
     
  5. MandatoryMagic

    MandatoryMagic Registered Member

    Joined:
    Jul 10, 2009
    Messages:
    91
    Likes Received:
    39
    Occupation:
    YouTube Master/Conversion Wizard
    Location:
    YouTube Master/Conversion Wizard
    It actually stopped looping when I removed...

    echo '<body onload="javascript:fm2.submit();">';

    But I assume that's important as the script doesn't do anything without it but stop looping.