<?php $id = rand(1, 3); ?>
<?php if ($id==1) { ?>
ONE
<?php } ?>
<?php if ($id==2) { ?>
TWO
<?php } ?>
<?php if ($id==3) { ?>
THREE
<?php } ?>
// random number 1 - 10
$result_random = rand(1, 10);
if($result_random ==1){
echo ' ';
include("one.php");
}
if($result_random ==2){
echo ' ';
include("two.php");
}
if($result_random ==3){
echo ' ';
include("three.php");
}
if($result_random ==4){
echo ' ';
include("four.php");
}
if($result_random ==5){
echo ' ';
include("five.php");
}
if($result_random ==6){
echo ' ';
include("six.php");
}
if($result_random ==7){
echo ' ';
include("seven.php");
}
if($result_random ==8){
echo ' ';
include("eight.php");
}
if($result_random ==9){
echo ' ';
include("nine.php");
}
if($result_random ==10){
echo ' ';
include("ten.php");
}
?>
<?php
$offers = array (
"http://affiliateurl1.com",
"http://affiliateurl2.com",
"http://affiliateurl3.com",
"http://affiliateurl4.com",
"http://affiliateurl5.com"
);
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
$url = $offers[rand(-1, count($offers) + 1)];
echo '<meta http-equiv="refresh" content="0;url='.$url.'">';
}
else
{
echo '<meta http-equiv="refresh" content="0;url=http://yoursite.com">';
}
?>
<SCRIPT LANGUAGE="JavaScript">
var dt = new Date();
var sec = dt.getSeconds();
// if (sec<=20) means seconds 0 through 20
// change the IMG SRC = and the msg.link location to your own needs.
if (sec<=10) { var msg="<IMG SRC=http://>"; document.write
(msg.link("http://")) ;}
else if (sec<=20) { var msg="<IMG SRC=http://>"; document.write
(msg.link("http://")) ;}
else if (sec<=30) { var msg="<IMG SRC=http://>"; document.write
(msg.link("http://")) ;}
else if (sec<=40) { var msg="<IMG SRC=http://>"; document.write
(msg.link("http://")) ;}
else if (sec<=50) { var msg="<IMG SRC=http://>"; document.write
(msg.link("http://")) ;}
else if (sec<=60) { var msg="<IMG SRC=http://>"; document.write
(msg.link("http://")) ;}
// the order of the if,else if, and else are important. The program reads from
// the top down so if an if or else if work it will not read the following
// else ifs or else. (else is a catch all). To add more you just add mores
// else ifs and change the values. Say you wanted 6 images.
// if (hr <=10) .......
// else if (hr <=20)........
// else if (so on until you reach 50)
// else ......
// it's also easily modified for minutes months years if you want a banner
// to appear all day on a certain day then then another on another day.
<!-- end -->
</SCRIPT>
We get it, advertisements are annoying!
Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.