Ad Google Adsense Xhtml Code To Lavalair Xhtml Script

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

    Ad Google Adsense Xhtml Code To Lavalair Xhtml Script

    if possible

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

    <?php

    $GLOBALS[&#39;google&#39;][&#39;ad_type&#39;]=&#39;text&#39;;
    $GLOBALS[&#39;google&#39;][&#39;channel&#39;]=&#39;&#39;;
    $GLOBALS[&#39;google&#39;][&#39;client&#39;]=&#39;pub-1234567890&#39;;
    $GLOBALS[&#39;google&#39;][&#39;format&#39;]=&#39;mobile_single&#39;;
    $GLOBALS[&#39;google&#39;][&#39;https&#39;]=$_SERVER[&#39;HTTPS&#39;];
    $GLOBALS[&#39;google&#39;][&#39;host&#39;]=$_SERVER[&#39;HTTP_HOST&#39;];
    $GLOBALS[&#39;google&#39;][&#39;ip&#39;]=$_SERVER[&#39;REMOTE_ADDR&#39;];
    $GLOBALS[&#39;google&#39;][&#39;markup&#39;]=&#39;xhtml&#39;;
    $GLOBALS[&#39;google&#39;][&#39;oe&#39;]=&#39;utf8&#39;;
    $GLOBALS[&#39;google&#39;][&#39;output&#39;]=&#39;xhtml&#39;;
    $GLOBALS[&#39;google&#39;][&#39;ref&#39;]=$_SERVER[&#39;HTTP_REFERER&#39;];
    $GLOBALS[&#39;google&#39;][&#39;url&#39;]=$_SERVER[&#39;HTTP_HOST&#39;] . $_SERVER[&#39;REQUEST_URI&#39;];
    $GLOBALS[&#39;google&#39;][&#39;useragent&#39;]=$_SERVER[&#39;HTTP_USER_AGENT&#39;];
    $google_dt = time();
    google_set_screen_res();

    function google_append_url(&$url, $param, $value) {
    $url .= &#39;&&#39; . $param . &#39;=&#39; . urlencode($value);
    }

    function google_append_globals(&$url, $param) {
    google_append_url($url, $param, $GLOBALS[&#39;google&#39;][$param]);
    }

    function google_append_color(&$url, $param) {
    global $google_dt;
    $color_array = split(&#39;,&#39;, $GLOBALS[&#39;google&#39;][$param]);
    google_append_url($url, $param,
    $color_array[$google_dt % sizeof($color_array)]);
    }

    function google_set_screen_res() {
    $screen_res = $_SERVER[&#39;HTTP_UA_PIXELS&#39;];
    $delimiter = &#39;x&#39;;
    if ($screen_res == &#39;&#39;) {
    $screen_res = $_SERVER[&#39;HTTP_X_UP_DEVCAP_SCREENPIXELS&#39;];
    $delimiter = &#39;,&#39;;
    }
    $res_array = explode($delimiter, $screen_res);
    if (sizeof($res_array) == 2) {
    $GLOBALS[&#39;google&#39;][&#39;u_w&#39;] = $res_array[0];
    $GLOBALS[&#39;google&#39;][&#39;u_h&#39;] = $res_array[1];
    }
    }

    function google_get_ad_url() {
    $google_ad_url = &#39;http://pagead2.googlesyndication.com/pagead/ads?&#39;;
    $google_scheme = ($GLOBALS[&#39;google&#39;][&#39;https&#39;] == &#39;on&#39;)
    ? &#39;https://&#39; : &#39;http://&#39;;
    foreach ($GLOBALS[&#39;google&#39;] as $param => $value) {
    if ($param == &#39;client&#39;) {
    google_append_url($google_ad_url, $param,
    &#39;ca-mb-&#39; . $GLOBALS[&#39;google&#39;][$param]);
    } else if (strpos($param, &#39;color_&#39;) === 0) {
    google_append_color($google_ad_url, $param);
    } else if ((strpos($param, &#39;host&#39;) === 0)
    || (strpos($param, &#39;url&#39;) === 0)) {
    google_append_url($google_ad_url, $param,
    $google_scheme . $GLOBALS[&#39;google&#39;][$param]);
    } else {
    google_append_globals($google_ad_url, $param);
    }
    }
    google_append_url($google_ad_url, &#39;dt&#39;,
    round(1000 * array_sum(explode(&#39; &#39;, microtime()))));
    return $google_ad_url;
    }

    $google_ad_handle = @fopen(google_get_ad_url(), &#39;r&#39;);
    if ($google_ad_handle) {
    while (!feof($google_ad_handle)) {
    echo fread($google_ad_handle, 8192);
    }
    fclose($google_ad_handle);
    }

    ?>


    </div>

    #2
    soon you will get your google addsense account closed,because 0f inadequate hits

    Comment


      #3
      ok i got it
      its not allowed

      Comment


        #4
        there are google mobile ads and have been for ages since september last year in fact LOL

        https://www.google.com/adsense/www/en_US/mobile/

        Comment

        Working...
        X