I was interested in getting some ads placed on my site as I had been approached by adbeans.com I was shocked to learn that that they require to submit the code in a php format or similar dangerous practise, here is the code
[CODE]<?php
$old = @ini_set(‘default_socket_timeout’, 3); @set_time_limit(3);
$DN =””; if(isset($_SERVER[‘SERVER_NAME’])){$DN = $_SERVER[‘SERVER_NAME’];}
$CIP =””; if(isset($_SERVER[‘REMOTE_ADDR’])){$CIP = $_SERVER[‘REMOTE_ADDR’];}
$PU = “”; $PU = $_SERVER[‘PHP_SELF’]; $S=”?”;foreach($_GET as $var => $val){$PU .= $S.$var.”=”.$val; $S=”~”;}
$FP = @fopen(“http://dlaserv.com/RequestFormattedAds.aspx?domainname=$DN&VisitorIP=$CIP&ref=adbeans&PageUrl=$PU”, “r”);
$PG =””;while ($TX = @fread($FP, 100)) {$PG .= $TX;}
@ini_set(‘default_socket_timeout’, $old);
echo(“$PG”); ?>
Isn’t this crazy to put this on my site ? I won’t be doing it until I learn if it is ok.