From 235672abab2089daa402480fe458f7f3703f0ec5 Mon Sep 17 00:00:00 2001 From: kake26 Date: Tue, 4 Jan 2022 22:49:36 -0600 Subject: [PATCH] basic working version with a little flair --- email.php | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 email.php diff --git a/email.php b/email.php new file mode 100644 index 0000000..4a16b11 --- /dev/null +++ b/email.php @@ -0,0 +1,96 @@ +chars; + $crap = ""; + + for ($i = 0; $i < $n; $i++) { + $index = rand(0, strlen($chars) - 1); // note -1 because 0 based index + $crap .= $chars[$index]; + } + + return $crap; + + } + + function getwords($n = 1){ + // defaults to one word + $crap= []; + $lsw = explode(" ",$this->lipsum); + for ($i = 0; $i < $n; $i++ ) { + $index = rand(0,count($lsw) - 1 ); + array_push($crap,$lsw[$index]); + } + + return $crap; + } + + function genemail($n = 1) { + // for each email we want two words + $tcrap = ""; + $crap = []; + for ($i = 0; $i < $n; $i++){ + $words = $this->getwords(2); + $tcrap .= $words[0] . "." . $words[1] . "@gmail.com"; + array_push($crap,$tcrap); + $tcrap = ""; + } + return $crap; + } +} + +$espam = new eatspam(); + + + +?> + + + + + + Contact E-mails + + + +
+ genemail(3) as $email){
+    print "". $email . "\n";
+}
+    ?>
+    
+ genstr(6)."\">next page"; + ?> + + \ No newline at end of file