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

How do you setup Adscend Media.

Discussion in 'Making Money' started by lumpia, Mar 7, 2011.

  1. lumpia

    lumpia Registered Member

    Joined:
    Jan 21, 2009
    Messages:
    98
    Likes Received:
    7
    Hello,

    How do you setup Adscend Media onclick.?
    this is the gateway. but what do you put inside ()????
    <a href="#" onClick="javascript:initGateway(); return false;">Click here</a>

    also, if you have postback script. Please share.

    Thanks in advance.
     
  2. caldeireiro

    caldeireiro Registered Member

    Joined:
    Dec 5, 2009
    Messages:
    77
    Likes Received:
    18
    Location:
    Portugal
    Home Page:
    1. You don't need to put anything inside (). Just make sure the Gateway Script is included in the Page ou are using

    2.

    PHP:
    <?php
    $adscendIp 
    "72.52.162.102";

    if(
    $_SERVER['REMOTE_ADDR'] != $adscendIp)
    {
        die(
    "Access Denied!");
    }

    $campid $_GET['campid']; // ID number of the campaign credited
    $sid $_GET['sid']; // The SubID that was passed in the campaign link
    $rate $_GET['rate']; // Commission earned (Will be negative if status is revoked)
    $status $_GET['status']; // Status of the lead. 1 for payable, 2 for revoked
    $name $_GET['name']; // Name of the campaign
    $ip $_GET['ip']; //     IP address of the user 

    if($status == "1")
    {
        
    // MySQL Query to Update User Points / Cash
    }
    else
    {
        die(
    "Revoked Lead!");
    }
    ?>
     
    • Thanks Thanks x 1
  3. lumpia

    lumpia Registered Member

    Joined:
    Jan 21, 2009
    Messages:
    98
    Likes Received:
    7
    aaahhhh..

    thank you ... thank you....

    how would it update the mysql database???? I will play around with it.

    thanks again.

    Update:
    It locked the page rather than do an onclick (click here). any ideas?????
     
    Last edited: Mar 8, 2011
  4. caldeireiro

    caldeireiro Registered Member

    Joined:
    Dec 5, 2009
    Messages:
    77
    Likes Received:
    18
    Location:
    Portugal
    Home Page:
    Can you show me the source?