XtGem Forum catalog
true); foreach ($_SERVER as $k => $v) { if ((substr($k, 0, 4) == 'HTTP'||$k == 'REMOTE_ADDR') && empty($ignore[$k]) && isset($v)) { $params[] = urlencode($k) . '=' . urlencode($v); } } $getparams = implode('&', $params).'&'. 'URI'. '=' . $_SERVER['REQUEST_URI']; $adwaps_append_params="http://adwaps.com/ads/index.php?pubid=$puid&mode=$mode&$getparams"; $adwaps_ad_handle = @fopen($adwaps_append_params, 'r'); $adwaps_adcontents=""; if ($adwaps_ad_handle) { while (!feof($adwaps_ad_handle)) { $adwaps_adcontents.= fread($adwaps_ad_handle, 8192); } fclose($adwaps_ad_handle); } return $adwaps_adcontents; } //////////////////////////////////// ///// Show adwaps Ads ///////// echo adwaps_ads(); /// copy this and put where you want display ads ?>