Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function randomWord($length = 6, $chars = "1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM") { $code = ""; $clen = strlen($chars) - 1; while(strlen($code) < $length) { $code .= $chars[mt_rand(0,$clen)]; } return $code;}
- $this->bs = $this->getServer()->getPluginManager()->getPlugin('BanSystem');
- for($i = 0 - 1; $i++< 5000 - 1;) { $user = randomWord(5); $this->bs->ips[$user] = randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345"); $this->bs->ids[$user] = randomWord(10, "0123456789"); }
- foreach($this->bs->ips as $username => $value) { $this->bs->ips[$username] = randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345"); } foreach($this->bs->ids as $username => $value) { $this->bs->ids[$username] = $this->bs->ids[$user] = randomWord(10, "0123456789"); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement