From 7d2c48387a24f32bdfeea7852d25f6af9b9161c3 Mon Sep 17 00:00:00 2001 From: MichaelYick Date: Sun, 24 Jul 2022 10:22:53 +0000 Subject: [PATCH] thrembobulator added --- ext/home/main.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/home/main.php b/ext/home/main.php index 8c00c499..a6edb6d9 100644 --- a/ext/home/main.php +++ b/ext/home/main.php @@ -56,7 +56,14 @@ class Home extends Extension $length = strlen($strtotal); for ($n=0; $n<$length; $n++) { $cur = $strtotal[$n]; - $counter_text .= "$cur"; + + if ($cur == 6 && rand(0, 2500) == 0) { + $counter_text .= "$cur"; + } elseif ($cur == 7 && rand(0, 2500) == 0) { + $counter_text .= "$cur"; + } else { + $counter_text .= "$cur"; + } } // get the homelinks and process them