include "variables.php";
$link=mysql_connect($adr_sql,$compte,$passe) or die("Connection au serveur impossible !");
mysql_select_db($base);
mysql_select_db($base);
//$url= $HTTP_HOST. $REQUEST_URI;
$qd = mysql_query("SELECT * FROM ".$prefixe."_PUB WHERE URL_PAGE = '$u' ORDER BY RAND()");
$rd = mysql_fetch_array($qd);
if ($rd === false) {
mysql_query("INSERT INTO ".$prefixe."_PUB (URL_PAGE) VALUES('$u')") or die (mysql_error());
}
if ($f=="468") $html=$rd['PUB468'];
if ($f=="120") $html=$rd['PUB120'];
if ($f=="780") $html=$rd['PUB780'];
if ($f=="PAV") $html=$rd['PUBPAV'];
if ($f=="468" && $html=="") $html='';
if ($f=="120" && $html=="") $html='';
if ($f=="780" && $html=="") $html='';
if ($f=="PAV" && $html=="") $html='';
?>
document.write ('
//echo $url;
//echo $html;
?>');