Browse code

3.5.6 efiction version

Jimako authored on 2024/03/09 16:09:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,46 @@
1
+<?php
2
+if(!defined("_CHARSET")) exit( );
3
+
4
+/* Start block configuration */
5
+
6
+// The text that will appear under your image.  
7
+$link2us = "Link to Us!";
8
+
9
+// The folder or URL to the folder where your images are stored.
10
+// Include the trailing slash!
11
+$imgfolder = _BASEDIR."buttons/";
12
+
13
+// The page you're sending them to for the code
14
+$codepage = _BASEDIR."promote.php";
15
+
16
+// The list of your images.  One per line.
17
+$images[] = "88x31-A.jpg";
18
+$images[] = "88x31-B.jpg";
19
+$images[] = "88x31-C.jpg";
20
+$images[] = "88x31-D.jpg";
21
+$images[] = "88x31-E.jpg";
22
+$images[] = "88x31-F.jpg";
23
+$images[] = "88x31-G.jpg";
24
+$images[] = "88x31-H.jpg";
25
+$images[] = "88x31-I.jpg";
26
+$images[] = "88x31-J.jpg";
27
+$images[] = "88x31-K.jpg";
28
+$images[] = "88x31-L.jpg";
29
+$images[] = "88x31-M.jpg";
30
+$images[] = "88x31-N.jpg";
31
+$images[] = "88x31-O.jpg";
32
+$images[] = "100x35-A.jpg";
33
+$images[] = "100x35-B.jpg";
34
+$images[] = "100x35-C.jpg";
35
+$images[] = "100x35-D.jpg";
36
+$images[] = "100x35-E.jpg";
37
+$images[] = "100x35-F.jpg";
38
+$images[] = "100x35-G.jpg";
39
+
40
+/* End block configuration */
41
+
42
+$img = $images[mt_rand(0, count($images) - 1)];
43
+
44
+$content = "<div style='text-align: center;'><a href='$codepage' alt='$link2us'><img src='$imgfolder$img' alt='$sitename' /></a><br /><a href='$codepage'>$link2us</a></div>";
45
+unset($images, $img);
46
+?>
0 47
\ No newline at end of file