Show page specifies HTTP_REFERER only once per day

0

I have the following code in a file: teste.php

<?php
if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != 'site.com.br')
{
echo '<div style="position: absolute; top: 60px; left: 66px; height: 250px; width: 300px;" id="anuncio"><iframe name="I1" src="http://www.site.com.br/apresentacao1.html"width="300" height="250" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe>';
} else {
echo('<div style="position:absolute; top:75px; left:85px; height:250px; width:300px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;" id="anuncio"><iframe name="I1" src="http://www.site.com.br/apresentacao2.html"width="300" height="250" marginwidth="1" marginheight="1" scrolling="no" border="0" frameborder="0"></iframe>');
}
?>

If the reference is: site.com.br the presentation1.html appears if not the presentation2.html appears.

I would also like to put in if the reference for site.com.br appears the presentation1.html only once a day, if it has already appeared show the presentation2.html

Can anyone help me?

    
asked by anonymous 10.05.2015 / 01:50

0 answers