diff --git a/banners.php b/banners.php
index 48e312f2..ef75c2cb 100644
--- a/banners.php
+++ b/banners.php
@@ -1,22 +1,16 @@
-
-
-Lainchan Banners
-
-
";
- }
- }
- closedir($handle);
- }
+function getBannerSrc(){
+ $files = scandir(__dir__.'/banners/');
+ $files = array_diff($files, array('.', '..'));
+ return $files[array_rand($files)];
}
-listBannersInDir("banners_priority");
-listBannersInDir("banners");
-?>
-
-
+$filename = getBannerSrc();
+$filename = "banners/" . $filename;
+$fp = fopen($filename, 'rb');
+
+header("Content-Type: image/png");
+header("Content-Length: " . filesize($filename));
+
+fpassthru($fp);
+?>
\ No newline at end of file
diff --git a/banners/1608992480627.jpg b/banners/1608992480627.jpg
new file mode 100644
index 00000000..b42a21a7
Binary files /dev/null and b/banners/1608992480627.jpg differ
diff --git a/banners/1608992511794.jpg b/banners/1608992511794.jpg
new file mode 100644
index 00000000..d5980bbd
Binary files /dev/null and b/banners/1608992511794.jpg differ
diff --git a/banners/1608992524118.jpg b/banners/1608992524118.jpg
new file mode 100644
index 00000000..530c8342
Binary files /dev/null and b/banners/1608992524118.jpg differ
diff --git a/banners/1608992551600.jpg b/banners/1608992551600.jpg
new file mode 100644
index 00000000..bbb238f5
Binary files /dev/null and b/banners/1608992551600.jpg differ
diff --git a/banners/1608992576348.jpg b/banners/1608992576348.jpg
new file mode 100644
index 00000000..b6d4ffc2
Binary files /dev/null and b/banners/1608992576348.jpg differ
diff --git a/banners/1608992589414.jpg b/banners/1608992589414.jpg
new file mode 100644
index 00000000..42d51cf0
Binary files /dev/null and b/banners/1608992589414.jpg differ
diff --git a/banners/1608992682734.jpg b/banners/1608992682734.jpg
new file mode 100644
index 00000000..c50679de
Binary files /dev/null and b/banners/1608992682734.jpg differ
diff --git a/banners/1608993276367.jpg b/banners/1608993276367.jpg
new file mode 100644
index 00000000..4125b52c
Binary files /dev/null and b/banners/1608993276367.jpg differ
diff --git a/banners/1608996011049.png b/banners/1608996011049.png
new file mode 100644
index 00000000..30de5eb4
Binary files /dev/null and b/banners/1608996011049.png differ
diff --git a/banners/1609004437891.jpg b/banners/1609004437891.jpg
new file mode 100644
index 00000000..cf595c69
Binary files /dev/null and b/banners/1609004437891.jpg differ
diff --git a/banners/1609004460965.jpg b/banners/1609004460965.jpg
new file mode 100644
index 00000000..6e447399
Binary files /dev/null and b/banners/1609004460965.jpg differ
diff --git a/banners/1609010983068.gif b/banners/1609010983068.gif
new file mode 100644
index 00000000..a55468ac
Binary files /dev/null and b/banners/1609010983068.gif differ
diff --git a/banners/1610174020766-0.png b/banners/1610174020766-0.png
new file mode 100644
index 00000000..c956f50b
Binary files /dev/null and b/banners/1610174020766-0.png differ
diff --git a/banners/1610174020766-1.png b/banners/1610174020766-1.png
new file mode 100644
index 00000000..4b85d4a0
Binary files /dev/null and b/banners/1610174020766-1.png differ
diff --git a/banners/1610174020766-2.png b/banners/1610174020766-2.png
new file mode 100644
index 00000000..3046bb1f
Binary files /dev/null and b/banners/1610174020766-2.png differ
diff --git a/banners/1610174020766-3.png b/banners/1610174020766-3.png
new file mode 100644
index 00000000..254f42eb
Binary files /dev/null and b/banners/1610174020766-3.png differ
diff --git a/banners/1610174020766-4.png b/banners/1610174020766-4.png
new file mode 100644
index 00000000..87e6ec67
Binary files /dev/null and b/banners/1610174020766-4.png differ
diff --git a/banners/1610175053568.png b/banners/1610175053568.png
new file mode 100644
index 00000000..a2eddc78
Binary files /dev/null and b/banners/1610175053568.png differ
diff --git a/banners/1610178074936-0.png b/banners/1610178074936-0.png
new file mode 100644
index 00000000..9cac6383
Binary files /dev/null and b/banners/1610178074936-0.png differ
diff --git a/banners/1610178074936-3.png b/banners/1610178074936-3.png
new file mode 100644
index 00000000..3948c972
Binary files /dev/null and b/banners/1610178074936-3.png differ
diff --git a/banners/1610178074936-4.png b/banners/1610178074936-4.png
new file mode 100644
index 00000000..24c10822
Binary files /dev/null and b/banners/1610178074936-4.png differ
diff --git a/banners/1610178136375.png b/banners/1610178136375.png
new file mode 100644
index 00000000..d50b31d5
Binary files /dev/null and b/banners/1610178136375.png differ
diff --git a/banners/1610178320956-0.png b/banners/1610178320956-0.png
new file mode 100644
index 00000000..ae410807
Binary files /dev/null and b/banners/1610178320956-0.png differ
diff --git a/banners/1610178320956-1.png b/banners/1610178320956-1.png
new file mode 100644
index 00000000..c163b6dc
Binary files /dev/null and b/banners/1610178320956-1.png differ
diff --git a/banners/lain-bottom.png b/banners/lain-bottom.png
deleted file mode 100644
index 2f271c54..00000000
Binary files a/banners/lain-bottom.png and /dev/null differ
diff --git a/inc/instance-config.php b/inc/instance-config.php
index eca5bb01..eb3cf2a0 100644
--- a/inc/instance-config.php
+++ b/inc/instance-config.php
@@ -93,6 +93,9 @@ $config['threads_preview'] = 5;
$config['root'] = '/';
$config['secure_trip_salt'] = 'ODQ2NDM0ODlmMmRhNzk2M2EyNjJlOW';
+//Banners
+$config['url_banner'] = '/banners.php';
+
/*
* Some users are having trouble posting when this is on,
* with the message 'Your request looks automated; Post discarded.'