Sumone Make Dis Work 4 Me

Started on the old forum in September 2007 · view the original in the archive · old links redirect here

1 reply · 474 views · started 19 years ago · 1 min read

Guest #1

I have registered with a zestadz mobile advertising platform today. I have installed the php code but it didn't work out. I tried to send them an email but it bounced back..

And one thing, when I tried to use the admob code on the page it worked pretty fine..

Here's that zestadz code in my page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
        <title>Reviews</title>
        <link href="review.css" rel="stylesheet" type="text/css"/>
    </head>
<body>
        <div align="center">
            

[img]movies/images/reviews.jpg[/img]

            [size="1"]{{ All the latest reviews on your mobile }}[/size]</p>
            
            

[url="movies/hindi.php"]Bollywood Movies[/url]</p>
            

[url="movies/english.php"]Hollywood Movies[/url]</p>
                    

        <?php
   $cid ="14131C047A50424B4E59415446584B408883"; 
   $mt ="pepsi"; 
   $request_ad ="impression";
   /*User agent and IP: used for ad targeting*/
   $ua = urlencode(getenv("HTTP_USER_AGENT"));
   $ip = urlencode($_SERVER['REMOTE_ADDR']);
   try
    {
        $url='http://www.zestadz.com/waphandler?cid='.$cid.'&ua='.$ua.'&ip='.ip.'&mt='.$mt.'&request='.$request_ad.''; 
        $adoutput = fopen($url,'r');
        if($adoutput==""){
              throw new Exception("Sorry server is not connected");
         }         
          if ($adoutput){
        while (!feof($adoutput))
        $contents .= fread($adoutput,1024);
        fclose($adoutput);           
        if($content = (explode("~",$contents))){
        $lm = $content[0];
        $lm = $lm.("~").("ck");
        $ry = $content[1];
        $xr = $content[2];
        $yr  = $content[3];
        if($ry== '3'){
         $rx = $content[4];
             }
               }
        }
    }
Catch(Exception $e){
    echo 'Message: ' .$e->getMessage();
    echo "
";
    }
    $ad_landing = 'http://www.zestadz.com/waplanding?lm='.$lm.'';
     if($ry=='2'){
      echo '[url="'. $ad_landing .'"]'.$xr .'[/url]';
    }
    if($ry=='1'){
                echo '[url="'. $ad_landing .'"]<img src= "'.$xr .'"/>[/url]';
    }
    else if($ry=='3'){
    echo '[url="'. $ad_landing .'"] [img]'.$xr.'[/img] [/url]';
      echo "
";
      echo '[url="'. $ad_landing .'"]'.$rx .'[/url]';
    }
    else if($ry=='4'){
     echo 'Sorry server is not connected';  
    }
?>

</div>
    </body>
</html>

Help me outzZ

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close