/
ad.php
43 lines (42 loc) · 1.84 KB
/
ad.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
////ad.php
//Josh
//26.7.14
//Desc: Displays random ad banner on top of page
?>
<div id='ad'>
<?php
$i = (mt_rand(0, 8));
switch ($i) {
case 0:
echo "<center><a href='https://www.digitalocean.com/?refcode=d3723dfedb27'><img src = images/ads/do0.png alt = 'Digital Ocean Ad'></a></center>";
break;
case 1:
echo "<center><a href='https://www.digitalocean.com/?refcode=d3723dfedb27'><img src = images/ads/do1.jpg alt = 'Digital Ocean Ad'></a></center>";
break;
case 2:
echo "<center><a href='https://www.digitalocean.com/?refcode=d3723dfedb27'><img src = images/ads/do2.jpg alt = 'Digital Ocean Ad'></a></center>";
break;
case 3:
echo "<center><a href='http://www.namecheap.com/?aff=70597'><img src = images/ads/name3.gif alt = 'namecheap Ad'></a></center>";
break;
case 4:
echo "<center><a href='http://www.namecheap.com/?aff=70597'><img src = images/ads/name4.gif alt = 'namecheap Ad'></a></center>";
break;
case 5:
echo "<center><a href='http://www.namecheap.com/?aff=70597'><img src = images/ads/name5.gif alt = 'namecheap Ad'></a></center>";
break;
case 6:
echo "<center><a href='http://www.namecheap.com/?aff=70597'><img src = images/ads/name6.gif alt = 'namecheap Ad'></a></center>";
break;
case 7:
echo "<center><a href='http://www.namecheap.com/?aff=70597'><img src = images/ads/name7.gif alt = 'namecheap Ad'></a></center>";
break;
case 8:
echo "<center><a href='http://www.namecheap.com/?aff=70597'><img src = images/ads/name8.gif alt = 'namecheap Ad'></a></center>";
break;
}
//line break
echo '</br>';
?>
</div>